diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-15 02:25:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-15 19:14:57 +0200 |
commit | 3296d07826ebc698113832acb426f037e9b3b253 (patch) | |
tree | e2be7fe1af7b699ab203c122656863ae4080dafb /include/sound | |
parent | ASoC: audio-graph-scu-card: use asoc_simple_card_convert_fixup() (diff) | |
download | linux-3296d07826ebc698113832acb426f037e9b3b253.tar.xz linux-3296d07826ebc698113832acb426f037e9b3b253.zip |
ASoC: simple-card-utils: add asoc_simple_card_of_parse_routing()
Current simple card drivers are parsing routing on each own driver.
Encapsulation is one of simple card util's purpose.
Let's add asoc_simple_card_of_parse_routing for it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index cc318ccd6a2d..889c8ff86369 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -100,4 +100,8 @@ void asoc_simple_card_convert_fixup(struct asoc_simple_card_data *data, void asoc_simple_card_parse_convert(struct device *dev, char *prefix, struct asoc_simple_card_data *data); +int asoc_simple_card_of_parse_routing(struct snd_soc_card *card, + char *prefix, + int optional); + #endif /* __SIMPLE_CARD_UTILS_H */ |