Skip to content
Snippets Groups Projects
Unverified Commit 6f043744 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: simple-card-utils: don't select unnecessary Platform


ALSA SoC is now supporting "no Platform". Sound card doesn't need to
select "CPU component" as "Platform" anymore if it doesn't need
special Platform.
This patch removes such settings.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9ae6cdb1
No related branches found
No related tags found
No related merge requests found
...@@ -346,9 +346,18 @@ EXPORT_SYMBOL_GPL(asoc_simple_dai_init); ...@@ -346,9 +346,18 @@ EXPORT_SYMBOL_GPL(asoc_simple_dai_init);
void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link) void asoc_simple_canonicalize_platform(struct snd_soc_dai_link *dai_link)
{ {
/* Assumes platform == cpu */ /*
if (!dai_link->platforms->of_node) * no Platform
dai_link->platforms->of_node = dai_link->cpus->of_node; *
* It will be waste of memory, but not be memory leak.
* see
* asoc_simple_init_priv()
* asoc_simple_priv
*/
if (!dai_link->platforms->of_node) {
dai_link->platforms = NULL;
dai_link->num_platforms = 0;
}
} }
EXPORT_SYMBOL_GPL(asoc_simple_canonicalize_platform); EXPORT_SYMBOL_GPL(asoc_simple_canonicalize_platform);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment