From a46c3f6324438cc3e5321f7d7b9c4b7c8a50db19 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 27 Jul 2023 02:08:40 +0100 Subject: [PATCH] Re-store support for v6.3 in the v6.4 branch --- seeed-voicecard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/seeed-voicecard.c b/seeed-voicecard.c index 10ac1cd..ebd793a 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -396,8 +396,14 @@ static int asoc_simple_init_dai_link_params(struct snd_soc_pcm_runtime *rtd) params->channels_min = hw.channels_min; params->channels_max = hw.channels_max; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0) dai_link->c2c_params = params; dai_link->num_c2c_params = 1; +#else + /* apparently this goes back to 5.6.x */ + dai_link->params = params; + dai_link->num_params = 1; +#endif return 0; }