| 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..d3d0d90f29bbbceb055ae2d151755953385bb761 100644
|
| --- a/chromeos/audio/cras_audio_handler.cc
|
| +++ b/chromeos/audio/cras_audio_handler.cc
|
| @@ -253,6 +253,19 @@ void CrasAudioHandler::RemoveAllActiveNodes() {
|
| }
|
| }
|
|
|
| +void CrasAudioHandler::SwapInternalSpeakerLeftRightChannel(bool swap) {
|
| + for (AudioDeviceMap::const_iterator it = audio_devices_.begin();
|
| + it != audio_devices_.end();
|
| + ++it) {
|
| + const AudioDevice& device = it->second;
|
| + if (!device.is_input && device.type == AUDIO_TYPE_INTERNAL_SPEAKER) {
|
| + chromeos::DBusThreadManager::Get()->GetCrasAudioClient()->SwapLeftRight(
|
| + device.id, swap);
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +
|
| bool CrasAudioHandler::has_alternative_input() const {
|
| return has_alternative_input_;
|
| }
|
|
|