summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-04-26 12:44:53 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-26 12:44:53 -0700
commitdab0bea38ab2c2d6b52907b7f5684834c4979251 (patch)
tree19d78d36cb01510a67345467f1c6bc81f6d7f03d /services
parent2e40530f7cbb024b60c491f42dadb2597d4de07e (diff)
parent5bfdfd1e7b4514c6f6143b6b97ef37013f6e53a9 (diff)
downloadframeworks_av-dab0bea38ab2c2d6b52907b7f5684834c4979251.zip
frameworks_av-dab0bea38ab2c2d6b52907b7f5684834c4979251.tar.gz
frameworks_av-dab0bea38ab2c2d6b52907b7f5684834c4979251.tar.bz2
am 48dca4de: am 969357e3: am 223995dc: Fix issue 4335692: HDMI media volume
* commit '48dca4de70890d324b5830a58bb9fa273164151a': Fix issue 4335692: HDMI media volume
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioPolicyManagerBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/audioflinger/AudioPolicyManagerBase.cpp b/services/audioflinger/AudioPolicyManagerBase.cpp
index c0ac669..32d92dc 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