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 <vathota@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

부모
f5a1eb31f5
커밋
aade87e1f2
@@ -851,7 +851,7 @@ static int afe_apr_send_pkt(void *data, wait_queue_head_t *wait)
|
|||||||
if (wait) {
|
if (wait) {
|
||||||
ret = wait_event_timeout(*wait,
|
ret = wait_event_timeout(*wait,
|
||||||
(atomic_read(&this_afe.state) == 0),
|
(atomic_read(&this_afe.state) == 0),
|
||||||
msecs_to_jiffies(TIMEOUT_MS));
|
msecs_to_jiffies(2 * TIMEOUT_MS));
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
ret = -ETIMEDOUT;
|
ret = -ETIMEDOUT;
|
||||||
} else if (atomic_read(&this_afe.status) > 0) {
|
} else if (atomic_read(&this_afe.status) > 0) {
|
||||||
|
Reference in New Issue
Block a user