Merge "AudioService: fix cross deadlock" into qt-dev

This commit is contained in:
Eric Laurent
2019-05-10 15:11:16 +00:00
committed by Android (Google) Code Review

View File

@@ -4974,7 +4974,6 @@ public class AudioService extends IAudioService.Stub
} }
private void onSetVolumeIndexOnDevice(@NonNull DeviceVolumeUpdate update) { private void onSetVolumeIndexOnDevice(@NonNull DeviceVolumeUpdate update) {
synchronized (VolumeStreamState.class) {
final VolumeStreamState streamState = mStreamStates[update.mStreamType]; final VolumeStreamState streamState = mStreamStates[update.mStreamType];
if (update.hasVolumeIndex()) { if (update.hasVolumeIndex()) {
final int index = update.getVolumeIndex(); final int index = update.getVolumeIndex();
@@ -4987,7 +4986,6 @@ public class AudioService extends IAudioService.Stub
} }
setDeviceVolume(streamState, update.mDevice); setDeviceVolume(streamState, update.mDevice);
} }
}
/*package*/ void setDeviceVolume(VolumeStreamState streamState, int device) { /*package*/ void setDeviceVolume(VolumeStreamState streamState, int device) {