diff options
-rw-r--r-- | sound/pci/hda/patch_analog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 981c631624d9..f1b3875c57df 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -3070,6 +3070,7 @@ static void ad1988_auto_init_analog_input(struct hda_codec *codec) | |||
3070 | 3070 | ||
3071 | for (i = 0; i < cfg->num_inputs; i++) { | 3071 | for (i = 0; i < cfg->num_inputs; i++) { |
3072 | hda_nid_t nid = cfg->inputs[i].pin; | 3072 | hda_nid_t nid = cfg->inputs[i].pin; |
3073 | int type = cfg->inputs[i].type; | ||
3073 | switch (nid) { | 3074 | switch (nid) { |
3074 | case 0x15: /* port-C */ | 3075 | case 0x15: /* port-C */ |
3075 | snd_hda_codec_write(codec, 0x33, 0, AC_VERB_SET_CONNECT_SEL, 0x0); | 3076 | snd_hda_codec_write(codec, 0x33, 0, AC_VERB_SET_CONNECT_SEL, 0x0); |
@@ -3079,7 +3080,7 @@ static void ad1988_auto_init_analog_input(struct hda_codec *codec) | |||
3079 | break; | 3080 | break; |
3080 | } | 3081 | } |
3081 | snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, | 3082 | snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, |
3082 | i == AUTO_PIN_MIC ? PIN_VREF80 : PIN_IN); | 3083 | type == AUTO_PIN_MIC ? PIN_VREF80 : PIN_IN); |
3083 | if (nid != AD1988_PIN_CD_NID) | 3084 | if (nid != AD1988_PIN_CD_NID) |
3084 | snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE, | 3085 | snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE, |
3085 | AMP_OUT_MUTE); | 3086 | AMP_OUT_MUTE); |