audioservice: re send BT_SCO parameter to HAL when audioserver restarts
am: 62a81ab99a
Change-Id: Ie153b7db0efea5ec0b67b50cb7f396e60dd98517
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user