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

Commit 9c539c7b authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioService: optimize BT device config change" into main

parents a3bc536e 023c69fc
Loading
Loading
Loading
Loading
+21 −22
Original line number Diff line number Diff line
@@ -914,10 +914,9 @@ public class AudioDeviceInventory {
                        di.mDeviceCodecFormat = codec;
                        mConnectedDevices.replace(key, di);
                        codecChange = true;
                    }
                        final int res = mAudioSystem.handleDeviceConfigChange(
                            btInfo.mAudioSystemDevice, address, BtHelper.getName(btDevice), codec);

                                btInfo.mAudioSystemDevice, address,
                                BtHelper.getName(btDevice), codec);
                        if (res != AudioSystem.AUDIO_STATUS_OK) {
                            AudioService.sDeviceLogger.enqueue(new EventLogger.StringEvent(
                                    "APM handleDeviceConfigChange failed for A2DP device addr="
@@ -935,7 +934,7 @@ public class AudioDeviceInventory {
                                            + address
                                            + " codec=" + AudioSystem.audioFormatToString(codec))
                                    .printLog(TAG));

                        }
                    }
                }
                if (!codecChange) {