* Re: VIA VT2021 Support
@ 2012-07-24 15:58 Paul Freeman
[not found] ` <s5hzk6pqgg6.wl%tiwai@suse.de>
0 siblings, 1 reply; 4+ messages in thread
From: Paul Freeman @ 2012-07-24 15:58 UTC (permalink / raw)
To: alsa-devel
> If you have a luck, the codec might be somehow compatible with one of
> other VIA codecs. If not, we'd need more codes.
>
> Please run alsa-info.sh (with --no-upload option) on that machine,
> and
> give the output.
seems the list's SPAM filter thought the message including full
alsa-info.sh output was to large.. so resorting so pastebin
http://pastebin.com/7iSFm3mp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VIA VT2021 Support
[not found] ` <s5hzk6pqgg6.wl%tiwai@suse.de>
@ 2012-07-25 10:57 ` Paul Freeman
2012-07-25 12:14 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Paul Freeman @ 2012-07-25 10:57 UTC (permalink / raw)
To: Takashi Iwai, Alsa Devel
>> seems the list's SPAM filter thought the message including full
>> alsa-info.sh output was to large.. so resorting so pastebin
>> http://pastebin.com/7iSFm3mp
>
> Thanks. Actually VT2021 is identical with VT2020 from the spec POV,
> so it should be fully supported.
>
> The lack of the headphone output is because of the wrong power state
> handling. The patch below should fix the issue. Give it a try.
>
> If it still doesn't and the node 0x0b shows the power state D3, it
> means that the jack detection doesn't work properly on your machine.
this patch works perfectly, great :)
> Takashi
>
> ---
> diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
> index 9064556..80d90cb 100644
> --- a/sound/pci/hda/patch_via.c
> +++ b/sound/pci/hda/patch_via.c
> @@ -3226,7 +3226,7 @@ static void
> set_widgets_power_state_vt1718S(struct hda_codec *codec)
> {
> struct via_spec *spec = codec->spec;
> int imux_is_smixer;
> - unsigned int parm;
> + unsigned int parm, parm2;
> /* MUX6 (1eh) = stereo mixer */
> imux_is_smixer =
> snd_hda_codec_read(codec, 0x1e, 0, AC_VERB_GET_CONNECT_SEL, 0x00)
> == 5;
> @@ -3249,7 +3249,7 @@ static void
> set_widgets_power_state_vt1718S(struct hda_codec *codec)
> parm = AC_PWRST_D3;
> set_pin_power_state(codec, 0x27, &parm);
> update_power_state(codec, 0x1a, parm);
> - update_power_state(codec, 0xb, parm);
> + parm2 = parm; /* for pin 0x0b */
>
> /* PW2 (26h), AOW2 (ah) */
> parm = AC_PWRST_D3;
> @@ -3264,6 +3264,9 @@ static void
> set_widgets_power_state_vt1718S(struct hda_codec *codec)
> if (!spec->hp_independent_mode) /* check for redirected HP */
> set_pin_power_state(codec, 0x28, &parm);
> update_power_state(codec, 0x8, parm);
> + if (!spec->hp_independent_mode && parm2 != AC_PWRST_D3)
> + parm = parm2;
> + update_power_state(codec, 0xb, parm);
> /* MW9 (21h), Mw2 (1ah), AOW0 (8h) */
> update_power_state(codec, 0x21, imux_is_smixer ? AC_PWRST_D0 :
> parm);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VIA VT2021 Support
2012-07-25 10:57 ` Paul Freeman
@ 2012-07-25 12:14 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2012-07-25 12:14 UTC (permalink / raw)
To: alsa-dev; +Cc: Alsa Devel
At Wed, 25 Jul 2012 11:57:12 +0100,
Paul Freeman wrote:
>
> >> seems the list's SPAM filter thought the message including full
> >> alsa-info.sh output was to large.. so resorting so pastebin
> >> http://pastebin.com/7iSFm3mp
> >
> > Thanks. Actually VT2021 is identical with VT2020 from the spec POV,
> > so it should be fully supported.
> >
> > The lack of the headphone output is because of the wrong power state
> > handling. The patch below should fix the issue. Give it a try.
> >
> > If it still doesn't and the node 0x0b shows the power state D3, it
> > means that the jack detection doesn't work properly on your machine.
>
> this patch works perfectly, great :)
Thanks for testing. The patch is queued now.
Takashi
>
> > Takashi
> >
> > ---
> > diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
> > index 9064556..80d90cb 100644
> > --- a/sound/pci/hda/patch_via.c
> > +++ b/sound/pci/hda/patch_via.c
> > @@ -3226,7 +3226,7 @@ static void
> > set_widgets_power_state_vt1718S(struct hda_codec *codec)
> > {
> > struct via_spec *spec = codec->spec;
> > int imux_is_smixer;
> > - unsigned int parm;
> > + unsigned int parm, parm2;
> > /* MUX6 (1eh) = stereo mixer */
> > imux_is_smixer =
> > snd_hda_codec_read(codec, 0x1e, 0, AC_VERB_GET_CONNECT_SEL, 0x00)
> > == 5;
> > @@ -3249,7 +3249,7 @@ static void
> > set_widgets_power_state_vt1718S(struct hda_codec *codec)
> > parm = AC_PWRST_D3;
> > set_pin_power_state(codec, 0x27, &parm);
> > update_power_state(codec, 0x1a, parm);
> > - update_power_state(codec, 0xb, parm);
> > + parm2 = parm; /* for pin 0x0b */
> >
> > /* PW2 (26h), AOW2 (ah) */
> > parm = AC_PWRST_D3;
> > @@ -3264,6 +3264,9 @@ static void
> > set_widgets_power_state_vt1718S(struct hda_codec *codec)
> > if (!spec->hp_independent_mode) /* check for redirected HP */
> > set_pin_power_state(codec, 0x28, &parm);
> > update_power_state(codec, 0x8, parm);
> > + if (!spec->hp_independent_mode && parm2 != AC_PWRST_D3)
> > + parm = parm2;
> > + update_power_state(codec, 0xb, parm);
> > /* MW9 (21h), Mw2 (1ah), AOW0 (8h) */
> > update_power_state(codec, 0x21, imux_is_smixer ? AC_PWRST_D0 :
> > parm);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* VIA VT2021 Support
@ 2012-07-23 10:03 Paul Freeman
0 siblings, 0 replies; 4+ messages in thread
From: Paul Freeman @ 2012-07-23 10:03 UTC (permalink / raw)
To: alsa-devel
Hi,
I recently acquired a Intel Z77 based motherboard, a GigaByte Z77-D3H
which uses a VIA VT2021 chip.. having had a quick look/grep though the
alsa source I didn't find any mention of it and Google has little say
about it either with regards to linux. anyone aware of/working on
support for this? - some of the outputs are working but not things like
front heaphone out etc
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-25 12:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 15:58 VIA VT2021 Support Paul Freeman
[not found] ` <s5hzk6pqgg6.wl%tiwai@suse.de>
2012-07-25 10:57 ` Paul Freeman
2012-07-25 12:14 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2012-07-23 10:03 Paul Freeman
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.