summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2010-02-28 18:34:21 +0300
committerAurelien Jarno <aurelien@aurel32.net>2010-07-22 14:37:23 +0200
commite91644894048ff6640a8e462da936e7ff0e28d38 (patch)
tree0580242cf0cda7b17fdebcdac98c5c55b4e590a5
parentblock: Handle multiwrite errors only when all requests have completed (diff)
downloadqemu-kvm-e91644894048ff6640a8e462da936e7ff0e28d38.tar.gz
qemu-kvm-e91644894048ff6640a8e462da936e7ff0e28d38.tar.bz2
qemu-kvm-e91644894048ff6640a8e462da936e7ff0e28d38.zip
audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler
Signed-off-by: malc <av1474@comtv.ru> (cherry picked from commit d9812b033a17c82f9e933757c1c3ef364e3ba62d)
-rw-r--r--audio/alsaaudio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 6a9b87aa7..88344ff03 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;