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

Commit 5b410f05 authored by Humberto Borba's avatar Humberto Borba Committed by Daniel Hillenbrand
Browse files

base: audioservice: Set BT_SCO status



It is expected from audio HAL during BT SCO routing.

Signed-off-by: default avatarHumberto Borba <humberos@gmail.com>
Change-Id: Ifdf7529ff292e9f73fc820400ccc7b6ac7ad112a
parent 0bea0a1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2913,8 +2913,10 @@ public class AudioService extends IAudioService.Stub {
    public void setBluetoothScoOnInt(boolean on) {
        if (on) {
            mForcedUseForComm = AudioSystem.FORCE_BT_SCO;
            AudioSystem.setParameters("BT_SCO=on");
        } else if (mForcedUseForComm == AudioSystem.FORCE_BT_SCO) {
            mForcedUseForComm = AudioSystem.FORCE_NONE;
            AudioSystem.setParameters("BT_SCO=off");
        }

        sendMsg(mAudioHandler, MSG_SET_FORCE_USE, SENDMSG_QUEUE,