ASoC: img-spdif-in: Add runtime PM
authorEd Blake <ed.blake@sondrel.com>
Fri, 6 Oct 2017 14:53:55 +0000 (15:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2017 08:43:47 +0000 (09:43 +0100)
commit1fac824f0c4fe05924243830fa3b44a5ad0869c7
tree8003caf05b125672fd397da131d229bd4a14b98a
parent52eb0ed3ec62d1f22f71332aa2e2de84a0a6c756
ASoC: img-spdif-in: Add runtime PM

Add runtime PM to disable the clock when the device is not in use.
The ASoC core takes care of the pm_runtime_get_sync / put calls so we
just need to provide runtime_suspend / runtime_resume functions and
enable runtime PM.

Signed-off-by: Ed Blake <ed.blake@sondrel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-spdif-in.c