Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4622bfe9 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "AudioService: VOICE_CALL vol changes map to SCO in calls" into main

parents db03730b f0615ae8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4674,6 +4674,12 @@ public class AudioService extends IAudioService.Stub
        int streamTypeAlias = mStreamVolumeAlias[streamType];
        VolumeStreamState streamState = mStreamStates[streamTypeAlias];
        if ((streamType == AudioManager.STREAM_VOICE_CALL)
                && isInCommunication() && mDeviceBroker.isBluetoothScoActive()) {
            Log.i(TAG, "setStreamVolume for STREAM_VOICE_CALL, switching to STREAM_BLUETOOTH_SCO");
            streamType = AudioManager.STREAM_BLUETOOTH_SCO;
        }
        final int device = (ada == null)
                ? getDeviceForStream(streamType)
                : ada.getInternalType();