OSDN Git Service

A2DP: Don't wait for role switch on a blacklisted device
authorCheney Ni <cheneyni@google.com>
Wed, 25 Sep 2019 13:33:25 +0000 (21:33 +0800)
committerMyles Watson <mylesgw@google.com>
Thu, 26 Sep 2019 15:43:52 +0000 (15:43 +0000)
commitf11548248484e27044e3fc2b634db89a61eede05
tree16e39c1d30e3f264893f4f8aee72d350386e4615
parentd4348634412ecf7bde5fe83f01b05c99fbaee650
A2DP: Don't wait for role switch on a blacklisted device

When there are 2 or more ACL links, we will try to be the master for
better link quality, and setup flags to wait for the following role
switch results. Because this is an asynchronous task, we would check
flags for any further actions. However, there would not be other results
for role switch IOP, and could be just ignored.

Bug: 141177108
Test: Add headset to IOP and do A2DP playback manually
Change-Id: I0d9e92968765365410909908ffcaf6dc81161ea0
bta/av/bta_av_main.cc