Update of /cvsroot/alsa/alsa-kernel/pci/ymfpci
In directory sc8-pr-cvs1:/tmp/cvs-serv13976

Modified Files:
        ymfpci_main.c 
Log Message:
- fixed possible (but rare) deadlock.


Index: ymfpci_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci_main.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- ymfpci_main.c       23 Oct 2003 14:34:53 -0000      1.45
+++ ymfpci_main.c       19 Nov 2003 15:07:29 -0000      1.46
@@ -2200,10 +2200,11 @@
 
        /* start hw again */
        if (chip->start_count > 0) {
-               spin_lock(&chip->reg_lock);
+               unsigned long flags;
+               spin_lock_irqsave(&chip->reg_lock, flags);
                snd_ymfpci_writel(chip, YDSXGR_MODE, chip->saved_ydsxgr_mode);
                chip->active_bank = snd_ymfpci_readl(chip, YDSXGR_CTRLSELECT);
-               spin_unlock(&chip->reg_lock);
+               spin_unlock_irqrestore(&chip->reg_lock, flags);
        }
        snd_power_change_state(card, SNDRV_CTL_POWER_D0);
 }



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to