summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-28 17:24:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 16:53:54 +0200
commit661f58bb2fbdc7354c0d124125e0edbd80e70871 (patch)
treec29cc85ae8b9da002b2e6cb159d129bb7fe5c42d /sound/soc
parentd7e30dfc166d33470bba31a42f9bbc346e5409d5 (diff)
downloadlinux-rt-661f58bb2fbdc7354c0d124125e0edbd80e70871.tar.gz
ASoC: rt5514: Fix event generation for "DSP Voice Wake Up" control
commit 4213ff556740bb45e2d9ff0f50d056c4e7dd0921 upstream. The driver has a custom put function for "DSP Voice Wake Up" which does not generate event notifications on change, instead returning 0. Since we already exit early in the case that there is no change this can be fixed by unconditionally returning 1 at the end of the function. Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220428162444.3883147-1-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/rt5514.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index 56ddab43da7e..c651cc6dddc8 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -352,7 +352,7 @@ static int rt5514_dsp_voice_wake_up_put(struct snd_kcontrol *kcontrol,
}
}
- return 0;
+ return 1;
}
static const struct snd_kcontrol_new rt5514_snd_controls[] = {