Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11088/pci/ac97
Modified Files:
ac97_codec.c ac97_patch.c ac97_patch.h
Log Message:
Kevin Mack <[EMAIL PROTECTED]>
Here's a quick and dirty patch that's given me basic sound from
my Gateway M675 notebook (Sigmatel 9758 AC97 codec).
Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- ac97_codec.c 5 Mar 2004 12:04:43 -0000 1.123
+++ ac97_codec.c 14 Mar 2004 08:46:38 -0000 1.124
@@ -171,6 +171,7 @@
{ 0x83847650, 0xffffffff, "STAC9750/51", NULL, NULL }, // patch?
{ 0x83847652, 0xffffffff, "STAC9752/53", NULL, NULL }, // patch?
{ 0x83847656, 0xffffffff, "STAC9756/57", patch_sigmatel_stac9756, NULL },
+{ 0x83847658, 0xffffffff, "STAC9758/59", patch_sigmatel_stac9758, NULL },
{ 0x83847666, 0xffffffff, "STAC9766/67", NULL, NULL }, // patch?
{ 0, 0, NULL, NULL, NULL }
};
Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- ac97_patch.c 5 Mar 2004 12:04:44 -0000 1.38
+++ ac97_patch.c 14 Mar 2004 08:46:39 -0000 1.39
@@ -447,6 +447,21 @@
return 0;
}
+int patch_sigmatel_stac9758(ac97_t * ac97)
+{
+ // patch for SigmaTel
+ ac97->build_ops = &patch_sigmatel_stac9700_ops;
+ // turn on stereo speaker, headphone and line-out
+ snd_ac97_write_cache(ac97, AC97_SIGMATEL_OUTSEL, 0x9040);
+ // headphone select and boost
+ snd_ac97_write_cache(ac97, AC97_SIGMATEL_IOMISC, 0x2102);
+ // enable mic
+ snd_ac97_write_cache(ac97, AC97_SIGMATEL_INSEL, 0x0203);
+ // enable stereo mic
+ snd_ac97_write_cache(ac97, AC97_SIGMATEL_VARIOUS, 0x0001);
+ return 0;
+}
+
/*
* Cirrus Logic CS42xx codecs
*/
Index: ac97_patch.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ac97_patch.h 11 Feb 2004 12:14:40 -0000 1.14
+++ ac97_patch.h 14 Mar 2004 08:46:39 -0000 1.15
@@ -34,6 +34,7 @@
int patch_sigmatel_stac9721(ac97_t * ac97);
int patch_sigmatel_stac9744(ac97_t * ac97);
int patch_sigmatel_stac9756(ac97_t * ac97);
+int patch_sigmatel_stac9758(ac97_t * ac97);
int patch_cirrus_cs4299(ac97_t * ac97);
int patch_cirrus_spdif(ac97_t * ac97);
int patch_conexant(ac97_t * ac97);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog