ASoC: simple-card: Enable and disable DAI clocks as needed
authorJyri Sarha <jsarha@ti.com>
Tue, 13 Jan 2015 19:16:34 +0000 (21:16 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jan 2015 11:45:52 +0000 (11:45 +0000)
commitf9911803e82a32c126c40dd6246ade2faf472cbc
tree41eeb7ff84c9627d8104b2c2dc2831aa01c09c12
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: simple-card: Enable and disable DAI clocks as needed

Call clk_prepare_enable() and clk_disable_unprepare() for cpu dai
clock and codec dai clock in dai statup and shutdown callbacks. This
to make sure the related clock are enabled when the audio device is
used.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/simple-card.txt
include/sound/simple_card.h
sound/soc/generic/simple-card.c