aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-08-24 06:19:08 -0400
committerMark Brown <broonie@kernel.org>2016-08-24 06:19:08 -0400
commit79e79e2ebc454e66f02e1b7e962711eee4da7e15 (patch)
treef69b843d505d374dbdbb28f58a5689533aa38280 /include/sound
parent1d9d0c65d95ecc446972ace6a7583e5cfdc69e48 (diff)
parent239486baee2bbefd81053cd4a168f90ce5c46fa2 (diff)
Merge branch 'topic/simple' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rcar
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/simple_card_utils.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h
index 86088aed9002..403ec92164fc 100644
--- a/include/sound/simple_card_utils.h
+++ b/include/sound/simple_card_utils.h
@@ -33,4 +33,38 @@ int asoc_simple_card_set_dailink_name(struct device *dev,
33int asoc_simple_card_parse_card_name(struct snd_soc_card *card, 33int asoc_simple_card_parse_card_name(struct snd_soc_card *card,
34 char *prefix); 34 char *prefix);
35 35
36#define asoc_simple_card_parse_clk_cpu(node, dai_link, simple_dai) \
37 asoc_simple_card_parse_clk(node, dai_link->cpu_of_node, simple_dai)
38#define asoc_simple_card_parse_clk_codec(node, dai_link, simple_dai) \
39 asoc_simple_card_parse_clk(node, dai_link->codec_of_node, simple_dai)
40int asoc_simple_card_parse_clk(struct device_node *node,
41 struct device_node *dai_of_node,
42 struct asoc_simple_dai *simple_dai);
43
44#define asoc_simple_card_parse_cpu(node, dai_link, \
45 list_name, cells_name, is_single_link) \
46 asoc_simple_card_parse_dai(node, &dai_link->cpu_of_node, \
47 &dai_link->cpu_dai_name, list_name, cells_name, is_single_link)
48#define asoc_simple_card_parse_codec(node, dai_link, list_name, cells_name) \
49 asoc_simple_card_parse_dai(node, &dai_link->codec_of_node, \
50 &dai_link->codec_dai_name, list_name, cells_name, NULL)
51#define asoc_simple_card_parse_platform(node, dai_link, list_name, cells_name) \
52 asoc_simple_card_parse_dai(node, &dai_link->platform_of_node, \
53 NULL, list_name, cells_name, NULL)
54int asoc_simple_card_parse_dai(struct device_node *node,
55 struct device_node **endpoint_np,
56 const char **dai_name,
57 const char *list_name,
58 const char *cells_name,
59 int *is_single_links);
60
61int asoc_simple_card_init_dai(struct snd_soc_dai *dai,
62 struct asoc_simple_dai *simple_dai);
63
64int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link);
65void asoc_simple_card_canonicalize_cpu(struct snd_soc_dai_link *dai_link,
66 int is_single_links);
67
68int asoc_simple_card_clean_reference(struct snd_soc_card *card);
69
36#endif /* __SIMPLE_CARD_CORE_H */ 70#endif /* __SIMPLE_CARD_CORE_H */