aboutsummaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_via.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2011-02-24 10:05:01 +0100
committerTakashi Iwai <[email protected]>2011-02-24 10:05:01 +0100
commit1aa924e21eec9dbb2c5fae90a71451a700db4414 (patch)
tree27cc77862c7f7078c7339e2f9b4e52da12ad04c8 /sound/pci/hda/patch_via.c
parent786c51f9168cfd2d49250c6e5e60035cbb2fd5a1 (diff)
parentebbd224c22a00dbbee95031a0d6d595460f6f2b3 (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r--sound/pci/hda/patch_via.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index a76c3260d941..63b0054200a8 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;