aboutsummaryrefslogtreecommitdiff
path: root/audio/alsaaudio.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2010-02-28 18:34:21 +0300
committermalc <av1474@comtv.ru>2010-02-28 18:34:21 +0300
commitd9812b033a17c82f9e933757c1c3ef364e3ba62d (patch)
treef486e90f6dc7aadf0d46f358de135e176e88df15 /audio/alsaaudio.c
parentf093feb735ab57171b6fe16f54b7d3b989907d98 (diff)
audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/alsaaudio.c')
-rw-r--r--audio/alsaaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 6a9b87aa7b..88344ff03b 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -213,6 +213,10 @@ static void alsa_poll_handler (void *opaque)
state = snd_pcm_state (hlp->handle);
switch (state) {
+ case SND_PCM_STATE_SETUP:
+ alsa_recover (hlp->handle);
+ break;
+
case SND_PCM_STATE_XRUN:
alsa_recover (hlp->handle);
break;