Update of /cvsroot/alsa/alsa-kernel/pci/ali5451
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19778/ali5451
Modified Files:
ali5451.c
Log Message:
- call snd_ac97_suspend() in the suspend callback.
- suspend/resume secondary codecs, too.
Index: ali5451.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ali5451/ali5451.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- ali5451.c 13 Apr 2004 14:59:00 -0000 1.47
+++ ali5451.c 14 Apr 2004 17:27:05 -0000 1.48
@@ -1915,6 +1915,9 @@
if (! im)
return 0;
+ snd_pcm_suspend_all(chip->pcm);
+ snd_ac97_suspend(chip->ac97);
+
spin_lock_irq(&chip->reg_lock);
im->regs[ALI_MISCINT >> 2] = inl(ALI_REG(chip, ALI_MISCINT));
@@ -1969,14 +1972,15 @@
outl(im->regs[i], ALI_REG(chip, i*4));
}
- snd_ac97_resume(chip->ac97);
-
// start HW channel
outl(im->regs[ALI_START >> 2], ALI_REG(chip, ALI_START));
// restore IRQ enable bits
outl(im->regs[ALI_MISCINT >> 2], ALI_REG(chip, ALI_MISCINT));
spin_unlock_irq(&chip->reg_lock);
+
+ snd_ac97_resume(chip->ac97);
+
return 0;
}
#endif /* CONFIG_PM */
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog