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, 8 Jan 2014 19:45:17 +0000 (11:45 -0800)
commit4128e36cd8430dfbed16d364e6ab5265e1642db5
tree83f18430a833bce1f059ea32d83a0266cbc42fa3
parent6567fa2d9d9d4f30e9ff5d1eb17794fae4771458
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
btif/src/btif_av.c
utils/include/bt_utils.h
utils/src/bt_utils.c