OSDN Git Service

increase the bluetooth task priority when start a2dp.
authorZhihai Xu <zhihaixu@google.com>
Wed, 8 Jan 2014 19:45:17 +0000 (11:45 -0800)
committerZhihai Xu <zhihaixu@google.com>
Wed, 16 Apr 2014 18:20:54 +0000 (11:20 -0700)
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

index ee21861..512e1b5 100644 (file)
@@ -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 */