ASoC: DAPM: Fix missing kctl change notifications
authorTakashi Iwai <tiwai@suse.de>
Wed, 6 Oct 2021 14:17:12 +0000 (16:17 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:12 +0000 (15:45 +0100)
commit5af82c81b2c49cfb1cad84d9eb6eab0e3d1c4842
treebe0eb32169f15b27fbb4b2524fd8ba66ec7cd642
parentc25d4546ca452b2e8c03bc735e4c65bc6dd751dd
ASoC: DAPM: Fix missing kctl change notifications

The put callback of a kcontrol is supposed to return 1 when the value
is changed, and this will be notified to user-space.  However, some
DAPM kcontrols always return 0 (except for errors), hence the
user-space misses the update of a control value.

This patch corrects the behavior by properly returning 1 when the
value gets updated.

Reported-and-tested-by: Hans de Goede <hdegoede@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20211006141712.2439-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c