diff options
author | Jyri Sarha <jsarha@ti.com> | 2015-01-13 14:16:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:45:52 -0500 |
commit | f9911803e82a32c126c40dd6246ade2faf472cbc (patch) | |
tree | 41eeb7ff84c9627d8104b2c2dc2831aa01c09c12 /include/sound | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/simple_card.h b/include/sound/simple_card.h index 9b0ac77177b6..1255ddb1d3e2 100644 --- a/include/sound/simple_card.h +++ b/include/sound/simple_card.h | |||
@@ -20,6 +20,7 @@ struct asoc_simple_dai { | |||
20 | unsigned int sysclk; | 20 | unsigned int sysclk; |
21 | int slots; | 21 | int slots; |
22 | int slot_width; | 22 | int slot_width; |
23 | struct clk *clk; | ||
23 | }; | 24 | }; |
24 | 25 | ||
25 | struct asoc_simple_card_info { | 26 | struct asoc_simple_card_info { |