diff options
| author | Dmitry Rokosov <ddrokosov@salutedevices.com> | 2026-06-10 13:07:30 +0300 |
|---|---|---|
| committer | Dmitry Rokosov <rockosov@rulkc.org> | 2026-08-13 14:41:35 +0300 |
| commit | a960255f6fe1219a923051400e0d8a1eec0d77e5 (patch) | |
| tree | 31f0592846f3c6f7f7c1de2eabcd0ce6cb227a2e | |
| parent | 0f315ffd57ae46ba68769375afc7f8f443400647 (diff) | |
| download | linux-a960255f6fe1219a923051400e0d8a1eec0d77e5.tar.gz linux-a960255f6fe1219a923051400e0d8a1eec0d77e5.zip | |
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 <rockosov@rulkc.org>
| -rw-r--r-- | sound/soc/meson/sm1-eqdrc.c | 4 |
1 files 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; |
