ASoC: sun8i-codec: Manage module clock via DAPM
authorSamuel Holland <samuel@sholland.org>
Mon, 31 Aug 2020 03:48:52 +0000 (22:48 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 7 Sep 2020 13:00:02 +0000 (14:00 +0100)
commit6b3bb3c82b94521d6d61c1bf7c766c8c3bddacf5
tree364a0d95a2736223e18fea2a0523c45fd1822a95
parentefb736fb9eceac6ce335bbaa3d788a05649160b5
ASoC: sun8i-codec: Manage module clock via DAPM

By representing the module clock as a DAPM widget, we ensure that the
clock is only enabled when the module is actually in use, without
additional code in runtime PM hooks.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20200831034852.18841-10-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c