From 50dbe24b7839fb4d82d01693ca15fa631b5a761d Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Fri, 27 Nov 2020 00:00:09 +0000 Subject: [PATCH] v5.9: snd_soc_component_read32() merged into snd_soc_component_read() commit 39853b1438bf9b07349c8c44b48f6c2eda6f8840 Merge: d6fea46e086b 5b554b0a29ce Author: Mark Brown Date: Mon Jun 22 15:36:06 2020 +0100 Merge series "ASoC: merge snd_soc_component_read() and snd_soc_component_read32()" from Kuninori Morimoto : $ git diff d6fea46e086b...5b554b0a29ce commit 5b554b0a29ce9610e3c237c77a1f76db87454b72 Author: Kuninori Morimoto Date: Tue Jun 16 14:21:55 2020 +0900 ASoC: remove snd_soc_component_read32() No driver is using snd_soc_component_read32() anymore. This patch removes it. --- sound-compatible-4.18.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound-compatible-4.18.h b/sound-compatible-4.18.h index faed848..080325b 100644 --- a/sound-compatible-4.18.h +++ b/sound-compatible-4.18.h @@ -31,7 +31,11 @@ #define snd_soc_codec_get_dapm snd_soc_component_get_dapm #define snd_soc_codec_get_bias_level snd_soc_component_get_bias_level #define snd_soc_kcontrol_codec snd_soc_kcontrol_component +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) +#define snd_soc_read snd_soc_component_read +#else #define snd_soc_read snd_soc_component_read32 +#endif #define snd_soc_register_codec snd_soc_register_component #define snd_soc_unregister_codec snd_soc_unregister_component #define snd_soc_update_bits snd_soc_component_update_bits