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:00:49 +0200
commite02a90db751423453b45a5b06cf1e66d7a9c6708 (patch)
treec3c639916d4ce84671faf966d7c91c3255d2cdab /palsa.c
parent9916dec0d40c76452a21b44ea933b3dbf3ef966d (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;