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

Modified Files:
        ac97_codec.c ac97_patch.c ac97_patch.h 
Log Message:
Added AD1980 codec ID with patch

Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- ac97_codec.c        11 Sep 2002 07:40:15 -0000      1.41
+++ ac97_codec.c        11 Sep 2002 08:22:47 -0000      1.42
@@ -99,6 +99,7 @@
 { 0x41445361, 0xffffffff, "AD1886",            patch_ad1886 },
 { 0x41445362, 0xffffffff, "AD1887",            patch_ad1881 },
 { 0x41445363, 0xffffffff, "AD1886A",           patch_ad1881 },
+{ 0x41445370, 0xffffffff, "AD1980",            patch_ad1980 },
 { 0x41445372, 0xffffffff, "AD1981A",           patch_ad1881 },
 { 0x414c4300, 0xfffffff0, "RL5306",            NULL },
 { 0x414c4310, 0xfffffff0, "RL5382",            NULL },

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ac97_patch.c        23 Aug 2002 09:00:26 -0000      1.3
+++ ac97_patch.c        11 Sep 2002 08:22:47 -0000      1.4
@@ -31,6 +31,7 @@
 #include <sound/ac97_codec.h>
 #include <sound/asoundef.h>
 #include <sound/initval.h>
+#include "ac97_patch.h"
 
 /*
  *  Chip specific initialization
@@ -321,5 +322,17 @@
        /* Presario700 workaround */
        /* for Jack Sense/SPDIF Register misetting causing */
        snd_ac97_write_cache(ac97, AC97_AD_JACK_SPDIF, 0x0010);
+       return 0;
+}
+
+int patch_ad1980(ac97_t * ac97)
+{
+       unsigned short misc;
+       
+       patch_ad1881(ac97);
+       /* Switch FRONT/SURROUND LINE-OUT/HP-OUT default connection */
+       /* it seems that most vendors connect line-out connector to headphone out of 
+AC'97 */
+       misc = snd_ac97_read(ac97, AC97_AD_MISC);
+       snd_ac97_write_cache(ac97, AC97_AD_MISC, misc | 0x0420);
        return 0;
 }

Index: ac97_patch.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ac97_patch.h        28 Jul 2002 06:56:57 -0000      1.2
+++ ac97_patch.h        11 Sep 2002 08:22:47 -0000      1.3
@@ -37,3 +37,4 @@
 int patch_ad1881(ac97_t * ac97);
 int patch_ad1885(ac97_t * ac97);
 int patch_ad1886(ac97_t * ac97);
+int patch_ad1980(ac97_t * ac97);



-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to