Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: chromeos/audio/cras_audio_handler.cc

Issue 620673002: Flip the left/right speaker when the device is in yoga mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the AudioApiTest. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/audio/cras_audio_handler.h ('k') | chromeos/dbus/cras_audio_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/audio/cras_audio_handler.cc
diff --git a/chromeos/audio/cras_audio_handler.cc b/chromeos/audio/cras_audio_handler.cc
index c6453118b4c393381d38ddf2489b37e0845530f4..c036d4af63abf38c3f84897abfc59a53a60f941a 100644
--- a/chromeos/audio/cras_audio_handler.cc
+++ b/chromeos/audio/cras_audio_handler.cc
@@ -253,6 +253,16 @@ void CrasAudioHandler::RemoveAllActiveNodes() {
}
}
+void CrasAudioHandler::SwapLeftRight(bool swap) {
+ if (!active_output_node_id_) {
+ VLOG(1) << "SwapLeftRight: Cannot find primary active output node";
+ return;
+ }
+
+ chromeos::DBusThreadManager::Get()->GetCrasAudioClient()->SwapLeftRight(
+ active_output_node_id_, swap);
flackr 2014/10/01 20:32:33 We shouldn't swap the channels on any device excep
jennyz 2014/10/01 20:41:19 Cras decides if the channel swapping is supported,
jennyz 2014/10/01 20:52:11 Think again, you are right, we'd only guard to mak
jennyz 2014/10/01 21:30:33 Done.
+}
+
bool CrasAudioHandler::has_alternative_input() const {
return has_alternative_input_;
}
« no previous file with comments | « chromeos/audio/cras_audio_handler.h ('k') | chromeos/dbus/cras_audio_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698