diff options
author | Paul Cercueil <paul@crapouillou.net> | 2019-04-26 05:25:49 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-26 12:50:02 +0300 |
commit | 90194281ee8b01fc5a223a12ac90006ae98862c4 (patch) | |
tree | d44457d91ad29ca608ccaede55f54a46f3897e3d /include | |
parent | fb45befa7ea07399372266f09e562b26db5693c9 (diff) | |
download | linux-90194281ee8b01fc5a223a12ac90006ae98862c4.tar.xz |
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')
-rw-r--r-- | include/sound/simple_card_utils.h | 2 |
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, |