From: Kailang Yang Date: Tue, 27 May 2008 10:10:25 +0000 (+0200) Subject: [ALSA] hda - Fix vref pincap check in alc882 auto-detection X-Git-Tag: v2.6.27-rc1~1111^2~132 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=531240ff520406c793a110e1c0f187d931f47d66;p=linux-2.6-omap-h63xx.git [ALSA] hda - Fix vref pincap check in alc882 auto-detection Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c659588e26d..8174050da15 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) 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; }