Unmute audio streams for full volume device

Moving an audio device to full volume behavior ensures all audio strams
are at max volume. However muted audio streams remain muted.

Full volume devices do not allow mute changes, leaving streams that are
muted stuck in this state.

This adds to the logic turning streams to max volume to also unmute
streams if the device is in full volume behavior.

BUG: 160447552
Test: manual
Change-Id: Ic74108b7e2928f715d0b4773ab59284f3829eb22
This commit is contained in:
Marvin Ramin
2020-07-03 11:50:17 +02:00
parent 5880788112
commit 1a5dc05352

View File

@@ -1320,6 +1320,11 @@ public class AudioService extends IAudioService.Stub
device, caller, true /*hasModifyAudioSettings*/);
}
mStreamStates[streamType].checkFixedVolumeDevices();
// Unmute streams if device is full volume
if (mFullVolumeDevices.contains(device)) {
mStreamStates[streamType].mute(false);
}
}
}