From 52a45b8984f6a385c044ef0dc2c25496c65015b2 Mon Sep 17 00:00:00 2001 From: "hayoung78.joo" Date: Thu, 21 Mar 2019 14:17:42 +0900 Subject: [PATCH] [RAMEN9610-13624] sound: core: decrease read/write timeout to 1 second Read/Write timeout was 10 seconds. But default timeout value of android audio server is 5 second. If read/write is blocked for 10 seconds in read/write ioctl, it exceeds the timeout of audio server. Change-Id: Ia823419594f4a3e35ab38bc2d3103acaf99545be Signed-off-by: hayoung78.joo --- sound/core/pcm_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 82d4b72dcb64..716f86fcf4bc 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -1850,7 +1850,7 @@ static int wait_for_avail(struct snd_pcm_substream *substream, if (runtime->no_period_wakeup) wait_time = MAX_SCHEDULE_TIMEOUT; else { - wait_time = 10; + wait_time = 1; if (runtime->rate) { long t = runtime->period_size * 2 / runtime->rate; wait_time = max(t, wait_time); -- 2.20.1