aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/simple_card_utils.h
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-04-26 04:25:49 +0200
committerMark Brown <broonie@kernel.org>2019-04-26 10:50:02 +0100
commit90194281ee8b01fc5a223a12ac90006ae98862c4 (patch)
treed44457d91ad29ca608ccaede55f54a46f3897e3d /include/sound/simple_card_utils.h
parentASoC: Intel: bytcr_rt5651: align quirk override handling (diff)
downloadlinux-dev-90194281ee8b01fc5a223a12ac90006ae98862c4.tar.xz
linux-dev-90194281ee8b01fc5a223a12ac90006ae98862c4.zip
ASoC: simple-card-utils: add asoc_simple_parse_pin_switches()
This function is a helper that permits to create pin switch controls for a list of widgets whose names are listed in the PREFIX "pin-switches" devicetree property. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/simple_card_utils.h')
-rw-r--r--include/sound/simple_card_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h
index 67dc3ee6ed01..3429888347e7 100644
--- a/include/sound/simple_card_utils.h
+++ b/include/sound/simple_card_utils.h
@@ -133,6 +133,8 @@ int asoc_simple_parse_routing(struct snd_soc_card *card,
char *prefix);
int asoc_simple_parse_widgets(struct snd_soc_card *card,
char *prefix);
+int asoc_simple_parse_pin_switches(struct snd_soc_card *card,
+ char *prefix);
int asoc_simple_init_jack(struct snd_soc_card *card,
struct asoc_simple_jack *sjack,