Modified according the power management update

This commit is contained in:
Jaroslav Kysela 2001-10-04 16:41:45 +00:00
parent bfa0a061ed
commit edf18fe4f3

View 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)