From 521b4c6c61dcea82dd749de8728d702008e0dea3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 13 Jan 2010 04:58:19 +0100 Subject: [PATCH] alsa: Increase timeout on eof to 20ms. --- alsa_write.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/alsa_write.c b/alsa_write.c index 8e3688fa..27a8db3d 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -177,8 +177,8 @@ static int alsa_write_pre_select(struct sched *s, struct writer_node *wn) if (ret == 0) return 1; if (ret < 0) { - underrun = 10; - goto timeout; + sched_request_timeout_ms(20, s); + return 42; } } else { if (*wng->loaded - wn->written < pad->bytes_per_frame) @@ -202,7 +202,6 @@ static int alsa_write_pre_select(struct sched *s, struct writer_node *wn) if (underrun < 50) underrun = 50; underrun -= 50; -timeout: ms2tv(underrun, &tv); if (tv_diff(&s->timeout, &tv, NULL) > 0) s->timeout = tv; -- 2.39.5