aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_conexant.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r--sound/pci/hda/patch_conexant.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index afa510f0b993..aabdb9e9a484 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -4020,12 +4020,11 @@ static void cx_auto_init_input(struct hda_codec *codec)
4020 } 4020 }
4021 4021
4022 for (i = 0; i < cfg->num_inputs; i++) { 4022 for (i = 0; i < cfg->num_inputs; i++) {
4023 unsigned int type; 4023 hda_nid_t pin = cfg->inputs[i].pin;
4024 unsigned int type = PIN_IN;
4024 if (cfg->inputs[i].type == AUTO_PIN_MIC) 4025 if (cfg->inputs[i].type == AUTO_PIN_MIC)
4025 type = PIN_VREF80; 4026 type |= snd_hda_get_default_vref(codec, pin);
4026 else 4027 snd_hda_set_pin_ctl(codec, pin, type);
4027 type = PIN_IN;
4028 snd_hda_set_pin_ctl(codec, cfg->inputs[i].pin, type);
4029 } 4028 }
4030 4029
4031 if (spec->auto_mic) { 4030 if (spec->auto_mic) {