projects
/
linux-flexiantxendom0-natty.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: HDA: Fix mic initialization in VIA auto parser
[linux-flexiantxendom0-natty.git]
/
sound
/
pci
/
hda
/
patch_via.c
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index
a76c326
..
63b0054
100644
(file)
--- 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;