ASoC: fsl_spdif: Add pm runtime function
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 19 Jun 2020 07:54:33 +0000 (15:54 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 19 Jun 2020 11:07:00 +0000 (12:07 +0100)
commit9cb2b3796e083169b368a7add19faec1750ad998
treec10743797d531c66a288b785f027c20b260cab8a
parent3499f9ad5d78375856f692ae86e9f5fc50a08993
ASoC: fsl_spdif: Add pm runtime function

Add pm runtime support and move clock handling there.
Close the clocks at suspend to reduce the power consumption.

fsl_spdif_suspend is replaced by pm_runtime_force_suspend.
fsl_spdif_resume is replaced by pm_runtime_force_resume.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/579c0d71e976f34f23f40daa9f1aa06c4baca2f1.1592552389.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c