diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-20 11:00:49 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-20 11:01:53 +0200 |
commit | 2099d6ebba95dd0b0cb8f40064858044443f8c55 (patch) | |
tree | 19e0b5665e1f8c8cb569a000b307095aa756539b /palsa.c | |
parent | 7776caa805e78d78b6928fd06af6798de9ab840e (diff) |
suspend-to-ram check now handles paused state correctly
Diffstat (limited to 'palsa.c')
-rw-r--r-- | palsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -308,7 +308,7 @@ palsa_thread (uintptr_t context) { /* wait till the interface is ready for data, or 1 second has elapsed. */ - if ((err = snd_pcm_wait (audio, 1000)) < 0) { + if ((err = snd_pcm_wait (audio, 1000)) < 0 && state == 1) { messagepump_push (M_REINIT_SOUND, 0, 0, 0); mutex_unlock (mutex); break; |