aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-06-22 02:22:14 -0400
committerMark Brown <broonie@kernel.org>2017-06-23 08:02:59 -0400
commit32f2bcce3ed10b93236d747701a9c04d51626cc2 (patch)
treeac645f26e816b09881fa9731ec4651274352a900
parent47ca9593decee772a48d630af815aabedf99e694 (diff)
ASoC: audio-graph-scu-card: tidyup asoc_simple_card_canonicalize_cpu() parameter
asoc_simple_card_canonicalize_cpu() 2nd param is asking CPU component's DAI links, not Card links. This patch fixup it. Otherwise, audio-graph-card can't handle CPU component correctly if CPU has mult-DAIs and Card uses only one of them Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/generic/audio-graph-scu-card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index 05934b24627b..061c7a60d6b4 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -125,7 +125,7 @@ static int asoc_graph_card_dai_link_of(struct device_node *ep,
125 125
126 /* card->num_links includes Codec */ 126 /* card->num_links includes Codec */
127 asoc_simple_card_canonicalize_cpu(dai_link, 127 asoc_simple_card_canonicalize_cpu(dai_link,
128 (card->num_links - 1) == 1); 128 of_graph_get_endpoint_count(dai_link->cpu_of_node) == 1);
129 } else { 129 } else {
130 /* FE is dummy */ 130 /* FE is dummy */
131 dai_link->cpu_of_node = NULL; 131 dai_link->cpu_of_node = NULL;