]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: DAPM: Cover regression by kctl change notification fix
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Nov 2021 09:09:25 +0000 (10:09 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Nov 2021 12:58:12 +0000 (12:58 +0000)
commitb296222aa0bf2186cbcb1b8a8234c332cc5878e6
tree18373814cfba53d453feb5ea26c46959665464ef
parentd0c266292765188d41b7ed09b080550cc6c74cca
ASoC: DAPM: Cover regression by kctl change notification fix

The recent fix for DAPM to correct the kctl change notification by the
commit c95e52071ea4 ("ASoC: DAPM: Fix missing kctl change
notifications") caused other regressions since it changed the behavior
of snd_soc_dapm_set_pin() that is called from several API functions.
Formerly it returned always 0 for success, but now it returns 0 or 1.

This patch addresses it, restoring the old behavior of
snd_soc_dapm_set_pin() while keeping the fix in
snd_soc_dapm_put_pin_switch().

Fixes: c95e52071ea4 ("ASoC: DAPM: Fix missing kctl change notifications")
Reported-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20211105090925.20575-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c