From 6bf1dbd04e55d412abbba3832eccbcecb3f09810 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Sat, 9 Oct 2021 00:55:55 +0100 Subject: [PATCH] v5.13: cope with multi-support at asoc_simple_canonicalize_*() commit c826ec0391c83f06354a4ebb25c7b2480c18f33a Author: Kuninori Morimoto 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. --- seeed-voicecard.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/seeed-voicecard.c b/seeed-voicecard.c index d056e6f..399bc7e 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -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);