Update of /cvsroot/alsa/alsa-driver/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19788/include
Modified Files:
adriver.h
Log Message:
Clean up of power-management codes.
- moved commonly used codes to the core layer.
- using the unified suspend/resume callbacks for PCI and ISA
- added snd_card_set_pm_callbacks() and snd_card_set_isa_pm_callbacks()
as the registration functions.
Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- adriver.h 8 Apr 2004 12:53:16 -0000 1.81
+++ adriver.h 8 Apr 2004 16:38:15 -0000 1.82
@@ -492,4 +492,15 @@
MODULE_PARM(name, SNDRV_MODULE_TYPE_##type)
#endif
+/* power management compatibility layer */
+#ifdef CONFIG_PM
+#ifdef PCI_OLD_SUSPEND
+void snd_card_pci_suspend(struct pci_dev *dev);
+void snd_card_pci_resume(struct pci_dev *dev);
+#define SND_PCI_PM_CALLBACKS \
+ .suspend = snd_card_pci_suspend, .resume = snd_card_pci_resume
+#endif
+#endif
+
+
#endif /* __SOUND_LOCAL_DRIVER_H */
-------------------------------------------------------
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