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

Skip to content
Commit cc7ae803 authored by Cheney Ni's avatar Cheney Ni
Browse files

Apply the new A2DP codec config only when passed the check with codec status

In order to apply a new codec config, the Bluetooth framework needs to
re-configure A2DP with remote, to restart the session with the Audio
HAL, and to notify the audio server to reset the output. This is a
heavy task over HALs and frameworks, so we use the current codec status
to ignore redundant codec preferences.

* To change the preference of optional codecs only when there are all
  mandatory and optional codecs selectable.
* To apply the new codec preference only when those feeding parameters
  or codec specifics are changing.
* Using the current feeding parameters as default settings, and no
  codec changed is needed.

Bug: 131147224
Bug: 133719424
Test: atest -t BluetoothInstrumentationTests:com.android.bluetooth.a2dp
Change-Id: I028b9f168d2e629dd02c8474592e3713445a5000
Merged-In: I028b9f168d2e629dd02c8474592e3713445a5000
(cherry picked from commit 1e2b5beb)
parent 40005b6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment