summaryrefslogtreecommitdiffstats
path: root/stack/btu/btu_task.c
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-10-17 19:30:32 -0700
committerMatthew Xie <mattx@google.com>2012-10-19 14:51:43 -0700
commit520b756328dcf4a54cf25f5d16177aa17fdbce31 (patch)
treec9bb9d4b0ea2109e217a355b23d46e753aa3f61d /stack/btu/btu_task.c
parentad66e170ebd53f8f5970844f9b28ec4d56125c13 (diff)
downloadexternal_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.zip
external_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.tar.gz
external_bluetooth_bluedroid-520b756328dcf4a54cf25f5d16177aa17fdbce31.tar.bz2
Bump up priority of a few tasks that could affect a2dp
Change nice to -16, same as android audio service. Affected tasks: btu, gki timer, hci worker, media task, userial_read bug 7267756 Change-Id: I0b5ecc4345240601ef6e5890240054dab193e4a0
Diffstat (limited to 'stack/btu/btu_task.c')
-rw-r--r--stack/btu/btu_task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stack/btu/btu_task.c b/stack/btu/btu_task.c
index 1041307..48ce489 100644
--- a/stack/btu/btu_task.c
+++ b/stack/btu/btu_task.c
@@ -38,6 +38,7 @@
#include "hcimsgs.h"
#include "l2c_int.h"
#include "btu.h"
+#include "bt_utils.h"
#include "sdpint.h"
@@ -192,6 +193,8 @@ BTU_API UINT32 btu_task (UINT32 param)
/* Send a startup evt message to BTIF_TASK to kickstart the init procedure */
GKI_send_event(BTIF_TASK, BT_EVT_TRIGGER_STACK_INIT);
+ raise_priority_a2dp(TASK_HIGH_BTU);
+
/* Wait for, and process, events */
for (;;)
{