Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 813642a0 authored by Vidyakumar Athota's avatar Vidyakumar Athota Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent df2754cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {