diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-29 10:32:55 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-29 10:32:55 -0400 |
commit | 15b4f296fce683497ecc815b2f9b6f121fb3fef8 (patch) | |
tree | 82c6fe2ae862a2dea518e9b81343073e78fb4dfe /sound/pci/hda/patch_sigmatel.c | |
parent | 26a2798053519d766ddae1ca1b03c8295fddf1a8 (diff) |
ALSA: hda - Add missing DMUX initialization for auto-mic with STAC/IDT
Added the missing initialization of DMUX connection (to analog input)
for auto-mic mode with STAC/IDT codecs.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index abc44dbe0ab9..2405f8418a70 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -4359,6 +4359,9 @@ static int stac92xx_init(struct hda_codec *codec) | |||
4359 | stac_toggle_power_map(codec, cfg->hp_pins[i], 1); | 4359 | stac_toggle_power_map(codec, cfg->hp_pins[i], 1); |
4360 | } | 4360 | } |
4361 | if (spec->auto_mic) { | 4361 | if (spec->auto_mic) { |
4362 | /* initialize connection to analog input */ | ||
4363 | snd_hda_codec_write_cache(codec, spec->dmux_nids[0], 0, | ||
4364 | AC_VERB_SET_CONNECT_SEL, 0); | ||
4362 | if (enable_pin_detect(codec, spec->ext_mic.pin, STAC_MIC_EVENT)) | 4365 | if (enable_pin_detect(codec, spec->ext_mic.pin, STAC_MIC_EVENT)) |
4363 | stac_issue_unsol_event(codec, spec->ext_mic.pin); | 4366 | stac_issue_unsol_event(codec, spec->ext_mic.pin); |
4364 | } | 4367 | } |