aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-30 10:11:11 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-30 10:11:11 -0400
commit0d971c9fcf06d22663040570c3cfe08b137c4b2f (patch)
tree33b07c79f3d9c02e93f62015985c8fcdab9cbe22 /sound/pci/hda/patch_realtek.c
parent4953550a6ca399b644ef057626617465d8be9a7b (diff)
ALSA: hda - Fix input pinctl for ALC882 auto mode
alc882_auto_init_analog_input() sets the input pins to VREF-80 regardless of the input pin types although it shouldn't be for line-in pins. This patch fixes the behavior to follow other codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6a899e8fdd0c..0f6b6a6f72e3 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -9125,9 +9125,6 @@ static void alc882_auto_init_hp_out(struct hda_codec *codec)
9125 alc882_auto_set_output_and_unmute(codec, pin, PIN_OUT, 0); 9125 alc882_auto_set_output_and_unmute(codec, pin, PIN_OUT, 0);
9126} 9126}
9127 9127
9128#define alc882_is_input_pin(nid) alc880_is_input_pin(nid)
9129#define ALC882_PIN_CD_NID ALC880_PIN_CD_NID
9130
9131static void alc882_auto_init_analog_input(struct hda_codec *codec) 9128static void alc882_auto_init_analog_input(struct hda_codec *codec)
9132{ 9129{
9133 struct alc_spec *spec = codec->spec; 9130 struct alc_spec *spec = codec->spec;
@@ -9137,7 +9134,7 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec)
9137 hda_nid_t nid = spec->autocfg.input_pins[i]; 9134 hda_nid_t nid = spec->autocfg.input_pins[i];
9138 if (!nid) 9135 if (!nid)
9139 continue; 9136 continue;
9140 alc_set_input_pin(codec, nid, AUTO_PIN_FRONT_MIC /*i*/); 9137 alc_set_input_pin(codec, nid, i);
9141 if (get_wcaps(codec, nid) & AC_WCAP_OUT_AMP) 9138 if (get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)
9142 snd_hda_codec_write(codec, nid, 0, 9139 snd_hda_codec_write(codec, nid, 0,
9143 AC_VERB_SET_AMP_GAIN_MUTE, 9140 AC_VERB_SET_AMP_GAIN_MUTE,