From a960255f6fe1219a923051400e0d8a1eec0d77e5 Mon Sep 17 00:00:00 2001 From: Dmitry Rokosov Date: Wed, 10 Jun 2026 13:07:30 +0300 Subject: ASoC: meson: sm1: eqdrc: use snd_kcontrol_chip() After the commit applied 7e4cdef1ef8f ("ASoC: uniphier: use snd_kcontrol_chip() instead of snd_soc_kcontrol_component()") kernel alsa doesn't support snd_soc_kcontrol_component(), use snd_kcontrol_chip() instead. Signed-off-by: Dmitry Rokosov --- sound/soc/meson/sm1-eqdrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/meson/sm1-eqdrc.c b/sound/soc/meson/sm1-eqdrc.c index 582f846c62b3..47d236ae8c46 100644 --- a/sound/soc/meson/sm1-eqdrc.c +++ b/sound/soc/meson/sm1-eqdrc.c @@ -320,7 +320,7 @@ static int sm1_eqdrc_ram_kctl_read(struct snd_kcontrol *kcontrol, unsigned int __user *bytes, unsigned int size) { - struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); + struct snd_soc_component *c = snd_kcontrol_chip(kcontrol); struct soc_bytes_ext *params = (void *)kcontrol->private_value; unsigned int data_size = size - 2 * sizeof(unsigned int); unsigned int *data; @@ -362,7 +362,7 @@ static int sm1_eqdrc_ram_kctl_write(struct snd_kcontrol *kcontrol, const unsigned int __user *bytes, unsigned int size) { - struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); + struct snd_soc_component *c = snd_kcontrol_chip(kcontrol); struct soc_bytes_ext *params = (void *)kcontrol->private_value; unsigned int data_size = size - 2 * sizeof(unsigned int); unsigned int *data; -- cgit v1.2.3