Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1:/tmp/cvs-serv20551

Modified Files:
        ac97_patch.c 
Log Message:
fixed the detection of spdif on ALC650.



Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ac97_patch.c        21 May 2003 10:50:47 -0000      1.14
+++ ac97_patch.c        6 Jun 2003 09:29:17 -0000       1.15
@@ -370,18 +370,17 @@
        unsigned short val;
        int spdif = 0;
 
-       /* FIXME: set the above 1 if we can detect the chip rev.E correctly.
+       /* FIXME: set the below 1 if we can detect the chip rev.E correctly.
         *        this is used for switching mic and center/lfe, which needs
         *        resetting GPIO0 level on the older revision.
         */
        ac97->spec.dev_flags = 0;
 
-       /* check spdif */
-       if (ac97->spec.dev_flags) {
-               val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
-               if (val & AC97_EA_SPCV)
-                       spdif = 1;
-       }
+       /* check spdif (should be only on rev.E) */
+       val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
+       if (val & AC97_EA_SPCV)
+               spdif = 1;
+
        if (spdif) {
                /* enable spdif in */
                snd_ac97_write_cache(ac97, AC97_ALC650_CLOCK,



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to