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

Commit 5f8feab3 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

am: 68f6a8b5

Change-Id: I767796ec32f85f0c223983c502cac918739664a5
parents 5a374075 68f6a8b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -125,6 +125,8 @@ import java.io.PrintWriter;
    /*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");
        }