am e92d6238
: audio policy: apply default device volume
* commit 'e92d623811f3fd3e7cc5e5dd8bc93c0c0a8fdf50': audio policy: apply default device volume
This commit is contained in:
commit
8e7e425471
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue