Commit 531240ff authored by Kailang Yang's avatar Kailang Yang Committed by Takashi Iwai

[ALSA] hda - Fix vref pincap check in alc882 auto-detection

Signed-off-by: default avatarKailang Yang <kailang@realtek.com.tw>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6dda9f4a
...@@ -6357,7 +6357,9 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec) ...@@ -6357,7 +6357,9 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec)
continue; continue;
vref = PIN_IN; vref = PIN_IN;
if (1 /*i <= AUTO_PIN_FRONT_MIC*/) { if (1 /*i <= AUTO_PIN_FRONT_MIC*/) {
if (snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP) & unsigned int pincap;
pincap = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP);
if ((pincap >> AC_PINCAP_VREF_SHIFT) &
AC_PINCAP_VREF_80) AC_PINCAP_VREF_80)
vref = PIN_VREF80; vref = PIN_VREF80;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment