v5.13: cope with multi-support at asoc_simple_canonicalize_*()
commit c826ec0391c83f06354a4ebb25c7b2480c18f33a Author: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Date: Mon Apr 12 08:52:45 2021 +0900 ASoC: simple-card-utils: multi support at asoc_simple_canonicalize_cpu/platform() Current asoc_simple_canonicalize_cpu/platform() is assuming single CPU, single Platform, but we want to support Multi support. This patch is prepare for it.
This commit is contained in:
parent
b093f59250
commit
6bf1dbd04e
1 changed files with 7 additions and 0 deletions
|
@ -557,10 +557,17 @@ static int seeed_voice_card_dai_link_of(struct device_node *node,
|
|||
#endif
|
||||
dai_props->codec_dai.sysclk);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,13,0)
|
||||
asoc_simple_canonicalize_cpu(dai_link->cpus, single_cpu);
|
||||
#if _SINGLE_CODEC
|
||||
asoc_simple_canonicalize_platform(dai_link->platforms, dai_link->cpus);
|
||||
#endif
|
||||
#else
|
||||
asoc_simple_canonicalize_cpu(dai_link, single_cpu);
|
||||
#if _SINGLE_CODEC
|
||||
asoc_simple_canonicalize_platform(dai_link);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
dai_link_of_err:
|
||||
of_node_put(cpu);
|
||||
|
|
Loading…
Reference in a new issue