mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
4953550a6c
commit
0d971c9fcf
1 changed files with 1 additions and 4 deletions
|
@ -9125,9 +9125,6 @@ static void alc882_auto_init_hp_out(struct hda_codec *codec)
|
||||||
alc882_auto_set_output_and_unmute(codec, pin, PIN_OUT, 0);
|
alc882_auto_set_output_and_unmute(codec, pin, PIN_OUT, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define alc882_is_input_pin(nid) alc880_is_input_pin(nid)
|
|
||||||
#define ALC882_PIN_CD_NID ALC880_PIN_CD_NID
|
|
||||||
|
|
||||||
static void alc882_auto_init_analog_input(struct hda_codec *codec)
|
static void alc882_auto_init_analog_input(struct hda_codec *codec)
|
||||||
{
|
{
|
||||||
struct alc_spec *spec = codec->spec;
|
struct alc_spec *spec = codec->spec;
|
||||||
|
@ -9137,7 +9134,7 @@ static void alc882_auto_init_analog_input(struct hda_codec *codec)
|
||||||
hda_nid_t nid = spec->autocfg.input_pins[i];
|
hda_nid_t nid = spec->autocfg.input_pins[i];
|
||||||
if (!nid)
|
if (!nid)
|
||||||
continue;
|
continue;
|
||||||
alc_set_input_pin(codec, nid, AUTO_PIN_FRONT_MIC /*i*/);
|
alc_set_input_pin(codec, nid, i);
|
||||||
if (get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)
|
if (get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)
|
||||||
snd_hda_codec_write(codec, nid, 0,
|
snd_hda_codec_write(codec, nid, 0,
|
||||||
AC_VERB_SET_AMP_GAIN_MUTE,
|
AC_VERB_SET_AMP_GAIN_MUTE,
|
||||||
|
|
Loading…
Reference in a new issue