Patchwork fix for stable: audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler

login
register
mail settings
Submitter Bjørn Mork
Date July 13, 2010, 10:11 a.m.
Message ID <877hkzsnc2.fsf@nemi.mork.no>
Download mbox | patch
Permalink /patch/58732/
State New
Headers show

Comments

Bjørn Mork - July 13, 2010, 10:11 a.m.
Any reason why this isn't in stable-0.12?  I got bitten by it on Debian,
using their qemu-kvm package from "squeeze".


Bjørn



commit d9812b033a17c82f9e933757c1c3ef364e3ba62d
Author: malc <av1474@comtv.ru>
Date:   Sun Feb 28 18:34:21 2010 +0300

    audio/alsa: Handle SND_PCM_STATE_SETUP in alsa_poll_handler
    
    Signed-off-by: malc <av1474@comtv.ru>

Patch

diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 6a9b87a..88344ff 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;