* [PATCH] IT2646 AC97 codec
@ 2003-10-24 6:31 Ted.Wen
2003-10-27 10:49 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Ted.Wen @ 2003-10-24 6:31 UTC (permalink / raw)
To: alsa-devel
diff -ur alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_codec.c /alsa/patch/0.9.7/ac97_codec.c
--- alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_codec.c 2003-08-28 23:36:44.000000000 +0800
+++ /alsa/patch/0.9.7/ac97_codec.c 2003-10-13 19:45:39.000000000 +0800
@@ -139,6 +139,7 @@
{ 0x49434551, 0xffffffff, "VT1616", patch_vt1616, NULL },
{ 0x49434552, 0xffffffff, "VT1616i", patch_vt1616, NULL }, // VT1616 compatible (chipset integrated)
{ 0x49544520, 0xffffffff, "IT2226E", NULL, NULL },
+{ 0x49544561, 0xffffffff, "IT2646E", patch_it2646, NULL },
{ 0x4e534300, 0xffffffff, "LM4540/43/45/46/48", NULL, NULL }, // only guess --jk
{ 0x4e534331, 0xffffffff, "LM4549", NULL, NULL },
{ 0x4e534350, 0xffffffff, "LM4550", NULL, NULL },
Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_id.h
Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_local.h
diff -ur alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_patch.c /alsa/patch/0.9.7/ac97_patch.c
--- alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_patch.c 2003-09-23 22:31:44.000000000 +0800
+++ /alsa/patch/0.9.7/ac97_patch.c 2003-10-13 19:45:39.000000000 +0800
@@ -1099,3 +1099,37 @@
ac97->build_ops = &patch_vt1616_ops;
return 0;
}
+
+static const snd_kcontrol_new_t snd_ac97_controls_it2646[] = {
+ AC97_SINGLE("Line-In As Surround", 0x76, 9, 1, 0),
+ AC97_SINGLE("Mic As Center/LFE", 0x76, 10, 1, 0),
+};
+
+static const snd_kcontrol_new_t snd_ac97_spdif_controls_it2646[] = {
+ AC97_SINGLE("IEC958 Capture Switch", 0x76, 11, 1, 0),
+ AC97_SINGLE("Analog to IEC958 Output", 0x76, 12, 1, 0),
+ AC97_SINGLE("IEC958 Input Monitor", 0x76, 13, 1, 0),
+};
+
+static int patch_it2646_specific(ac97_t * ac97)
+{
+ int err;
+ if ((err = patch_build_controls(ac97, snd_ac97_controls_it2646, ARRAY_SIZE(snd_ac97_controls_it2646))) < 0)
+ return err;
+ if ((err = patch_build_controls(ac97, snd_ac97_spdif_controls_it2646, ARRAY_SIZE(snd_ac97_spdif_controls_it2646))) < 0)
+ return err;
+ return 0;
+}
+
+static struct snd_ac97_build_ops patch_it2646_ops = {
+ .build_specific = patch_it2646_specific
+};
+
+int patch_it2646(ac97_t * ac97)
+{
+ ac97->build_ops = &patch_it2646_ops;
+ /* full DAC volume */
+ snd_ac97_write_cache(ac97, 0x5E, 0x0808);
+ snd_ac97_write_cache(ac97, 0x7A, 0x0808);
+ return 0;
+}
Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_proc.c
Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ak4531_codec.c
Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: Makefile
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IT2646 AC97 codec
2003-10-24 6:31 [PATCH] IT2646 AC97 codec Ted.Wen
@ 2003-10-27 10:49 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-10-27 10:49 UTC (permalink / raw)
To: Ted.Wen; +Cc: alsa-devel
Hi,
thanks, committed to cvs now.
Takashi
At Fri, 24 Oct 2003 14:31:15 +0800,
Ted.Wen@ite.com.tw wrote:
>
> diff -ur alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_codec.c /alsa/patch/0.9.7/ac97_codec.c
> --- alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_codec.c 2003-08-28 23:36:44.000000000 +0800
> +++ /alsa/patch/0.9.7/ac97_codec.c 2003-10-13 19:45:39.000000000 +0800
> @@ -139,6 +139,7 @@
> { 0x49434551, 0xffffffff, "VT1616", patch_vt1616, NULL },
> { 0x49434552, 0xffffffff, "VT1616i", patch_vt1616, NULL }, // VT1616 compatible (chipset integrated)
> { 0x49544520, 0xffffffff, "IT2226E", NULL, NULL },
> +{ 0x49544561, 0xffffffff, "IT2646E", patch_it2646, NULL },
> { 0x4e534300, 0xffffffff, "LM4540/43/45/46/48", NULL, NULL }, // only guess --jk
> { 0x4e534331, 0xffffffff, "LM4549", NULL, NULL },
> { 0x4e534350, 0xffffffff, "LM4550", NULL, NULL },
> Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_id.h
> Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_local.h
> diff -ur alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_patch.c /alsa/patch/0.9.7/ac97_patch.c
> --- alsa-driver-0.9.7/alsa-kernel/pci/ac97/ac97_patch.c 2003-09-23 22:31:44.000000000 +0800
> +++ /alsa/patch/0.9.7/ac97_patch.c 2003-10-13 19:45:39.000000000 +0800
> @@ -1099,3 +1099,37 @@
> ac97->build_ops = &patch_vt1616_ops;
> return 0;
> }
> +
>
>
> +static const snd_kcontrol_new_t snd_ac97_controls_it2646[] = {
> + AC97_SINGLE("Line-In As Surround", 0x76, 9, 1, 0),
> + AC97_SINGLE("Mic As Center/LFE", 0x76, 10, 1, 0),
> +};
> +
> +static const snd_kcontrol_new_t snd_ac97_spdif_controls_it2646[] = {
> + AC97_SINGLE("IEC958 Capture Switch", 0x76, 11, 1, 0),
> + AC97_SINGLE("Analog to IEC958 Output", 0x76, 12, 1, 0),
> + AC97_SINGLE("IEC958 Input Monitor", 0x76, 13, 1, 0),
> +};
> +
> +static int patch_it2646_specific(ac97_t * ac97)
> +{
> + int err;
> + if ((err = patch_build_controls(ac97, snd_ac97_controls_it2646, ARRAY_SIZE(snd_ac97_controls_it2646))) < 0)
> + return err;
> + if ((err = patch_build_controls(ac97, snd_ac97_spdif_controls_it2646, ARRAY_SIZE(snd_ac97_spdif_controls_it2646))) < 0)
> + return err;
> + return 0;
> +}
> +
> +static struct snd_ac97_build_ops patch_it2646_ops = {
> + .build_specific = patch_it2646_specific
> +};
> +
> +int patch_it2646(ac97_t * ac97)
> +{
> + ac97->build_ops = &patch_it2646_ops;
> + /* full DAC volume */
> + snd_ac97_write_cache(ac97, 0x5E, 0x0808);
> + snd_ac97_write_cache(ac97, 0x7A, 0x0808);
> + return 0;
> +}
> Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ac97_proc.c
> Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: ak4531_codec.c
> Only in alsa-driver-0.9.7/alsa-kernel/pci/ac97: Makefile
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community? Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-27 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24 6:31 [PATCH] IT2646 AC97 codec Ted.Wen
2003-10-27 10:49 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.