From: Jie Yang Date: Mon, 27 Apr 2015 13:21:00 +0000 (+0800) Subject: ASoC: jack: create kctls according to jack pins info X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f63e8581e277cc0561ed9f93878c674c1a36712a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: jack: create kctls according to jack pins info Jack kctls are now created according to the pin info. Signed-off-by: Jie Yang Acked-by: Mark Brown Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 70a9bdd5f3e3..87ca9806f3ee 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -197,6 +197,7 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, INIT_LIST_HEAD(&pins[i].list); 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