[alsa-devel] [PATCH 44/49] ASoC: rsrc-card: use asoc_simple_card_canonicalize_cpu()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Fri May 20 12:05:32 CEST 2016
From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/rsrc-card.c | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c
index 08fed4c..b18f156 100644
--- a/sound/soc/sh/rcar/rsrc-card.c
+++ b/sound/soc/sh/rcar/rsrc-card.c
@@ -146,17 +146,6 @@ static int rsrc_card_parse_links(struct device_node *np,
if (ret < 0)
return ret;
- /*
- * In soc_bind_dai_link() will check cpu name after
- * of_node matching if dai_link has cpu_dai_name.
- * but, it will never match if name was created by
- * fmt_single_name() remove cpu_dai_name if cpu_args
- * was 0. See:
- * fmt_single_name()
- * fmt_multiple_name()
- */
- if (is_single_links)
- dai_link->cpu_dai_name = NULL;
} else {
const struct rsrc_card_of_data *of_data;
@@ -203,6 +192,11 @@ static int rsrc_card_parse_links(struct device_node *np,
dai_link->dai_fmt,
dai_props->sysclk);
+ ret = asoc_simple_card_canonicalize_cpu(dai_link,
+ is_single_links);
+ if (ret)
+ return ret;
+
return 0;
}
--
1.9.1
More information about the Alsa-devel
mailing list