Skip to content
Commit bde7bc60 authored by Chih-Chung Chang's avatar Chih-Chung Chang Committed by Takashi Iwai
Browse files

ALSA: hda - Fix jack gating when auto_{mute,mic} is suppressed.



The snd_hda_jack_set_gating_jack() call didn't work when
auto_{mute,mic} is suppressed because (1) am_entry is
not filled with nid of the mic pin. (2) The jacks are not
created (by snd_hda_jack_detect_enable_callback) before the
snd_hda_jack_set_gating_jack call.

Now we use the first input pin nid directly, and create the jack if it
doesn't exist yet.

Signed-off-by: default avatarChih-Chung Chang <chihchung@chromium.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent da96fb5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment