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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/system/chromeos/audio/tray_audio_delegate_chromeos.h" 5 #include "ash/system/chromeos/audio/tray_audio_delegate_chromeos.h"
6 6
7 #include "chromeos/audio/cras_audio_handler.h" 7 #include "chromeos/audio/cras_audio_handler.h"
8 #include "grit/ash_resources.h" 8 #include "grit/ash_resources.h"
9 9
10 using chromeos::CrasAudioHandler; 10 using chromeos::CrasAudioHandler;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) { 55 void TrayAudioDelegateChromeOs::SetOutputAudioIsMuted(bool is_muted) {
56 CrasAudioHandler::Get()->SetOutputMute(is_muted); 56 CrasAudioHandler::Get()->SetOutputMute(is_muted);
57 } 57 }
58 58
59 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) { 59 void TrayAudioDelegateChromeOs::SetOutputVolumeLevel(int level) {
60 CrasAudioHandler::Get()->SetOutputVolumePercent(level); 60 CrasAudioHandler::Get()->SetOutputVolumePercent(level);
61 } 61 }
62 62
63 void TrayAudioDelegateChromeOs::SetInternalSpeakerChannelMode(
64 AudioChannelMode mode) {
65 CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel(
66 mode == LEFT_RIGHT_SWAPPED);
67 }
68
63 } // namespace system 69 } // namespace system
64 } // namespace ash 70 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698