Loading services/core/java/com/android/server/audio/AudioDeviceInventory.java +2 −1 Original line number Diff line number Diff line Loading @@ -896,7 +896,8 @@ public class AudioDeviceInventory { if (event == BtHelper.EVENT_DEVICE_CONFIG_CHANGE) { boolean codecChange = false; if (btInfo.mProfile == BluetoothProfile.A2DP || btInfo.mProfile == BluetoothProfile.LE_AUDIO) { || btInfo.mProfile == BluetoothProfile.LE_AUDIO || btInfo.mProfile == BluetoothProfile.LE_AUDIO_BROADCAST) { if (di.mDeviceCodecFormat != codec) { di.mDeviceCodecFormat = codec; mConnectedDevices.replace(key, di); Loading services/core/java/com/android/server/audio/BtHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -324,7 +324,8 @@ public class BtHelper { // AUDIO_FORMAT_DEFAULT as native audio policy manager expects a specific audio format // only if audio HW module selection based on format is supported for the device type. if (!(profile == BluetoothProfile.A2DP || (profile == BluetoothProfile.LE_AUDIO && isLeOutput))) { || (isLeOutput && ((profile == BluetoothProfile.LE_AUDIO) || (profile == BluetoothProfile.LE_AUDIO_BROADCAST))))) { return AudioSystem.AUDIO_FORMAT_DEFAULT; } @AudioSystem.AudioFormatNativeEnumForBtCodec int codec = Loading Loading
services/core/java/com/android/server/audio/AudioDeviceInventory.java +2 −1 Original line number Diff line number Diff line Loading @@ -896,7 +896,8 @@ public class AudioDeviceInventory { if (event == BtHelper.EVENT_DEVICE_CONFIG_CHANGE) { boolean codecChange = false; if (btInfo.mProfile == BluetoothProfile.A2DP || btInfo.mProfile == BluetoothProfile.LE_AUDIO) { || btInfo.mProfile == BluetoothProfile.LE_AUDIO || btInfo.mProfile == BluetoothProfile.LE_AUDIO_BROADCAST) { if (di.mDeviceCodecFormat != codec) { di.mDeviceCodecFormat = codec; mConnectedDevices.replace(key, di); Loading
services/core/java/com/android/server/audio/BtHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -324,7 +324,8 @@ public class BtHelper { // AUDIO_FORMAT_DEFAULT as native audio policy manager expects a specific audio format // only if audio HW module selection based on format is supported for the device type. if (!(profile == BluetoothProfile.A2DP || (profile == BluetoothProfile.LE_AUDIO && isLeOutput))) { || (isLeOutput && ((profile == BluetoothProfile.LE_AUDIO) || (profile == BluetoothProfile.LE_AUDIO_BROADCAST))))) { return AudioSystem.AUDIO_FORMAT_DEFAULT; } @AudioSystem.AudioFormatNativeEnumForBtCodec int codec = Loading