• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

system/bt


Commit MetaInfo

修訂a0196e79d494b49b1159280c5e07626414cb8835 (tree)
時間2016-09-13 16:01:19
作者Cal Archer <carcher002@gmai...>
CommiterSteve Kondik

Log Message

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

Change Summary

差異

--- a/stack/l2cap/l2c_utils.c
+++ b/stack/l2cap/l2c_utils.c
@@ -2572,12 +2572,6 @@ BOOLEAN l2cu_set_acl_priority (BD_ADDR bd_addr, UINT8 priority, BOOLEAN reset_af
25722572 return (FALSE);
25732573 }
25742574
2575- if (p_lcb->acl_priority != priority)
2576- {
2577- p_lcb->acl_priority = priority;
2578- l2c_link_adjust_allocation();
2579- }
2580-
25812575 if (BTM_IS_BRCM_CONTROLLER())
25822576 {
25832577 /* 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
26012595 l2c_link_adjust_allocation();
26022596 }
26032597 }
2598+ } else {
2599+ if (p_lcb->acl_priority != priority)
2600+ {
2601+ p_lcb->acl_priority = priority;
2602+ l2c_link_adjust_allocation();
2603+ }
26042604 }
2605+
26052606 return(TRUE);
26062607 }
26072608