]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: tas2764: Power up/down amp on mute ops
authorHector Martin <marcan@marcan.st>
Sat, 8 Feb 2025 01:03:24 +0000 (01:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:38:02 +0000 (14:38 +0200)
commitd95e6cf0df394906be8445085be7400cd353d177
treed7b48e13baac1bd1bd1bf693865eeeb235272c82
parentc1f0a98342d4cf55626bc3f3d60273b34739a6db
ASoC: tas2764: Power up/down amp on mute ops

[ Upstream commit 1c3b5f37409682184669457a5bdf761268eafbe5 ]

The ASoC convention is that clocks are removed after codec mute, and
power up/down is more about top level power management. For these chips,
the "mute" state still expects a TDM clock, and yanking the clock in
this state will trigger clock errors. So, do the full
shutdown<->mute<->active transition on the mute operation, so the amp is
in software shutdown by the time the clocks are removed.

This fixes TDM clock errors when streams are stopped.

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20250208-asoc-tas2764-v1-1-dbab892a69b5@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2764.c