summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-10-25 18:25:49 -0700
committerMatthew Xie <mattx@google.com>2012-10-26 12:23:25 -0700
commit7a291d46e4d535e4c17bd7c6e2b637fa26d24ff3 (patch)
tree995a18d10a7e7405f58886e5ea4c96c1ff179728 /btif
parent9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (diff)
downloadexternal_bluetooth_bluedroid-7a291d46e4d535e4c17bd7c6e2b637fa26d24ff3.zip
external_bluetooth_bluedroid-7a291d46e4d535e4c17bd7c6e2b637fa26d24ff3.tar.gz
external_bluetooth_bluedroid-7a291d46e4d535e4c17bd7c6e2b637fa26d24ff3.tar.bz2
Increase media task encoded buffer queue throw-away threshold from 12 to 24
To manage temporary congestion in lower layers, the max amount of queued up audio is raised from 240ms to 480ms bug 7394193 Change-Id: Ibee000b83c0f608120537f21323a069caa4f952d
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_media_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c
index 6975154..ecd3825 100755
--- a/btif/src/btif_media_task.c
+++ b/btif/src/btif_media_task.c
@@ -176,7 +176,7 @@ static UINT32 a2dp_media_task_stack[(A2DP_MEDIA_TASK_STACK_SIZE + 3) / 4];
/* fixme -- define this in pcm time instead of buffer count */
/* fixme -- tune optimal value. For now set a large buffer capacity */
-#define MAX_OUTPUT_BUFFER_QUEUE_SZ 12
+#define MAX_OUTPUT_BUFFER_QUEUE_SZ 24
/* trigger rate adjustment if deviation is more than threshold */
#define BTIF_RA_OFFSET_TRIGGER_US 3000