OSDN Git Service

ASoC: sun50i-codec-analog: Gate the amplifier clock during suspend
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 02:53:28 +0000 (21:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 15:19:12 +0000 (16:19 +0100)
commit9b7612bb75e50acc55d2143cadb8057a6721d9c7
tree644b61d943fda886c1885f53bec907a36a43ada5
parentad5b7f69a09b6784f6fc263d7c0fffdda947a8ce
ASoC: sun50i-codec-analog: Gate the amplifier clock during suspend

The clock must be running for the zero-crossing mute functionality.
However, it must be gated for VDD-SYS to be turned off during system
suspend. Disable it in the suspend callback, after everything has
already been muted, to avoid pops when muting/unmuting outputs.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200726025334.59931-3-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-codec-analog.c