Modified according the latest power management update

This commit is contained in:
Jaroslav Kysela 2001-10-04 16:42:19 +00:00
parent ced6868184
commit 1ab406b575

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