diff options
author | Jyri Sarha <jsarha@ti.com> | 2015-01-13 21:16:34 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 11:45:52 +0000 |
commit | f9911803e82a32c126c40dd6246ade2faf472cbc (patch) | |
tree | 41eeb7ff84c9627d8104b2c2dc2831aa01c09c12 /include/sound/simple_card.h | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
download | linux-f9911803e82a32c126c40dd6246ade2faf472cbc.tar.bz2 |
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/simple_card.h')
-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 { unsigned int sysclk; int slots; int slot_width; + struct clk *clk; }; struct asoc_simple_card_info { |