Commit 4ea04e04 authored by aluebs's avatar aluebs Committed by Commit bot

Fix Beamforming not getting enabled on Swanky

The official build returned a different board name with pattern "swanky*".

BUG=467643

Review URL: https://codereview.chromium.org/1110673002

Cr-Commit-Position: refs/heads/master@{#327098}
parent 141472fb
...@@ -537,10 +537,10 @@ void MediaStreamAudioProcessor::ConfigureBeamforming(webrtc::Config* config) { ...@@ -537,10 +537,10 @@ void MediaStreamAudioProcessor::ConfigureBeamforming(webrtc::Config* config) {
std::vector<webrtc::Point> geometry(1, webrtc::Point(0.f, 0.f, 0.f)); std::vector<webrtc::Point> geometry(1, webrtc::Point(0.f, 0.f, 0.f));
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
const std::string board = base::SysInfo::GetLsbReleaseBoard(); const std::string board = base::SysInfo::GetLsbReleaseBoard();
if (board == "peach_pi") { if (board.find("peach_pi") != std::string::npos) {
enabled = true; enabled = true;
geometry.push_back(webrtc::Point(0.050f, 0.f, 0.f)); geometry.push_back(webrtc::Point(0.050f, 0.f, 0.f));
} else if (board == "swanky") { } else if (board.find("swanky") != std::string::npos) {
enabled = true; enabled = true;
geometry.push_back(webrtc::Point(0.052f, 0.f, 0.f)); geometry.push_back(webrtc::Point(0.052f, 0.f, 0.f));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment