mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Modified according the latest power management update
This commit is contained in:
parent
ced6868184
commit
1ab406b575
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue