• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revisión66eaff292dc1ef378f68d46b36842f0aac06c9c2 (tree)
Tiempo2019-10-08 07:46:28
AutorCheney Ni <cheneyni@goog...>
Commiterandroid-build-team Robot

Log Message

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
Merged-In: I0d9e92968765365410909908ffcaf6dc81161ea0
(cherry picked from commit f11548248484e27044e3fc2b634db89a61eede05)
(cherry picked from commit 64831b7273a8a4d2e7d9937491184b8a065d893f)

Cambiar Resumen

Diferencia incremental

--- a/bta/av/bta_av_main.cc
+++ b/bta/av/bta_av_main.cc
@@ -1108,8 +1108,10 @@ bool bta_av_link_role_ok(tBTA_AV_SCB* p_scb, uint8_t bits) {
11081108 "%s: peer %s BTM_SwitchRole(BTM_ROLE_MASTER) error: %d",
11091109 __func__, p_scb->PeerAddress().ToString().c_str(), status);
11101110 }
1111- is_ok = false;
1112- p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_START;
1111+ if (status != BTM_DEV_BLACKLISTED) {
1112+ is_ok = false;
1113+ p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_START;
1114+ }
11131115 }
11141116 }
11151117