From a1a51f8aabe97398cf2744eb17d209f5eeba8410 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Mon, 31 May 2021 19:17:06 +0100 Subject: [PATCH] v5.12: symmetric_rates renamed symmetric_rate commit fa31a2c787aeaf61d02b2a57bd9765ca5e67d949 Author: Kuninori Morimoto Date: Fri Jan 15 13:56:30 2021 +0900 ASoC: soc-dai.h: remove symmetric_rates/samplebits All drivers are using new name. Let's remove old one. commit f14654ddf2e982537ab476d392a87fcbf90374c3 Author: Kuninori Morimoto Date: Fri Jan 15 13:52:54 2021 +0900 ASoC: sync parameter naming : rate / sample_bits snd_pcm_runtime / snd_soc_dai / snd_soc_dai_driver / snd_soc_dai_link have related parameter which is similar but not same naming. --- wm8960.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wm8960.c b/wm8960.c index 465c6dc..375d1a7 100644 --- a/wm8960.c +++ b/wm8960.c @@ -1259,7 +1259,11 @@ static struct snd_soc_dai_driver wm8960_dai = { .rates = WM8960_RATES, .formats = WM8960_FORMATS,}, .ops = &wm8960_dai_ops, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,12,0) + .symmetric_rate = 1, +#else .symmetric_rates = 1, +#endif }; static int wm8960_probe(struct snd_soc_codec *codec)