a2dp audio HAL: extend write timeout.

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
diff --git a/audio/android_audio_hw.c b/audio/android_audio_hw.c
index 52d6066..e552f7a 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