Chromium Code Reviews| 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 17:25:28
I'm not too familiar with cras, but we should only
|
| +} |
| + |
| bool CrasAudioHandler::has_alternative_input() const { |
| return has_alternative_input_; |
| } |