소스 검색

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 <[email protected]>
Vidyakumar Athota 6 년 전
부모
커밋
aade87e1f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dsp/q6afe.c

+ 1 - 1
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) {