From edf18fe4f3f246b021f8d4122bcf7f9f158f5a23 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 4 Oct 2001 16:41:45 +0000 Subject: [PATCH] Modified according the power management update --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.1