]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:26 +0000 (09:25 +0200)
BugLink: https://bugs.launchpad.net/bugs/1981864
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/soc/codecs/rt5514.c

index 4b1ad5054e8d1542ce300bd79c0c4a1c194f8ae7..c011bd04153ae290abe256fad2c93850fad64745 100644 (file)
@@ -419,7 +419,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[] = {