Update of /cvsroot/alsa/alsa-driver/isa/opti9xx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24479/isa/opti9xx

Modified Files:
        opti92x-ad1848.c 
Log Message:
- fixed for 2.6 kernel build.





Index: opti92x-ad1848.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/isa/opti9xx/opti92x-ad1848.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- opti92x-ad1848.c    13 Nov 2003 17:08:06 -0000      1.7
+++ opti92x-ad1848.c    26 Jan 2004 11:07:58 -0000      1.8
@@ -1,13 +1,12 @@
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 2, 0)
+#define isapnp_dev pci_dev
+#endif
 #define snd_opti9xx_fixup_dma2(pdev) \
        {struct isapnp_dev *b = (struct isapnp_dev *)pdev;\
                memset(&b->dma_resource[1].flags, 0, 
sizeof(b->dma_resource[1].flags));}
-#else
-#define snd_opti9xx_fixup_dma2(pdev) \
-       {struct pci_dev *b = (struct pci_dev *)pdev;\
-               memset(&b->dma_resource[1].flags, 0, 
sizeof(b->dma_resource[1].flags));}
 #endif
 
 #include "../../alsa-kernel/isa/opti9xx/opti92x-ad1848.c"



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to