OSDN Git Service

ASoC: img-i2s-in: Add runtime PM
authorEd Blake <ed.blake@sondrel.com>
Fri, 6 Oct 2017 14:50:40 +0000 (15:50 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2017 08:43:36 +0000 (09:43 +0100)
commitf65bb92ca12e72c6ebed20dacaa75ee1f2f0735a
tree56ee5477d56a0d8ff7889618620e3b3b49975997
parent8ab7f885da23719aef1ba03f563589e44ca6ab66
ASoC: img-i2s-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-i2s-in.c