ASoC: soc-core: use snd_soc_dai_link_component for CPU
current ALSA SoC is starting to support modern style dai_linke (= struct snd_soc_dai_link_component) which is mainly used for multipul DAI/component connection. Now Codec has full multi-codec support, Platform is using modern style but still for single Platform. Only CPU is not yet supporting modern style yet. If we could support it for CPU, we can switch to modern style dai_link on all CPU/Codec/Platform, and remove legacy style from ALSA SoC. Multi-CPU will be supported in the future. This patch is initial support for modern style for CPU Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
64429a8711
commit
08a5841e3a
@@ -927,6 +927,9 @@ struct snd_soc_dai_link {
|
||||
*/
|
||||
const char *cpu_dai_name;
|
||||
|
||||
struct snd_soc_dai_link_component *cpus;
|
||||
unsigned int num_cpus;
|
||||
|
||||
/*
|
||||
* codec_name
|
||||
* codec_of_node
|
||||
@@ -1035,6 +1038,7 @@ struct snd_soc_dai_link {
|
||||
* drivers should not modify this value.
|
||||
*/
|
||||
unsigned int legacy_platform:1;
|
||||
unsigned int legacy_cpu:1;
|
||||
|
||||
struct list_head list; /* DAI link list of the soc card */
|
||||
struct snd_soc_dobj dobj; /* For topology */
|
||||
|
Reference in New Issue
Block a user