summaryrefslogtreecommitdiff
path: root/palsa.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-20 11:00:49 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-20 11:01:53 +0200
commit2099d6ebba95dd0b0cb8f40064858044443f8c55 (patch)
tree19e0b5665e1f8c8cb569a000b307095aa756539b /palsa.c
parent7776caa805e78d78b6928fd06af6798de9ab840e (diff)
suspend-to-ram check now handles paused state correctly
Diffstat (limited to 'palsa.c')
-rw-r--r--palsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/palsa.c b/palsa.c
index 2fe0c374..8c68366a 100644
--- a/palsa.c
+++ b/palsa.c
@@ -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;