]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: dapm: Don't fold register value changes into notifications
authorMark Brown <broonie@kernel.org>
Thu, 28 Apr 2022 16:18:32 +0000 (17:18 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:23:44 +0000 (09:23 +0200)
commitc3c67e7ecd8471338f0594396e63f0ba0a2d56cc
treed933a1de68b16e9682d06a3d98ddc5d21877a3d1
parentbb0d461749aa4f46231cf30e5e33bd5e231d7489
ASoC: dapm: Don't fold register value changes into notifications

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit ad685980469b9f9b99d4d6ea05f4cb8f57cb2234 ]

DAPM tracks and reports the value presented to the user from DAPM controls
separately to the register value, these may diverge during initialisation
or when an autodisable control is in use.

When writing DAPM controls we currently report that a change has occurred
if either the DAPM value or the value stored in the register has changed,
meaning that if the two are out of sync we may appear to report a spurious
event to userspace. Since we use this folded in value for nothing other
than the value reported to userspace simply drop the folding in of the
register change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220428161833.3690050-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/soc/soc-dapm.c