• 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

Revisão419bd3c6ca4294696f3c224d42aa2f7dde131da2 (tree)
Hora2016-08-24 23:09:56
Autorpramod kotreshappa <pramodk@code...>
CommiterLinux Build Service Account

Mensagem de Log

Bluetooth: Dynamic ACL buffer allocation based on ACL Priority

1. A2dp acl link priority is set to high once streaming starts
2. Allocation min 2 ACL bufferswq to high priority link

CRs-fixed: 1040557
Change-Id: I8f7742ae193998643ff2a12bf87f9874844ee0f7

Mudança Sumário

Diff

--- a/stack/l2cap/l2c_link.c
+++ b/stack/l2cap/l2c_link.c
@@ -87,6 +87,7 @@ BOOLEAN hci_blacklistted_for_role_switch (BD_ADDR addr)
8787 return FALSE;
8888 }
8989
90+#define HI_PRI_LINK_QUOTA 2 //Mininum ACL buffer quota for high priority link
9091 /*******************************************************************************
9192 **
9293 ** Function l2c_link_hci_conn_req
@@ -848,6 +849,14 @@ void l2c_link_adjust_allocation (void)
848849 while ( (num_hipri_links * high_pri_link_quota + low_quota) > controller_xmit_quota )
849850 high_pri_link_quota--;
850851
852+ /*Adjust high pri link with min 3 buffers*/
853+ if(num_hipri_links > 0)
854+ {
855+ if(high_pri_link_quota < HI_PRI_LINK_QUOTA)
856+ {
857+ high_pri_link_quota = HI_PRI_LINK_QUOTA;
858+ }
859+ }
851860 /* Work out the xmit quota and buffer quota high and low priorities */
852861 hi_quota = num_hipri_links * high_pri_link_quota;
853862 low_quota = (hi_quota < controller_xmit_quota) ? controller_xmit_quota - hi_quota : 1;
--- a/stack/l2cap/l2c_utils.c
+++ b/stack/l2cap/l2c_utils.c
@@ -2572,6 +2572,12 @@ 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+
25752581 if (BTM_IS_BRCM_CONTROLLER())
25762582 {
25772583 /* Called from above L2CAP through API; send VSC if changed */