aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/soc.h9
-rw-r--r--sound/soc/soc-core.c9
2 files changed, 5 insertions, 13 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 2b502f6cc6d0..838e03778b58 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1668,13 +1668,8 @@ void snd_soc_of_parse_audio_prefix_from_node(struct snd_soc_card *card,
1668 struct snd_soc_codec_conf *codec_conf, 1668 struct snd_soc_codec_conf *codec_conf,
1669 struct device_node *of_node, 1669 struct device_node *of_node,
1670 const char *propname); 1670 const char *propname);
1671 1671int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
1672#define snd_soc_of_parse_audio_routing(card, propname) \ 1672 const char *propname);
1673 snd_soc_of_parse_audio_routing_from_node(card, NULL, propname)
1674int snd_soc_of_parse_audio_routing_from_node(struct snd_soc_card *card,
1675 struct device_node *np,
1676 const char *propname);
1677
1678unsigned int snd_soc_of_parse_daifmt(struct device_node *np, 1673unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
1679 const char *prefix, 1674 const char *prefix,
1680 struct device_node **bitclkmaster, 1675 struct device_node **bitclkmaster,
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index f1901bb1466e..e30984fd649b 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3690,17 +3690,14 @@ void snd_soc_of_parse_audio_prefix_from_node(struct snd_soc_card *card,
3690} 3690}
3691EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_prefix_from_node); 3691EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_prefix_from_node);
3692 3692
3693int snd_soc_of_parse_audio_routing_from_node(struct snd_soc_card *card, 3693int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
3694 struct device_node *np,
3695 const char *propname) 3694 const char *propname)
3696{ 3695{
3696 struct device_node *np = card->dev->of_node;
3697 int num_routes; 3697 int num_routes;
3698 struct snd_soc_dapm_route *routes; 3698 struct snd_soc_dapm_route *routes;
3699 int i, ret; 3699 int i, ret;
3700 3700
3701 if (!np)
3702 np = card->dev->of_node;
3703
3704 num_routes = of_property_count_strings(np, propname); 3701 num_routes = of_property_count_strings(np, propname);
3705 if (num_routes < 0 || num_routes & 1) { 3702 if (num_routes < 0 || num_routes & 1) {
3706 dev_err(card->dev, 3703 dev_err(card->dev,
@@ -3747,7 +3744,7 @@ int snd_soc_of_parse_audio_routing_from_node(struct snd_soc_card *card,
3747 3744
3748 return 0; 3745 return 0;
3749} 3746}
3750EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_routing_from_node); 3747EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_routing);
3751 3748
3752unsigned int snd_soc_of_parse_daifmt(struct device_node *np, 3749unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
3753 const char *prefix, 3750 const char *prefix,