Update of /cvsroot/alsa/alsa-driver/pci/nm256
In directory sc8-pr-cvs1:/tmp/cvs-serv4448/nm256

Modified Files:
        .cvsignore 
Added Files:
        nm256.patch 
Removed Files:
        nm256.c 
Log Message:
clean up PM codes; moved the old part to patch

--- NEW FILE: nm256.patch ---
--- nm256.c     2003-06-10 15:13:55.000000000 +0200
+++ nm256.c.old 2003-06-10 15:14:45.000000000 +0200
@@ -1307,6 +1307,7 @@
        snd_power_change_state(card, SNDRV_CTL_POWER_D0);
 }
 
+#ifndef PCI_OLD_SUSPEND
 static int snd_nm256_suspend(struct pci_dev *dev, u32 state)
 {
        nm256_t *chip = snd_magic_cast(nm256_t, pci_get_drvdata(dev), return -ENXIO);
@@ -1319,6 +1320,18 @@
        nm256_resume(chip);
        return 0;
 }
+#else
+static void snd_nm256_suspend(struct pci_dev *dev)
+{
+       nm256_t *chip = snd_magic_cast(nm256_t, pci_get_drvdata(dev), return);
+       nm256_suspend(chip);
+}
+static void snd_nm256_resume(struct pci_dev *dev)
+{
+       nm256_t *chip = snd_magic_cast(nm256_t, pci_get_drvdata(dev), return);
+       nm256_resume(chip);
+}
+#endif
 
 /* callback */
 static int snd_nm256_set_power_state(snd_card_t *card, unsigned int power_state)
@@ -1707,3 +1720,4 @@
 __setup("snd-nm256=", alsa_card_nm256_setup);
 
 #endif /* ifndef MODULE */
+EXPORT_NO_SYMBOLS;

Index: .cvsignore
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/nm256/.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
+nm256.c

--- nm256.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

Reply via email to