diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-04-20 04:35:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-17 12:21:20 +0300 |
commit | 1689333f8311f5952ee69d64adf242028dc7e6c6 (patch) | |
tree | 702ce632456edfe55997aa6cc8bb625ba66f4a39 /include/sound/simple_card_utils.h | |
parent | dedfaa1eedc7309252989a7defab4d565a9f481b (diff) | |
download | linux-1689333f8311f5952ee69d64adf242028dc7e6c6.tar.xz |
ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()
simple-card already has asoc_simple_card_parse_dai(),
but graph base parsing needs graph specific version of it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index af58d2362975..efab584af11b 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -60,6 +60,16 @@ int asoc_simple_card_parse_dai(struct device_node *node, const char *cells_name, int *is_single_links); +#define asoc_simple_card_parse_graph_cpu(ep, dai_link) \ + asoc_simple_card_parse_graph_dai(ep, &dai_link->cpu_of_node, \ + &dai_link->cpu_dai_name) +#define asoc_simple_card_parse_graph_codec(ep, dai_link) \ + asoc_simple_card_parse_graph_dai(ep, &dai_link->codec_of_node, \ + &dai_link->codec_dai_name) +int asoc_simple_card_parse_graph_dai(struct device_node *ep, + struct device_node **endpoint_np, + const char **dai_name); + int asoc_simple_card_init_dai(struct snd_soc_dai *dai, struct asoc_simple_dai *simple_dai); |