summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Mohan <quic_anamoh@quicinc.com>2024-02-07 16:33:32 +0530
committerAnand Mohan <quic_anamoh@quicinc.com>2024-05-09 09:22:22 +0000
commit0c1a400b7e820194302934af9c01c691eeab7d56 (patch)
tree8f37ed3f5bb01af090c6ca8b662071f484cca55a
parentb3f5b30f3289604d3b34b89dd010a6617c7bd788 (diff)
AAudio: increase aaudio stream timeout from 1 to 2.2 seconds
For BLE devices, reconfiguration might take upto 2.2 seconds to complete. With a timeout of 1 second, AAudio stream was timing out if there was no writes to DSP for that time during reconfig. Increased timeout to 2.2 seconds as per the recommendation from BT team. Bug: 319416783 CRs-Fixed: 3779537 Test: Followed the steps mentioned on the bug with no AAudio stream timeout observed. Change-Id: I8af7d51d919aae6708a95262c12ebb80c6240465
-rw-r--r--media/libaaudio/src/client/AudioStreamInternal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libaaudio/src/client/AudioStreamInternal.cpp b/media/libaaudio/src/client/AudioStreamInternal.cpp
index 84c715f440..015bee9afa 100644
--- a/media/libaaudio/src/client/AudioStreamInternal.cpp
+++ b/media/libaaudio/src/client/AudioStreamInternal.cpp
@@ -56,7 +56,7 @@ using android::content::AttributionSourceState;
using namespace aaudio;
-#define MIN_TIMEOUT_NANOS (1000 * AAUDIO_NANOS_PER_MILLISECOND)
+#define MIN_TIMEOUT_NANOS (2200 * AAUDIO_NANOS_PER_MILLISECOND)
// Wait at least this many times longer than the operation should take.
#define MIN_TIMEOUT_OPERATIONS 4