Skip to content

Commit 3425dda

Browse files
committed
ASoC: mt6358: Fix event generation for wake on voice stage 2 switch
ALSA control put() operations should return 0 if the value changed so that events can be generated appropriately for userspace but the custom control for wake on voice stage 2 doesn't do this, fix it. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230224-asoc-mt6358-quick-fixes-v1-1-747d9186be4b@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fb1847c commit 3425dda

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sound/soc/codecs/mt6358.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,8 @@ static int mt6358_put_wov(struct snd_kcontrol *kcontrol,
567567
mt6358_disable_wov_phase2(priv);
568568

569569
priv->wov_enabled = enabled;
570+
571+
return 1;
570572
}
571573

572574
return 0;

0 commit comments

Comments
 (0)