Update of /cvsroot/alsa/alsa-kernel/pci/ac97 In directory sc8-pr-cvs1:/tmp/cvs-serv19422/pci/ac97
Modified Files: ac97_codec.c ac97_patch.c ac97_patch.h Log Message: Sasha Khapyorsky <[EMAIL PROTECTED]>: - added a patch for sis 3036/8 modem codec. Index: ac97_codec.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.117 retrieving revision 1.118 diff -u -r1.117 -r1.118 --- ac97_codec.c 3 Dec 2003 18:44:32 -0000 1.117 +++ ac97_codec.c 12 Jan 2004 14:38:06 -0000 1.118 @@ -146,7 +146,7 @@ { 0x4e534331, 0xffffffff, "LM4549", NULL, NULL }, { 0x4e534350, 0xffffffff, "LM4550", NULL, NULL }, { 0x50534304, 0xffffffff, "UCB1400", NULL, NULL }, -{ 0x53494c20, 0xffffffe0, "Si3036/8", NULL, NULL }, +{ 0x53494c20, 0xffffffe0, "Si3036/8", NULL, mpatch_si3036 }, { 0x54524102, 0xffffffff, "TR28022", NULL, NULL }, { 0x54524106, 0xffffffff, "TR28026", NULL, NULL }, { 0x54524108, 0xffffffff, "TR28028", patch_tritech_tr28028, NULL }, // added by xin jin [07/09/99] @@ -1517,6 +1517,12 @@ static int snd_ac97_modem_build(snd_card_t * card, ac97_t * ac97) { /* TODO */ + //printk("AC97_GPIO_CFG = %x\n",snd_ac97_read(ac97,AC97_GPIO_CFG)); + snd_ac97_write(ac97, AC97_GPIO_CFG, 0xffff & ~(AC97_GPIO_LINE1_OH)); + snd_ac97_write(ac97, AC97_GPIO_POLARITY, 0xffff & ~(AC97_GPIO_LINE1_OH)); + snd_ac97_write(ac97, AC97_GPIO_STICKY, 0xffff); + snd_ac97_write(ac97, AC97_GPIO_WAKEUP, 0x0); + snd_ac97_write(ac97, AC97_MISC_AFE, 0x0); return 0; } Index: ac97_patch.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- ac97_patch.c 20 Nov 2003 16:00:02 -0000 1.31 +++ ac97_patch.c 12 Jan 2004 14:38:06 -0000 1.32 @@ -1383,3 +1383,14 @@ snd_ac97_write_cache(ac97, 0x7A, 0x0808); return 0; } + +/* Si3036/8 specific registers */ +#define AC97_SI3036_CHIP_ID 0x5a + +int mpatch_si3036(ac97_t * ac97) +{ + //printk("mpatch_si3036: chip id = %x\n", snd_ac97_read(ac97, 0x5a)); + snd_ac97_write_cache(ac97, 0x5c, 0xf210 ); + snd_ac97_write_cache(ac97, 0x68, 0); + return 0; +} Index: ac97_patch.h =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- ac97_patch.h 20 Nov 2003 16:00:02 -0000 1.12 +++ ac97_patch.h 12 Jan 2004 14:38:06 -0000 1.13 @@ -51,3 +51,4 @@ int patch_cm9739(ac97_t * ac97); int patch_vt1616(ac97_t * ac97); int patch_it2646(ac97_t * ac97); +int mpatch_si3036(ac97_t * ac97); ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog