From: Jaroslav Kysela Date: Thu, 4 Oct 2001 16:42:19 +0000 (+0000) Subject: Modified according the latest power management update X-Git-Tag: v1.0.3~128 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1ab406b57527d239ef8f9864f8466ba98a7bc369;p=alsa-tools.git Modified according the latest power management update --- diff --git a/ac3dec/output.c b/ac3dec/output.c index 86a82b5..cfc0608 100644 --- a/ac3dec/output.c +++ b/ac3dec/output.c @@ -177,7 +177,7 @@ int output_play(sint_16* output_samples, uint_32 num_frames) if (res == -EPIPE) /* underrun */ res = snd_pcm_prepare(pcm); else if (res == -ESTRPIPE) { /* suspend */ - while ((res = snd_pcm_resume(pcm)) == -EBUSY) + while ((res = snd_pcm_resume(pcm)) == -EAGAIN) sleep(1); if (res < 0) res = snd_pcm_prepare(pcm);