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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Paul Cercueil 2019-04-26 04:25:49 +02:00 • committed by Mark Brown
commit 90194281ee
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 59 additions and 0 deletions

View file

@ -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,