system/bt
修訂 | a0196e79d494b49b1159280c5e07626414cb8835 (tree) |
---|---|
時間 | 2016-09-13 16:01:19 |
作者 | Cal Archer <carcher002@gmai...> |
Commiter | Steve Kondik |
Bluetooth: fix stuttering audio
commit 2772d76990d8424ef3c629dba164fc7111b37db3 caused
a regression in A2DP for Broadcom Bluetooth chipsets
by not sending the HCI_BRCM_SET_ACL_PRIORITY command.
Change this logic so the ACL priority adjustment occurs
unconditionally for non-Broadcom chipsets only.
Reproduction steps: Entering Bluetooth settings which
triggers inquiry and makes the device discoverable while
simultaneously using 2.4GHz WiFi.
Change-Id: Ic40dc8d66ae30c71e0ddf1a2eaeb19fee1e87ecb
@@ -2572,12 +2572,6 @@ BOOLEAN l2cu_set_acl_priority (BD_ADDR bd_addr, UINT8 priority, BOOLEAN reset_af | ||
2572 | 2572 | return (FALSE); |
2573 | 2573 | } |
2574 | 2574 | |
2575 | - if (p_lcb->acl_priority != priority) | |
2576 | - { | |
2577 | - p_lcb->acl_priority = priority; | |
2578 | - l2c_link_adjust_allocation(); | |
2579 | - } | |
2580 | - | |
2581 | 2575 | if (BTM_IS_BRCM_CONTROLLER()) |
2582 | 2576 | { |
2583 | 2577 | /* Called from above L2CAP through API; send VSC if changed */ |
@@ -2601,7 +2595,14 @@ BOOLEAN l2cu_set_acl_priority (BD_ADDR bd_addr, UINT8 priority, BOOLEAN reset_af | ||
2601 | 2595 | l2c_link_adjust_allocation(); |
2602 | 2596 | } |
2603 | 2597 | } |
2598 | + } else { | |
2599 | + if (p_lcb->acl_priority != priority) | |
2600 | + { | |
2601 | + p_lcb->acl_priority = priority; | |
2602 | + l2c_link_adjust_allocation(); | |
2603 | + } | |
2604 | 2604 | } |
2605 | + | |
2605 | 2606 | return(TRUE); |
2606 | 2607 | } |
2607 | 2608 |