Merge "AudioService: fix BT SCO volume mute" into tm-qpr-dev

This commit is contained in:
Eric Laurent
2023-03-06 10:34:04 +00:00
committed by Android (Google) Code Review

View File

@@ -8396,7 +8396,9 @@ public class AudioService extends IAudioService.Stub
if (isMutable()) { if (isMutable()) {
// For call stream, align mute only when muted, not when index is set to 0 // For call stream, align mute only when muted, not when index is set to 0
mVolumeGroupState.mute( mVolumeGroupState.mute(
forceMuteState ? mIsMuted : groupIndex == 0 || mIsMuted); forceMuteState ? mIsMuted :
(groupIndex == 0 && !isCallStream(mStreamType))
|| mIsMuted);
} }
} }
} }