summaryrefslogtreecommitdiffstats
path: root/hci
diff options
context:
space:
mode:
Diffstat (limited to 'hci')
-rw-r--r--hci/Android.mk6
-rw-r--r--hci/src/bt_hci_bdroid.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/hci/Android.mk b/hci/Android.mk
index 875197c..f2a63e5 100644
--- a/hci/Android.mk
+++ b/hci/Android.mk
@@ -26,11 +26,13 @@ LOCAL_SRC_FILES += \
endif
LOCAL_C_INCLUDES += \
- $(LOCAL_PATH)/include
+ $(LOCAL_PATH)/include \
+ $(LOCAL_PATH)/../utils/include
LOCAL_SHARED_LIBRARIES := \
libcutils \
- libdl
+ libdl \
+ libbt-utils
LOCAL_MODULE := libbt-hci
LOCAL_MODULE_TAGS := optional
diff --git a/hci/src/bt_hci_bdroid.c b/hci/src/bt_hci_bdroid.c
index 27d190e..7b14eb3 100644
--- a/hci/src/bt_hci_bdroid.c
+++ b/hci/src/bt_hci_bdroid.c
@@ -34,6 +34,7 @@
#include "utils.h"
#include "hci.h"
#include "userial.h"
+#include "bt_utils.h"
#include <sys/prctl.h>
#ifndef BTHC_DBG
@@ -344,6 +345,8 @@ static void *bt_hc_worker_thread(void *arg)
prctl(PR_SET_NAME, (unsigned long)"bt_hc_worker", 0, 0, 0);
tx_cmd_pkts_pending = FALSE;
+ raise_priority_a2dp(TASK_HIGH_HCI_WORKER);
+
while (lib_running)
{
pthread_mutex_lock(&hc_cb.mutex);