diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-02-22 12:46:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-22 17:20:09 -0500 |
commit | 9e03ad7907bc9c9e60a3ea09579a61ad7f9e59c8 (patch) | |
tree | 898844497e7e127b1182adb301b1214115551f80 /sound | |
parent | cced83b62c61fb39b79e796981065dff474b62aa (diff) |
[ALSA] hda-codec - Fix amp-in values for pin widgets
Pin widgets have always one amp-input value regardless of number of
connections. The proc file showed values wrongly.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index 35a630d1770f..5633f77f8f3b 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
@@ -584,7 +584,8 @@ static void print_codec_info(struct snd_info_entry *entry, | |||
584 | print_amp_caps(buffer, codec, nid, HDA_INPUT); | 584 | print_amp_caps(buffer, codec, nid, HDA_INPUT); |
585 | snd_iprintf(buffer, " Amp-In vals: "); | 585 | snd_iprintf(buffer, " Amp-In vals: "); |
586 | print_amp_vals(buffer, codec, nid, HDA_INPUT, | 586 | print_amp_vals(buffer, codec, nid, HDA_INPUT, |
587 | wid_caps & AC_WCAP_STEREO, conn_len); | 587 | wid_caps & AC_WCAP_STEREO, |
588 | wid_type == AC_WID_PIN ? 1 : conn_len); | ||
588 | } | 589 | } |
589 | if (wid_caps & AC_WCAP_OUT_AMP) { | 590 | if (wid_caps & AC_WCAP_OUT_AMP) { |
590 | snd_iprintf(buffer, " Amp-Out caps: "); | 591 | snd_iprintf(buffer, " Amp-Out caps: "); |