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

Unified Diff: ash/system/chromeos/audio/tray_audio_delegate_chromeos.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: Change internal speaker channel mode OnDisplayAdded. 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
Index: ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
diff --git a/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
index 4f39865c0dee9196534beee138834dd3877439cd..fb1532fe37d177f9c42339ada7980d8f309fc7d2 100644
--- a/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
+++ b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc
@@ -60,5 +60,11 @@ void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) {
CrasAudioHandler::Get()->SetOutputVolumePercent(level);
}
+void TrayAudioDelegateChromeOs::SetInternalSpeakerChannelMode(
+ AudioChannelMode mode) {
+ CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel(
+ mode == LEFT_RIGHT_SWAPPED);
+}
+
} // namespace system
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698