summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-06-03 13:50:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-22 14:21:56 +0200
commitd6d1c0990191c136cb921a08e054aa7d50f31d0b (patch)
tree83f4ea7db9f10b0c8499bc61dec1ac56cfc14bda /sound
parent606b0226de0159a3ab16cefa1e48161acb38fec3 (diff)
downloadlinux-stable-d6d1c0990191c136cb921a08e054aa7d50f31d0b.tar.gz
linux-stable-d6d1c0990191c136cb921a08e054aa7d50f31d0b.tar.bz2
linux-stable-d6d1c0990191c136cb921a08e054aa7d50f31d0b.zip
ASoC: wm_adsp: Fix event generation for wm_adsp_fw_put()
[ Upstream commit 2abdf9f80019e8244d3806ed0e1c9f725e50b452 ] Currently wm_adsp_fw_put() returns 0 rather than 1 when updating the value of the control, meaning that no event is generated to userspace. Fix this by setting the default return value to 1, the code already exits early with a return value of 0 if the value is unchanged. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220603115003.3865834-1-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
-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 f7c800927cb2..08fc1a025b1a 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -794,7 +794,7 @@ int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);
struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
struct wm_adsp *dsp = snd_soc_component_get_drvdata(component);
- int ret = 0;
+ int ret = 1;
if (ucontrol->value.enumerated.item[0] == dsp[e->shift_l].fw)
return 0;