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; }