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

Side by Side Diff: ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc

Issue 1199413008: Work around for HDMI audio output rediscovering transistion loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to VLOG. Created 5 years, 5 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 63 void TrayAudioDelegateChromeOs::SetInternalSpeakerChannelMode(
64 AudioChannelMode mode) { 64 AudioChannelMode mode) {
65 CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel( 65 CrasAudioHandler::Get()->SwapInternalSpeakerLeftRightChannel(
66 mode == LEFT_RIGHT_SWAPPED); 66 mode == LEFT_RIGHT_SWAPPED);
67 } 67 }
68 68
69 void TrayAudioDelegateChromeOs::SetActiveHDMIOutoutRediscoveringIfNecessary(
70 bool force_rediscovering) {
71 CrasAudioHandler::Get()->SetActiveHDMIOutoutRediscoveringIfNecessary(
72 force_rediscovering);
73 }
74
69 } // namespace system 75 } // namespace system
70 } // namespace ash 76 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/audio/tray_audio_delegate_chromeos.h ('k') | ash/system/win/audio/tray_audio_delegate_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698