* [PATCH 1/6] sound/pci/hda: Fix Amp-In count for widgets with implied selector
@ 2012-04-05 13:29 Michael Karcher
2012-04-05 14:28 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Michael Karcher @ 2012-04-05 13:29 UTC (permalink / raw)
To: Jaroslav Kysela, alsa-devel, linux-kernel, Takashi Iwai
A selector widget with AC_WCAP_IN_AMP has multiple input amplifiers (if
the selector widget would have only one common amp, it would be labeled
as "output amplifier" instead). This is just like mixer widgets.
If a non-mixer/selector widget has an input amplifier, it is only one
input amplifier, even if it has a connection list with more than one
entry. The implied selector is placed before the single input amplifier.
At least that is how I read the HDA specs, and what Conexant implements in
their CX20549 codec.
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index 254ab52..9b942f0 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -653,7 +653,7 @@ static void print_codec_info(struct snd_info_entry *entry,
snd_iprintf(buffer, " Amp-In vals: ");
print_amp_vals(buffer, codec, nid, HDA_INPUT,
wid_caps & AC_WCAP_STEREO,
- wid_type == AC_WID_PIN ? 1 : conn_len);
+ (wid_type == AC_WID_AUD_SEL || wid_type == AC_WID_AUD_MIX) ? conn_len : 1);
}
if (wid_caps & AC_WCAP_OUT_AMP) {
snd_iprintf(buffer, " Amp-Out caps: ");
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/6] sound/pci/hda: Fix Amp-In count for widgets with implied selector
2012-04-05 13:29 [PATCH 1/6] sound/pci/hda: Fix Amp-In count for widgets with implied selector Michael Karcher
@ 2012-04-05 14:28 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2012-04-05 14:28 UTC (permalink / raw)
To: Michael Karcher; +Cc: Jaroslav Kysela, alsa-devel, linux-kernel
At Thu, 05 Apr 2012 15:29:56 +0200,
Michael Karcher wrote:
>
> A selector widget with AC_WCAP_IN_AMP has multiple input amplifiers (if
> the selector widget would have only one common amp, it would be labeled
> as "output amplifier" instead). This is just like mixer widgets.
>
> If a non-mixer/selector widget has an input amplifier, it is only one
> input amplifier, even if it has a connection list with more than one
> entry. The implied selector is placed before the single input amplifier.
>
> At least that is how I read the HDA specs, and what Conexant implements in
> their CX20549 codec.
It's rather cx20549-specific behavior. If you take a look at the BIOS
auto-parser, spec->single_adc_amp is set as a workaround.
Yes, the proc file output should be fixed as well, but you can't
change it globally for all codecs.
Takashi
> diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
> index 254ab52..9b942f0 100644
> --- a/sound/pci/hda/hda_proc.c
> +++ b/sound/pci/hda/hda_proc.c
> @@ -653,7 +653,7 @@ static void print_codec_info(struct snd_info_entry *entry,
> snd_iprintf(buffer, " Amp-In vals: ");
> print_amp_vals(buffer, codec, nid, HDA_INPUT,
> wid_caps & AC_WCAP_STEREO,
> - wid_type == AC_WID_PIN ? 1 : conn_len);
> + (wid_type == AC_WID_AUD_SEL || wid_type == AC_WID_AUD_MIX) ? conn_len : 1);
> }
> if (wid_caps & AC_WCAP_OUT_AMP) {
> snd_iprintf(buffer, " Amp-Out caps: ");
> --
> 1.7.9.1
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/6] sound/pci/hda: Fix Amp-In count for widgets with implied selector
@ 2012-04-05 14:28 ` Takashi Iwai
0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2012-04-05 14:28 UTC (permalink / raw)
To: Michael Karcher; +Cc: alsa-devel, linux-kernel
At Thu, 05 Apr 2012 15:29:56 +0200,
Michael Karcher wrote:
>
> A selector widget with AC_WCAP_IN_AMP has multiple input amplifiers (if
> the selector widget would have only one common amp, it would be labeled
> as "output amplifier" instead). This is just like mixer widgets.
>
> If a non-mixer/selector widget has an input amplifier, it is only one
> input amplifier, even if it has a connection list with more than one
> entry. The implied selector is placed before the single input amplifier.
>
> At least that is how I read the HDA specs, and what Conexant implements in
> their CX20549 codec.
It's rather cx20549-specific behavior. If you take a look at the BIOS
auto-parser, spec->single_adc_amp is set as a workaround.
Yes, the proc file output should be fixed as well, but you can't
change it globally for all codecs.
Takashi
> diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
> index 254ab52..9b942f0 100644
> --- a/sound/pci/hda/hda_proc.c
> +++ b/sound/pci/hda/hda_proc.c
> @@ -653,7 +653,7 @@ static void print_codec_info(struct snd_info_entry *entry,
> snd_iprintf(buffer, " Amp-In vals: ");
> print_amp_vals(buffer, codec, nid, HDA_INPUT,
> wid_caps & AC_WCAP_STEREO,
> - wid_type == AC_WID_PIN ? 1 : conn_len);
> + (wid_type == AC_WID_AUD_SEL || wid_type == AC_WID_AUD_MIX) ? conn_len : 1);
> }
> if (wid_caps & AC_WCAP_OUT_AMP) {
> snd_iprintf(buffer, " Amp-Out caps: ");
> --
> 1.7.9.1
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-05 14:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05 13:29 [PATCH 1/6] sound/pci/hda: Fix Amp-In count for widgets with implied selector Michael Karcher
2012-04-05 14:28 ` Takashi Iwai
2012-04-05 14:28 ` 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.