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

Commit e1f51b85 authored by Cheney Ni's avatar Cheney Ni Committed by Myles Watson
Browse files

A2DP: Don't wait for role switch when unsupported by the BT SoC

Bug: 141678907
Test: Do A2DP playback manually
Change-Id: I6266c44562da861cd342d040e0802cd832e4accb
parent 59ab573f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1114,7 +1114,7 @@ bool bta_av_link_role_ok(tBTA_AV_SCB* p_scb, uint8_t bits) {
                  "%s: peer %s BTM_SwitchRole(BTM_ROLE_MASTER) error: %d",
                  __func__, p_scb->PeerAddress().ToString().c_str(), status);
      }
      if (status != BTM_DEV_BLACKLISTED) {
      if (status != BTM_MODE_UNSUPPORTED && status != BTM_DEV_BLACKLISTED) {
        is_ok = false;
        p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_START;
      }