diff options
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r-- | sound/pci/hda/patch_via.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 8ee531aeda6e..92e11672b91c 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -661,10 +661,11 @@ static void via_auto_init_analog_input(struct hda_codec *codec) | |||
661 | hda_nid_t nid = cfg->inputs[i].pin; | 661 | hda_nid_t nid = cfg->inputs[i].pin; |
662 | if (spec->smart51_enabled && is_smart51_pins(codec, nid)) | 662 | if (spec->smart51_enabled && is_smart51_pins(codec, nid)) |
663 | ctl = PIN_OUT; | 663 | ctl = PIN_OUT; |
664 | else if (cfg->inputs[i].type == AUTO_PIN_MIC) | 664 | else { |
665 | ctl = PIN_VREF50; | ||
666 | else | ||
667 | ctl = PIN_IN; | 665 | ctl = PIN_IN; |
666 | if (cfg->inputs[i].type == AUTO_PIN_MIC) | ||
667 | ctl |= snd_hda_get_default_vref(codec, nid); | ||
668 | } | ||
668 | snd_hda_set_pin_ctl(codec, nid, ctl); | 669 | snd_hda_set_pin_ctl(codec, nid, ctl); |
669 | } | 670 | } |
670 | 671 | ||