diff options
| author | Andre Eisenbach <eisenbach@google.com> | 2014-07-11 16:57:24 -0700 |
|---|---|---|
| committer | Andre Eisenbach <eisenbach@google.com> | 2014-07-11 17:10:56 -0700 |
| commit | f13db8a534adf5281ee915c4b73b3141957ed17b (patch) | |
| tree | 712dc415d6b19d163a85d4a4a79b5787a9e5c5ee /utils | |
| parent | b1c8fccbca8573555d6db07a2e44685f335800aa (diff) | |
| download | android_system_bt-f13db8a534adf5281ee915c4b73b3141957ed17b.tar.gz android_system_bt-f13db8a534adf5281ee915c4b73b3141957ed17b.tar.bz2 android_system_bt-f13db8a534adf5281ee915c4b73b3141957ed17b.zip | |
Calculate A2DP frames to send based on elapsed time
This patch is aimed at improving A2DP audio quality by sending the
correct number of frames based on the actual time elapes between "ticks"
in order to account for timer drift.
Change-Id: If5b7cde90f5eb10b926ad247f51cff0eb60bbff7
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/src/bt_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/bt_utils.c b/utils/src/bt_utils.c index 6decacf00..df1fd0405 100644 --- a/utils/src/bt_utils.c +++ b/utils/src/bt_utils.c @@ -127,7 +127,7 @@ void raise_priority_a2dp(tHIGH_PRIORITY_TASK high_task) { pthread_once(&g_DoSchedulingGroupOnce[g_TaskIdx], check_do_scheduling_group); if (g_DoSchedulingGroup[g_TaskIdx]) { // set_sched_policy does not support tid == 0 - rc = set_sched_policy(tid, SP_FOREGROUND); + rc = set_sched_policy(tid, SP_AUDIO_SYS); } g_TaskIDs[high_task] = tid; pthread_mutex_unlock(&gIdxLock); |
