aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c659588e26d3..8174050da15f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -6357,7 +6357,9 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec)
6357 continue; 6357 continue;
6358 vref = PIN_IN; 6358 vref = PIN_IN;
6359 if (1 /*i <= AUTO_PIN_FRONT_MIC*/) { 6359 if (1 /*i <= AUTO_PIN_FRONT_MIC*/) {
6360 if (snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP) & 6360 unsigned int pincap;
6361 pincap = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP);
6362 if ((pincap >> AC_PINCAP_VREF_SHIFT) &
6361 AC_PINCAP_VREF_80) 6363 AC_PINCAP_VREF_80)
6362 vref = PIN_VREF80; 6364 vref = PIN_VREF80;
6363 } 6365 }