]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2562: Fix mute/unmute
authorMartin Povišer <povik+lin@cutebit.org>
Thu, 25 Aug 2022 14:22:26 +0000 (16:22 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 12:09:10 +0000 (13:09 +0100)
commit4a008c8369d129ead29e2d8d97faf1406ac65ca0
treedadf318dbb22c99bc7886cb0460c1d4be970c4d0
parentb93476b6eb76bd86727bf3033d09aff59b487d25
ASoC: tas2562: Fix mute/unmute

Because the PWR_CTRL field is modeled as the power state of the DAC
widget, and at the same time it is used to implement mute/unmute, we
need some additional book-keeping to have the right end result no matter
the sequence of calls. Without this fix, one permanently mutes an
ongoing stream by toggling the associated speaker pin control.

(This mirrors commit d52f46346c89 ("ASoC: tas2770: Fix handling of
mute/unmute") which was a fix to the tas2770 driver.)

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220825142226.80929-3-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c