diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-04-07 06:46:45 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-04-07 06:49:08 -0400 |
commit | 10696aa0e56b29c6f3ce27081092785c564423e1 (patch) | |
tree | 6e4bc9a5b09129165467bdb7ef497d345c846a40 /sound | |
parent | 0e53f3440925aa36fe3bd2307e5fa0238a66f8bf (diff) |
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 <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e3756a7ebee2..e5dfed35ca67 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) | |||
10852 | const struct hda_input_mux *imux; | 10852 | const struct hda_input_mux *imux; |
10853 | int conns, mute, idx, item; | 10853 | int conns, mute, idx, item; |
10854 | 10854 | ||
10855 | /* mute ADC */ | ||
10856 | snd_hda_codec_write(codec, spec->adc_nids[c], 0, | ||
10857 | AC_VERB_SET_AMP_GAIN_MUTE, | ||
10858 | AMP_IN_MUTE(0)); | ||
10859 | |||
10855 | conns = snd_hda_get_connections(codec, nid, conn_list, | 10860 | conns = snd_hda_get_connections(codec, nid, conn_list, |
10856 | ARRAY_SIZE(conn_list)); | 10861 | ARRAY_SIZE(conn_list)); |
10857 | if (conns < 0) | 10862 | if (conns < 0) |