mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[ALSA] hda - Fix vref pincap check in alc882 auto-detection
Signed-off-by: Kailang Yang <kailang@realtek.com.tw> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6dda9f4a95
commit
531240ff52
1 changed files with 3 additions and 1 deletions
|
@ -6357,7 +6357,9 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec)
|
|||
continue;
|
||||
vref = PIN_IN;
|
||||
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)
|
||||
vref = PIN_VREF80;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue