audioservice: re send BT_SCO parameter to HAL when audioserver restarts am: 62a81ab99a

am: 68f6a8b5ef

Change-Id: I767796ec32f85f0c223983c502cac918739664a5
This commit is contained in:
Eric Laurent
2019-07-15 14:40:22 -07:00
committed by android-build-merger

View File

@@ -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");
}