am e92d6238: audio policy: apply default device volume

* commit 'e92d623811f3fd3e7cc5e5dd8bc93c0c0a8fdf50':
  audio policy: apply default device volume
This commit is contained in:
Eric Laurent 2013-07-15 17:23:36 -07:00 committed by Android Git Automerger
commit 8e7e425471

View file

@ -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;