mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
26a2798053
commit
15b4f296fc
1 changed files with 3 additions and 0 deletions
|
@ -4359,6 +4359,9 @@ static int stac92xx_init(struct hda_codec *codec)
|
|||
stac_toggle_power_map(codec, cfg->hp_pins[i], 1);
|
||||
}
|
||||
if (spec->auto_mic) {
|
||||
/* initialize connection to analog input */
|
||||
snd_hda_codec_write_cache(codec, spec->dmux_nids[0], 0,
|
||||
AC_VERB_SET_CONNECT_SEL, 0);
|
||||
if (enable_pin_detect(codec, spec->ext_mic.pin, STAC_MIC_EVENT))
|
||||
stac_issue_unsol_event(codec, spec->ext_mic.pin);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue