aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-12-21 14:25:12 -0800
committerEric Laurent <elaurent@google.com>2011-12-21 14:27:25 -0800
commit05675015d13729f7da5bf32c88264c68e02d6028 (patch)
treec72faa07736d9590cc6fdeeb218e4934dfeb2caa
parenta345fd4f5204db63b590c5e993052952379426a8 (diff)
downloadbluez-05675015d13729f7da5bf32c88264c68e02d6028.tar.gz
a2dp audio HAL: extend write timeout.android-cts-4.0.3_r2
Extend the timeout delay in out_write() when waiting for available space in output buffer to accomodate A2DP sink with a long startup time. Issue 5781477. Change-Id: I4e31b5116ddbea8774a15b2016d088ea7039ec93
-rw-r--r--audio/android_audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/android_audio_hw.c b/audio/android_audio_hw.c
index 52d6066a..e552f7a7 100644
--- a/audio/android_audio_hw.c
+++ b/audio/android_audio_hw.c
@@ -50,7 +50,7 @@
/* maximum time allowed by out_standby_stream_locked() for 2dp_write() to complete */
#define BUF_WRITE_COMPLETION_TIMEOUT_MS 5000
/* maximum time allowed by out_write() for frames to be available in in write thread buffer */
-#define BUF_WRITE_AVAILABILITY_TIMEOUT_MS 1000
+#define BUF_WRITE_AVAILABILITY_TIMEOUT_MS 5000
/* maximum number of attempts to wait for a write completion in out_standby_stream_locked() */
#define MAX_WRITE_COMPLETION_ATTEMPTS 5