]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMark Brown <broonie@kernel.org>
Sun, 16 Feb 2025 23:51:26 +0000 (23:51 +0000)
commit1c3b5f37409682184669457a5bdf761268eafbe5
treec0901b8cd4dac0d9e2a805123e6b5fc5979092c7
parent0ad2507d5d93f39619fc42372c347d6006b64319
ASoC: tas2764: Power up/down amp on mute ops

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>
sound/soc/codecs/tas2764.c