From: Chih-Chung Chang Date: Mon, 5 Aug 2013 08:38:42 +0000 (+0800) Subject: ALSA: hda - Fix jack gating when auto_{mute,mic} is suppressed. X-Git-Tag: v3.12-rc1~150^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bde7bc6014a0a6f63cff42211ccd9b7129ce2df9;p=pandora-kernel.git 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: Chih-Chung Chang Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed