summaryrefslogtreecommitdiffstats
path: root/stack/l2cap/l2c_utils.c
diff options
context:
space:
mode:
authorpramod kotreshappa <pramodk@codeaurora.org>2014-05-06 21:58:57 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-26 21:07:38 -0700
commit2772d76990d8424ef3c629dba164fc7111b37db3 (patch)
tree7a42d9fd8d25580c376588fb164d24dc8c4f1fdf /stack/l2cap/l2c_utils.c
parent871c1edaf17bbbd1b10f6b332e06ab13119bd956 (diff)
downloadandroid_system_bt-2772d76990d8424ef3c629dba164fc7111b37db3.tar.gz
android_system_bt-2772d76990d8424ef3c629dba164fc7111b37db3.tar.bz2
android_system_bt-2772d76990d8424ef3c629dba164fc7111b37db3.zip
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: 647447 Change-Id: I8f7742ae193998643ff2a12bf87f9874844ee0f7
Diffstat (limited to 'stack/l2cap/l2c_utils.c')
-rw-r--r--stack/l2cap/l2c_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stack/l2cap/l2c_utils.c b/stack/l2cap/l2c_utils.c
index dafe34498..5bf11556d 100644
--- a/stack/l2cap/l2c_utils.c
+++ b/stack/l2cap/l2c_utils.c
@@ -2613,6 +2613,12 @@ BOOLEAN l2cu_set_acl_priority (BD_ADDR bd_addr, UINT8 priority, BOOLEAN reset_af
return (FALSE);
}
+ if (p_lcb->acl_priority != priority)
+ {
+ p_lcb->acl_priority = priority;
+ l2c_link_adjust_allocation();
+ }
+
if (BTM_IS_BRCM_CONTROLLER())
{
/* Called from above L2CAP through API; send VSC if changed */