]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ALSA: hda - Mute ADC as default in ALC882 and other auto-parsers
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Apr 2011 10:46:45 +0000 (12:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Apr 2011 10:49:08 +0000 (12:49 +0200)
Mute the ADC as default in the auto-parser dynamically instead of relying
on the static init verbs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index e3756a7ebee249a93cf476fed3af6e6aff4424f2..e5dfed35ca67eb39e9dd4cce4b77ce41e66d604f 100644 (file)
@@ -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)