From: Jaroslav Kysela Date: Thu, 4 Oct 2001 16:41:45 +0000 (+0000) Subject: Modified according the power management update X-Git-Tag: v1.0.3~183 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=edf18fe4f3f246b021f8d4122bcf7f9f158f5a23;p=alsa-utils.git Modified according the power management update --- diff --git a/aplay/aplay.c b/aplay/aplay.c index d979796..1898f2a 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -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)