Update of /cvsroot/alsa/alsa-kernel/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15469/include
Modified Files: core.h Log Message: - added the generic PM callback registration. - rewritten ISA callbacks to use the new one. Index: core.h =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/include/core.h,v retrieving revision 1.50 retrieving revision 1.51 diff -u -r1.50 -r1.51 --- core.h 8 Apr 2004 16:34:59 -0000 1.50 +++ core.h 3 May 2004 17:36:07 -0000 1.51 @@ -205,10 +205,12 @@ int (*suspend)(snd_card_t *, unsigned int), int (*resume)(snd_card_t *, unsigned int), void *private_data); -int snd_card_set_isa_pm_callback(snd_card_t *card, +int snd_card_set_dev_pm_callback(snd_card_t *card, int type, int (*suspend)(snd_card_t *, unsigned int), int (*resume)(snd_card_t *, unsigned int), void *private_data); +#define snd_card_set_isa_pm_callback(card,suspend,resume,data) \ + snd_card_set_dev_pm_callback(card, PM_ISA_DEV, suspend, resume, data) #ifndef SND_PCI_PM_CALLBACKS int snd_card_pci_suspend(struct pci_dev *dev, u32 state); int snd_card_pci_resume(struct pci_dev *dev); @@ -222,6 +224,7 @@ #define snd_power_get_state(card) SNDRV_CTL_POWER_D0 #define snd_power_change_state(card, state) do { (void)(card); } while (0) #define snd_card_set_pm_callback(card,suspend,resume,data) -EINVAL +#define snd_card_set_dev_pm_callback(card,suspend,resume,data) -EINVAL #define snd_card_set_isa_pm_callback(card,suspend,resume,data) -EINVAL #define SND_PCI_PM_CALLBACKS #endif ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog