diff options
author | Eric Laurent <elaurent@google.com> | 2013-07-15 15:35:58 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-07-15 15:41:08 -0700 |
commit | e92d623811f3fd3e7cc5e5dd8bc93c0c0a8fdf50 (patch) | |
tree | 92c880140ab556b3658ed786ce81434be76350c6 /audio | |
parent | 66707435156d8d99d795271a7bd54943065b4c2d (diff) | |
download | platform_hardware_libhardware_legacy-jb-mr2-dev.tar.gz platform_hardware_libhardware_legacy-jb-mr2-dev.tar.bz2 platform_hardware_libhardware_legacy-jb-mr2-dev.zip |
audio policy: apply default device volumeandroid-4.3_r3.1android-4.3_r3android-4.3.1_r1jb-mr2.0.0-releasejb-mr2-dev
Make sure that we apply default device volume to
active outputs in case no specific volume for selected
device is received afterward.
Bug: 9760269.
Change-Id: I216de40396e1075e77493c97e8b192cd3a31d546
Diffstat (limited to 'audio')
-rw-r--r-- | audio/AudioPolicyManagerBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp index 236bf69..bf3f36a 100644 --- a/audio/AudioPolicyManagerBase.cpp +++ b/audio/AudioPolicyManagerBase.cpp @@ -1036,7 +1036,7 @@ status_t AudioPolicyManagerBase::setStreamVolumeIndex(AudioSystem::stream_type s for (size_t i = 0; i < mOutputs.size(); i++) { audio_devices_t curDevice = getDeviceForVolume(mOutputs.valueAt(i)->device()); - if (device == curDevice) { + if ((device == AUDIO_DEVICE_OUT_DEFAULT) || (device == curDevice)) { status_t volStatus = checkAndSetVolume(stream, index, mOutputs.keyAt(i), curDevice); if (volStatus != NO_ERROR) { status = volStatus; |