OSDN Git Service

Don't update the MTU across multiple A2DP connections that are open
authorPavlin Radoslavov <pavlin@google.com>
Wed, 16 May 2018 02:21:03 +0000 (19:21 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 16 May 2018 18:59:06 +0000 (11:59 -0700)
commit1200c75df85ac3d4f49b91039334077ada60e0cb
treed2a3d35ddc98d4923f7d363674cecd94dd27c63e
parent429854938029c68ce8a143195687669a8a368b21
Don't update the MTU across multiple A2DP connections that are open

Remove function bta_av_chk_mtu() that updates the MTU to the smallest
value across all open A2DP connections, because that function is not needed.
Such MTU update is problematic for Multi-A2DP, because some codecs cannot
be initialized/used if the MTU is too small. E.g., for LDAC the
MTU value used for the codec initialization must be at least 679.

Bug: 79675742
Test: Manual - (1)Connect Bose QC35; (2)Connect Sony SRS-XB2; (3)Play music
Change-Id: I8048a1bf6df6d4d6291bf3570a95b5182af15b6a
bta/av/bta_av_aact.cc
bta/av/bta_av_int.h
bta/av/bta_av_main.cc
btif/co/bta_av_co.cc