]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2764: Fix mute/unmute
authorMartin Povišer <povik+lin@cutebit.org>
Thu, 25 Aug 2022 14:02:39 +0000 (16:02 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 25 Aug 2022 16:59:58 +0000 (17:59 +0100)
commit817170234b3a9910ddd905e346e22f18626e93dc
treed190667e52909a35de96b506dcf357903e513aff
parentbc16c6dab399040a3a0686488c1c64bc1e70aa45
ASoC: tas2764: 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.)

Fixes: b3c709a3060c ("ASoC: tas2764: Add the driver for the TAS2764")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220825140241.53963-4-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2764.c