]> 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:40:14 +0000 (14:40 +0200)
commit4ffaac5e218cc68873e6088e4813af183c55c5f2
tree1c84ef2623fafcd1acfbe0b5e68040eff7079918
parentec3a91e22b182f4a02edf715eba5290826e832fe
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