diff options
author | Matthew Xie <mattx@google.com> | 2012-10-26 12:29:29 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-26 12:29:30 -0700 |
commit | 23ad5920f8c2dfdbd2bac8c4d7b244226a77c644 (patch) | |
tree | 21f8de49ed14d3f69c4c19438f22c3c5f46f9545 /btif | |
parent | 9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (diff) | |
parent | 520b756328dcf4a54cf25f5d16177aa17fdbce31 (diff) | |
download | external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.zip external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.gz external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.bz2 |
Merge "Bump up priority of a few tasks that could affect a2dp" into jb-mr1-dev
Diffstat (limited to 'btif')
-rw-r--r-- | btif/src/bluetooth.c | 4 | ||||
-rwxr-xr-x | btif/src/btif_media_task.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c index 18e706f..20d6a07 100644 --- a/btif/src/bluetooth.c +++ b/btif/src/bluetooth.c @@ -40,6 +40,7 @@ #define LOG_TAG "bluedroid" #include "btif_api.h" +#include "bt_utils.h" /************************************************************************************ ** Constants & Macros @@ -113,6 +114,8 @@ static int init(bt_callbacks_t* callbacks ) /* add checks for individual callbacks ? */ + bt_utils_init(); + /* init btif */ btif_init_bluetooth(); @@ -146,6 +149,7 @@ static void cleanup( void ) return; btif_shutdown_bluetooth(); + bt_utils_cleanup(); /* hal callbacks reset upon shutdown complete callback */ diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c index 6975154..c615751 100755 --- a/btif/src/btif_media_task.c +++ b/btif/src/btif_media_task.c @@ -67,6 +67,7 @@ #include "btif_av.h" #include "btif_sm.h" #include "btif_util.h" +#include "bt_utils.h" /***************************************************************************** ** Constants @@ -1209,6 +1210,8 @@ int btif_media_task(void *p) media_task_running = MEDIA_TASK_STATE_ON; + raise_priority_a2dp(TASK_HIGH_MEDIA); + while (1) { event = GKI_wait(0xffff, 0); |