From c0d87309085094feb49c9dd51c3d4ac3e4aeab2d Mon Sep 17 00:00:00 2001 From: Zhihai Xu Date: Wed, 8 Jan 2014 11:45:17 -0800 Subject: [PATCH] increase the bluetooth task priority when start a2dp. change the BT task priority based on audio play state. increase the BT task priority to ANDROID_PRIORITY_URGENT_AUDIO ,when start ad2p audio playing. to better prevent CPU premption by other process/task(UI). restore the BT task priority when stop a2dp audio playing. bug:12082841 Change-Id: I34e8344cffea87f68987149c820cd3e84a4196d1 Conflicts: utils/include/bt_utils.h --- utils/include/bt_utils.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/include/bt_utils.h b/utils/include/bt_utils.h index ee218618e..512e1b552 100644 --- a/utils/include/bt_utils.h +++ b/utils/include/bt_utils.h @@ -40,7 +40,5 @@ void bt_utils_init(); void bt_utils_cleanup(); void raise_priority_a2dp(tHIGH_PRIORITY_TASK high_task); void adjust_priority_a2dp(int start); - #define UNUSED(x) (void)(x) - #endif /* BT_UTILS_H */ -- 2.11.0