projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f093feb
)
audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler
author
malc
<av1474@comtv.ru>
Sun, 28 Feb 2010 15:34:21 +0000
(18:34 +0300)
committer
malc
<av1474@comtv.ru>
Sun, 28 Feb 2010 15:34:21 +0000
(18:34 +0300)
Signed-off-by: malc <av1474@comtv.ru>
audio/alsaaudio.c
patch
|
blob
|
history
diff --git
a/audio/alsaaudio.c
b/audio/alsaaudio.c
index 6a9b87aa7b0de5976569f36d6ca5c86b09e86085..88344ff03b903776d6855a4c509fe834b7716539 100644
(file)
--- 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;