From: Takashi Iwai Date: Thu, 7 Apr 2011 10:46:45 +0000 (+0200) Subject: ALSA: hda - Mute ADC as default in ALC882 and other auto-parsers X-Git-Tag: v3.0-rc1~51^2~12^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10696aa0e56b29c6f3ce27081092785c564423e1;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ALSA: hda - Mute ADC as default in ALC882 and other auto-parsers Mute the ADC as default in the auto-parser dynamically instead of relying on the static init verbs. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e3756a7..e5dfed3 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -10852,6 +10852,11 @@ static void alc882_auto_init_input_src(struct hda_codec *codec) const struct hda_input_mux *imux; int conns, mute, idx, item; + /* mute ADC */ + snd_hda_codec_write(codec, spec->adc_nids[c], 0, + AC_VERB_SET_AMP_GAIN_MUTE, + AMP_IN_MUTE(0)); + conns = snd_hda_get_connections(codec, nid, conn_list, ARRAY_SIZE(conn_list)); if (conns < 0)