Hi,

Here is a patch to enable SPDIF out on ALC650 rev D. codecs.

Cheers
James

--- ac97_patch.c.org    2003-10-03 15:16:06.099127808 +0100
+++ ac97_patch.c        2003-10-03 15:21:50.975698600 +0100
@@ -898,7 +898,6 @@
 int patch_alc650(ac97_t * ac97)
 {
        unsigned short val;
-       int spdif = 0;
 
        ac97->build_ops = &patch_alc650_ops;
 
@@ -907,22 +906,16 @@
        ac97->spec.dev_flags = (ac97->id == 0x414c4722 ||
                                ac97->id == 0x414c4723);
 
-       /* check spdif (should be only on rev.E) */
-       if (ac97->spec.dev_flags) {
-               val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
-               if (val & AC97_EA_SPCV)
-                       spdif = 1;
-       }
+       /* enable AC97_ALC650_GPIO_SETUP, AC97_ALC650_CLOCK for R/W */
+       snd_ac97_write_cache(ac97, AC97_ALC650_GPIO_STATUS, 
+               snd_ac97_read(ac97, AC97_ALC650_GPIO_STATUS) | 0x8000);
 
-       if (spdif) {
-               /* enable AC97_ALC650_GPIO_SETUP, AC97_ALC650_CLOCK for R/W */
-               snd_ac97_write_cache(ac97, AC97_ALC650_GPIO_STATUS, 
-                       snd_ac97_read(ac97, AC97_ALC650_GPIO_STATUS) | 0x8000);
+       /* Enable SPDIF-IN only on Rev.E and above */
+       if (ac97->spec.dev_flags) {
                /* enable spdif in */
                snd_ac97_write_cache(ac97, AC97_ALC650_CLOCK,
                                     snd_ac97_read(ac97, AC97_ALC650_CLOCK) | 0x03);
-       } else
-               ac97->ext_id &= ~AC97_EI_SPDIF; /* disable extended-id */
+       } 
 
        val = snd_ac97_read(ac97, AC97_ALC650_MULTICH);
        val &= ~0xc000; /* slot: 3,4,7,8,6,9 */

Reply via email to