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

Commit 6a79551e authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

audioservice: re send BT_SCO parameter to HAL when audioserver restarts

am: 62a81ab9

Change-Id: I7180f8115fc45ee489b928291ccb6f5ff4c0989e
parents 3e019f74 62a81ab9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -123,6 +123,8 @@ import com.android.internal.annotations.GuardedBy;
    /*package*/ void onAudioServerDied() {
        // Restore forced usage for communications and record
        synchronized (mDeviceStateLock) {
            AudioSystem.setParameters(
                    "BT_SCO=" + (mForcedUseForComm == AudioSystem.FORCE_BT_SCO ? "on" : "off"));
            onSetForceUse(AudioSystem.FOR_COMMUNICATION, mForcedUseForComm, "onAudioServerDied");
            onSetForceUse(AudioSystem.FOR_RECORD, mForcedUseForComm, "onAudioServerDied");
        }