From aade87e1f2400f0159d6b1706864e0c785522606 Mon Sep 17 00:00:00 2001 From: Vidyakumar Athota Date: Fri, 26 Oct 2018 17:28:46 -0700 Subject: [PATCH] dsp: increase afe apr_send_pkt timeout to 2 seconds Some USB headsets take more than 1 second to respond for afe port start command so increase the timeout value to support playback on slow responsive USB headsets. Change-Id: I76c43bafe3c9e1e2d8a4a23059053db6bfc0188b Signed-off-by: Vidyakumar Athota --- dsp/q6afe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/q6afe.c b/dsp/q6afe.c index da8dc5a803..49c7b026eb 100644 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -851,7 +851,7 @@ static int afe_apr_send_pkt(void *data, wait_queue_head_t *wait) if (wait) { ret = wait_event_timeout(*wait, (atomic_read(&this_afe.state) == 0), - msecs_to_jiffies(TIMEOUT_MS)); + msecs_to_jiffies(2 * TIMEOUT_MS)); if (!ret) { ret = -ETIMEDOUT; } else if (atomic_read(&this_afe.status) > 0) {