[PATCH] ALSA: HDA: Fix mic initialization in VIA auto parser
David Henningsson
david.henningsson at canonical.com
Mon Feb 21 10:23:18 CET 2011
This typo caused some microphone inputs not to be correctly
initialized on VIA codecs.
Reported-By: Mark Goldstein <goldstein.mark at gmail.com>
Cc: stable at kernel.org
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
sound/pci/hda/patch_via.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index a76c326..63b0054 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -567,7 +567,7 @@ static void via_auto_init_analog_input(struct hda_codec *codec)
hda_nid_t nid = cfg->inputs[i].pin;
if (spec->smart51_enabled && is_smart51_pins(spec, nid))
ctl = PIN_OUT;
- else if (i == AUTO_PIN_MIC)
+ else if (cfg->inputs[i].type == AUTO_PIN_MIC)
ctl = PIN_VREF50;
else
ctl = PIN_IN;
--
1.7.1
--------------080401030604030008020500--
More information about the Alsa-devel
mailing list