A2DP: Don't select disabled optional codecs when local SRC reconnecting
When local SRC is establishing a connection, the Bluetooth stack follows those default priorities to choose a codec, and A2dpService needs to judge again after this connection up event. If a user prefers the mandatory codec, the peer state is OPEN -> RECONFIG -> OPEN which is redundant but lousy. Since codecs preference is saved at the upper-layer, this change queries the mandatory codec, and raises the priority for more preferred codec while reconnecting from local. Bug: 134131114 Bug: 147572898 Test: Local A2DP initializes connections Change-Id: I110ffa463dd4c9ec62e18e1843b5aebc84d73093 Merged-In: I110ffa463dd4c9ec62e18e1843b5aebc84d73093 (cherry picked from commit 2fda2f0e415b2da9e7d5201bf8089492db88e73a)
Loading
Please register or sign in to comment