aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2021-06-26 16:59:39 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-28 14:35:36 +0200
commit3b6c430d1248aebdd3064e0b191a8c13a77e105c (patch)
tree9cc5d7a9df84b9cc4353c6f8198e202e6e97dc56
parent57efe4f82a76439d2c812bf78193de311aa7863c (diff)
downloadkernel_replicant_linux-3b6c430d1248aebdd3064e0b191a8c13a77e105c.tar.gz
kernel_replicant_linux-3b6c430d1248aebdd3064e0b191a8c13a77e105c.tar.bz2
kernel_replicant_linux-3b6c430d1248aebdd3064e0b191a8c13a77e105c.zip
ASoC: wm_adsp: Correct wm_coeff_tlv_get handling
[ Upstream commit dd6fb8ff2210f74b056bf9234d0605e8c26a8ac0 ] When wm_coeff_tlv_get was updated it was accidentally switch to the _raw version of the helper causing it to ignore the current DSP state it should be checking. Switch the code back to the correct helper so that users can't read the controls when they arn't available. Fixes: 73ecf1a673d3 ("ASoC: wm_adsp: Correct cache handling of new kernel control API") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20210626155941.12251-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--sound/soc/codecs/wm_adsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 985b2dcecf13..51d95437e0fd 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1221,7 +1221,7 @@ static int wm_coeff_tlv_get(struct snd_kcontrol *kctl,
mutex_lock(&ctl->dsp->pwr_lock);
- ret = wm_coeff_read_ctrl_raw(ctl, ctl->cache, size);
+ ret = wm_coeff_read_ctrl(ctl, ctl->cache, size);
if (!ret && copy_to_user(bytes, ctl->cache, size))
ret = -EFAULT;