Update of /cvsroot/alsa/alsa-kernel/pci
In directory usw-pr-cvs1:/tmp/cvs-serv19575

Modified Files:
        ens1370.c 
Log Message:
make inclusion of *_codec.h selective for each chipset.



Index: ens1370.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ens1370.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ens1370.c   9 Sep 2002 20:11:30 -0000       1.22
+++ ens1370.c   14 Oct 2002 13:39:10 -0000      1.23
@@ -30,8 +30,11 @@
 #include <sound/control.h>
 #include <sound/pcm.h>
 #include <sound/rawmidi.h>
+#ifdef CHIP1371
 #include <sound/ac97_codec.h>
+#else
 #include <sound/ak4531_codec.h>
+#endif
 #define SNDRV_GET_ID
 #include <sound/initval.h>
 
@@ -352,13 +355,16 @@
        unsigned int rev;       /* chip revision */
 
        union {
+#ifdef CHIP1371
                struct {
                        ac97_t *ac97;
                } es1371;
+#else
                struct {
                        int pclkdiv_lock;
                        ak4531_t *ak4531;
                } es1370;
+#endif
        } u;
 
        struct pci_dev *pci;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to