All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: dapm: Don't fold register value changes into notifications
@ 2022-04-28 16:18 Mark Brown
  2022-05-03 15:50 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2022-04-28 16:18 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: alsa-devel, Mark Brown

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>
---
 sound/soc/soc-dapm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index ca917a849c42..869c76506b66 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3437,7 +3437,6 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol,
 			update.val = val;
 			card->update = &update;
 		}
-		change |= reg_change;
 
 		ret = soc_dapm_mixer_update_power(card, kcontrol, connect,
 						  rconnect);
@@ -3539,7 +3538,6 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol,
 			update.val = val;
 			card->update = &update;
 		}
-		change |= reg_change;
 
 		ret = soc_dapm_mux_update_power(card, kcontrol, item[0], e);
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: dapm: Don't fold register value changes into notifications
  2022-04-28 16:18 [PATCH] ASoC: dapm: Don't fold register value changes into notifications Mark Brown
@ 2022-05-03 15:50 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-05-03 15:50 UTC (permalink / raw)
  To: broonie, lgirdwood; +Cc: alsa-devel

On Thu, 28 Apr 2022 17:18:32 +0100, Mark Brown wrote:
> 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: dapm: Don't fold register value changes into notifications
      commit: ad685980469b9f9b99d4d6ea05f4cb8f57cb2234

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-03 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 16:18 [PATCH] ASoC: dapm: Don't fold register value changes into notifications Mark Brown
2022-05-03 15:50 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.