Commit f63e8581 authored by Jie Yang's avatar Jie Yang Committed by Takashi Iwai

ASoC: jack: create kctls according to jack pins info

Jack kctls are now created according to the pin info.
Signed-off-by: default avatarJie Yang <yang.jie@intel.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2ba2dfa1
...@@ -197,6 +197,7 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, ...@@ -197,6 +197,7 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
INIT_LIST_HEAD(&pins[i].list); INIT_LIST_HEAD(&pins[i].list);
list_add(&(pins[i].list), &jack->pins); list_add(&(pins[i].list), &jack->pins);
snd_jack_add_new_kctl(jack->jack, pins[i].pin, pins[i].mask);
} }
/* Update to reflect the last reported status; canned jack /* Update to reflect the last reported status; canned jack
......
Markdown is supported
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