projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cced83b
)
[ALSA] hda-codec - Fix amp-in values for pin widgets
author
Takashi Iwai
<tiwai@suse.de>
Fri, 22 Feb 2008 17:46:00 +0000
(18:46 +0100)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Fri, 22 Feb 2008 22:20:09 +0000
(14:20 -0800)
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>
sound/pci/hda/hda_proc.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_proc.c
b/sound/pci/hda/hda_proc.c
index 35a630d1770f80a2d5b62198bb6685f50069aa6c..5633f77f8f3b74885f36ff33dec5481771096871 100644
(file)
--- 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,
print_amp_caps(buffer, codec, nid, HDA_INPUT);
snd_iprintf(buffer, " Amp-In vals: ");
print_amp_vals(buffer, codec, nid, HDA_INPUT,
- wid_caps & AC_WCAP_STEREO, conn_len);
+ wid_caps & AC_WCAP_STEREO,
+ wid_type == AC_WID_PIN ? 1 : conn_len);
}
if (wid_caps & AC_WCAP_OUT_AMP) {
snd_iprintf(buffer, " Amp-Out caps: ");