From d9812b033a17c82f9e933757c1c3ef364e3ba62d Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 28 Feb 2010 18:34:21 +0300 Subject: [PATCH] audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler Signed-off-by: malc --- audio/alsaaudio.c | 4 ++++ 1 file changed, 4 insertions(+) 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;