]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Modified according the power management update
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 16:41:45 +0000 (16:41 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Oct 2001 16:41:45 +0000 (16:41 +0000)
aplay/aplay.c

index d979796b2c448a29f9d0ce3d07f64d0b56ede3a5..1898f2a927462fb4cef7bc2dd98e9d1a00a9e1a6 100644 (file)
@@ -875,7 +875,7 @@ static void suspend(void)
 
        if (!quiet_mode)
                fprintf(stderr, "Suspended... Trying resume..."); fflush(stderr);
-       while ((res = snd_pcm_resume(handle)) == -EBUSY)
+       while ((res = snd_pcm_resume(handle)) == -EAGAIN)
                sleep(1);       /* wait until suspend flag is not released */
        if (res < 0) {
                if (!quiet_mode)