Update of /cvsroot/alsa/alsa-driver/pci/ali5451 In directory sc8-pr-cvs1:/tmp/cvs-serv4448/ali5451
Modified Files: .cvsignore Makefile Added Files: ali5451.patch Removed Files: ali5451.c Log Message: clean up PM codes; moved the old part to patch --- NEW FILE: ali5451.patch --- --- ali5451.c 2003-06-10 15:18:52.000000000 +0200 +++ ali5451.c.old 2003-06-10 15:18:39.000000000 +0200 @@ -1963,6 +1963,7 @@ return; } +#ifndef PCI_OLD_SUSPEND static int snd_ali_suspend(struct pci_dev *dev, u32 state) { ali_t *chip = snd_magic_cast(ali_t, pci_get_drvdata(dev), return -ENXIO); @@ -1975,6 +1976,18 @@ ali_resume(chip); return 0; } +#else +static void snd_ali_suspend(struct pci_dev *dev) +{ + ali_t *chip = snd_magic_cast(ali_t, pci_get_drvdata(dev), return); + ali_suspend(chip); +} +static void snd_ali_resume(struct pci_dev *dev) +{ + ali_t *chip = snd_magic_cast(ali_t, pci_get_drvdata(dev), return); + ali_resume(chip); +} +#endif #endif /* CONFIG_PM */ static int snd_ali_free(ali_t * codec) @@ -2314,3 +2327,4 @@ __setup("snd-ali5451=", alsa_card_ali_setup); #endif /* ifndef */ +EXPORT_NO_SYMBOLS; Index: .cvsignore =================================================================== RCS file: /cvsroot/alsa/alsa-driver/pci/ali5451/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- .cvsignore 22 Dec 2001 20:46:15 -0000 1.1 +++ .cvsignore 18 Jun 2003 11:12:52 -0000 1.2 @@ -1 +1,2 @@ .depend +ali5451.c Index: Makefile =================================================================== RCS file: /cvsroot/alsa/alsa-driver/pci/ali5451/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Makefile 17 Dec 2002 19:59:00 -0000 1.2 +++ Makefile 18 Jun 2003 11:12:52 -0000 1.3 @@ -3,7 +3,12 @@ include $(TOPDIR)/toplevel.config include $(TOPDIR)/Makefile.conf +EXTRA_CLEAN = ali5451.c + TOPDIR = $(MAINSRCDIR) include $(TOPDIR)/alsa-kernel/pci/ali5451/Makefile include $(TOPDIR)/Rules.make + +ali5451.c: ali5451.patch $(TOPDIR)/alsa-kernel/pci/ali5451/ali5451.c + --- ali5451.c DELETED --- ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog