Merge "AudioService: fix cross deadlock" into qt-dev
This commit is contained in:
@@ -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) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user