]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Modified according the latest power management update
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 16:42:19 +0000 (16:42 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 16:42:19 +0000 (16:42 +0000)
ac3dec/output.c

index 86a82b529ce0b0fceea2b0ad199495c42c9ea2fc..cfc060875973afc186f1872bae17a0beed0b61c1 100644 (file)
@@ -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);