summaryrefslogtreecommitdiff
path: root/sound/soc/soc-jack.c
diff options
context:
space:
mode:
authorJie Yang <yang.jie@intel.com>2015-04-27 16:21:00 +0300
committerTakashi Iwai <tiwai@suse.de>2015-04-27 22:38:32 +0300
commitf63e8581e277cc0561ed9f93878c674c1a36712a (patch)
tree42b9e2bcc8825eff2a9456d70c8801931df9bae0 /sound/soc/soc-jack.c
parent2ba2dfa1fcc7ce5d2bf1716ec3d32b6fa0882e68 (diff)
downloadlinux-f63e8581e277cc0561ed9f93878c674c1a36712a.tar.xz
ASoC: jack: create kctls according to jack pins info
Jack kctls are now created according to the pin info. Signed-off-by: Jie Yang <yang.jie@intel.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-jack.c')
-rw-r--r--sound/soc/soc-jack.c1
1 files changed, 1 insertions, 0 deletions
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