summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee Su Chang <w20740@motorola.com>2014-06-23 14:34:28 -0500
committerJee Su Chang <w20740@motorola.com>2014-06-25 20:16:09 +0000
commit48e5eaabfd11ae89de648da6d07ba7edc89f24aa (patch)
tree61271ffa7eaaa7d557189a8b5b31fd4763d01644
parent714156b7861253f9ed04d7931f5f4b73332641aa (diff)
downloadolio-linux-3.10-48e5eaabfd11ae89de648da6d07ba7edc89f24aa.tar.xz
olio-linux-3.10-48e5eaabfd11ae89de648da6d07ba7edc89f24aa.zip
IKXCLOCK-2516 pcm: reduce timeout on pcm_read from 10 to 5 seconds
This helps reduce ANRs since ANR timeout is 10 seconds Change-Id: Ie255510dd749194e19143df30c2631f76b538d0c
-rw-r--r--sound/core/pcm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index 41b3dfe6869..5bed8e7aa2e 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -1885,7 +1885,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 = 5;
if (runtime->rate) {
long t = runtime->period_size * 2 / runtime->rate;
wait_time = max(t, wait_time);