commit | 52c1f30155ad697a07ed4c9005b0b44ab15e6b56 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri Nov 05 09:09:25 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 16 02:10:46 2021 |
tree | e4e88ef36ad22d902f7edebeb219008b0228cd97 | |
parent | 454844287e24dce596e1b35316b5e5fceece18fb [diff] |
FROMGIT: ASoC: DAPM: Cover regression by kctl change notification fix The recent fix for DAPM to correct the kctl change notification by the commit 5af82c81b2c4 ("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: 5af82c81b2c4 ("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> (cherry picked from commit 827b0913a9d9d07a0c3e559dbb20ca4d6d285a54 https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next) BUG=b:205016478 TEST=Verified the speaker works on atlas Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org> Change-Id: Iaf9dbbfcc5924d993e11c20c937d21e241b12392 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3267608 Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> (cherry picked from commit ad161d449644218c42f532947f953a3c88c21468) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3276373 Reviewed-by: Radoslaw Biernacki <biernacki@google.com>