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:00:49 +0200 |
commit | e02a90db751423453b45a5b06cf1e66d7a9c6708 (patch) | |
tree | c3c639916d4ce84671faf966d7c91c3255d2cdab /palsa.c | |
parent | 9916dec0d40c76452a21b44ea933b3dbf3ef966d (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; |