diff options
author | Eric Laurent <elaurent@google.com> | 2011-04-26 00:19:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-26 00:19:34 -0700 |
commit | d9046e0a29fb794a7f6fddaa248b814e7b253c42 (patch) | |
tree | 67f469b5f257e25bd46e2fe7512d0a5776e0e45f | |
parent | 7613baa541233c0955d32c4f76731f6c1fb6f61f (diff) | |
parent | 023eeac54c428d78b755fa3c856f20d17abb8a40 (diff) | |
download | frameworks_av-d9046e0a29fb794a7f6fddaa248b814e7b253c42.zip frameworks_av-d9046e0a29fb794a7f6fddaa248b814e7b253c42.tar.gz frameworks_av-d9046e0a29fb794a7f6fddaa248b814e7b253c42.tar.bz2 |
am 223995dc: Fix issue 4335692: HDMI media volume
* commit '223995dcf28aca2399258951a59559a7ae318ceb':
Fix issue 4335692: HDMI media volume
-rw-r--r-- | services/audioflinger/AudioPolicyManagerBase.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/audioflinger/AudioPolicyManagerBase.cpp b/services/audioflinger/AudioPolicyManagerBase.cpp index f653dc5..f5e7343 100644 --- a/services/audioflinger/AudioPolicyManagerBase.cpp +++ b/services/audioflinger/AudioPolicyManagerBase.cpp @@ -1911,6 +1911,13 @@ float AudioPolicyManagerBase::computeVolume(int stream, int index, audio_io_hand device = outputDesc->device(); } + // if volume is not 0 (not muted), force media volume to max on digital output + if (stream == AudioSystem::MUSIC && + index != mStreams[stream].mIndexMin && + device == AudioSystem::DEVICE_OUT_AUX_DIGITAL) { + return 1.0; + } + volume = volIndexToAmpl(device, streamDesc, index); // if a headset is connected, apply the following rules to ring tones and notifications |