OSDN Git Service

ASoC: soc-core: use snd_soc_dai_link_component for platform
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 31 Aug 2018 03:10:08 +0000 (03:10 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 31 Aug 2018 14:58:39 +0000 (15:58 +0100)
commitdaecf46ee0e5f0fb2349e20af53c4653e2afc440
tree08faf25cbec436705a70075337c4febf22e32102
parent2967e5ea19ec041104fd43da4cb07e8e76a39e55
ASoC: soc-core: use snd_soc_dai_link_component for platform

Current struct snd_soc_dai_link is supporting multicodec,
and it is supporting legacy style of
codec_name
codec_of_node
code_dai_name
This is handled as single entry of multicodec.

We don't have multicpu support yet, but in the future we will.
In such case, we can use snd_soc_dai_link_component for both
cpu/codec. Then the code will be more simple and readble.

As next step, we want to use it for platform, too.
This patch adds snd_soc_dai_link_component style for platform.
We might have multiplatform support in the future, but we
don't know yet. To avoid un-known issue / complex code,
this patch supports just single-platform as 1st step.

If we could use snd_soc_dai_link_component for all CPU/Codec/Platform,
we will switch to new style, and remove legacy code.
This is prepare for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c