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_; |
} |