]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: DAPM: Fix missing kctl change notifications
authorTakashi Iwai <tiwai@suse.de>
Wed, 6 Oct 2021 14:17:12 +0000 (16:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 07:54:27 +0000 (09:54 +0200)
commit67657e1ca5053b14689eb4ff13c95d2236bba0a5
tree30da4b0619296525043c623895e197cb72a44dde
parente8d65f14992043bcb56000d111c49f46198a0d21
ASoC: DAPM: Fix missing kctl change notifications

commit 5af82c81b2c49cfb1cad84d9eb6eab0e3d1c4842 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c