diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-08-09 22:21:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-10 16:03:25 -0400 |
commit | 27b010815bcfbb2cc79de7544547e33e4d169594 (patch) | |
tree | 939ed4506aca9d0f5a76b1cd42fbbca799721cb3 | |
parent | 16f1de6f3656519120fd4a88d6b21fc3da8d373a (diff) |
ASoC: rsrc-card: use asoc_simple_card_canonicalize_cpu()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/rsrc-card.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c index 0bf17dae2b64..dd5eda1f9a29 100644 --- a/sound/soc/sh/rcar/rsrc-card.c +++ b/sound/soc/sh/rcar/rsrc-card.c | |||
@@ -134,7 +134,6 @@ static int rsrc_card_parse_links(struct device_node *np, | |||
134 | struct device *dev = rsrc_priv_to_dev(priv); | 134 | struct device *dev = rsrc_priv_to_dev(priv); |
135 | struct snd_soc_dai_link *dai_link = rsrc_priv_to_link(priv, idx); | 135 | struct snd_soc_dai_link *dai_link = rsrc_priv_to_link(priv, idx); |
136 | struct asoc_simple_dai *dai_props = rsrc_priv_to_props(priv, idx); | 136 | struct asoc_simple_dai *dai_props = rsrc_priv_to_props(priv, idx); |
137 | int is_single_links = 0; | ||
138 | int ret; | 137 | int ret; |
139 | 138 | ||
140 | /* Parse TDM slot */ | 139 | /* Parse TDM slot */ |
@@ -147,6 +146,8 @@ static int rsrc_card_parse_links(struct device_node *np, | |||
147 | return ret; | 146 | return ret; |
148 | 147 | ||
149 | if (is_fe) { | 148 | if (is_fe) { |
149 | int is_single_links = 0; | ||
150 | |||
150 | /* BE is dummy */ | 151 | /* BE is dummy */ |
151 | dai_link->codec_of_node = NULL; | 152 | dai_link->codec_of_node = NULL; |
152 | dai_link->codec_dai_name = "snd-soc-dummy-dai"; | 153 | dai_link->codec_dai_name = "snd-soc-dummy-dai"; |
@@ -171,17 +172,7 @@ static int rsrc_card_parse_links(struct device_node *np, | |||
171 | if (ret < 0) | 172 | if (ret < 0) |
172 | return ret; | 173 | return ret; |
173 | 174 | ||
174 | /* | 175 | asoc_simple_card_canonicalize_cpu(dai_link, is_single_links); |
175 | * In soc_bind_dai_link() will check cpu name after | ||
176 | * of_node matching if dai_link has cpu_dai_name. | ||
177 | * but, it will never match if name was created by | ||
178 | * fmt_single_name() remove cpu_dai_name if cpu_args | ||
179 | * was 0. See: | ||
180 | * fmt_single_name() | ||
181 | * fmt_multiple_name() | ||
182 | */ | ||
183 | if (is_single_links) | ||
184 | dai_link->cpu_dai_name = NULL; | ||
185 | } else { | 176 | } else { |
186 | const struct rsrc_card_of_data *of_data; | 177 | const struct rsrc_card_of_data *of_data; |
187 | 178 | ||