ASoC: rt5514: Fix event generation for "DSP Voice Wake Up" control
authorMark Brown <broonie@kernel.org>
Thu, 28 Apr 2022 16:24:44 +0000 (17:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:21:27 +0000 (10:21 +0200)
commit8f1bc0edf53c8a964a9b73019c4ba5f977956271
tree5736e51a9916f39b2852ee50adfaf8d43d3acd14
parent769ec2a824deae2f1268dfda14999a4d14d0d0c5
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>
sound/soc/codecs/rt5514.c