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 /Documentation/devicetree | |
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 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/sound/simple-card.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt index c3cba600bf11..73bf314f7240 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-card.txt | |||
@@ -75,6 +75,11 @@ Optional CPU/CODEC subnodes properties: | |||
75 | it can be specified via "clocks" if system has | 75 | it can be specified via "clocks" if system has |
76 | clock node (= common clock), or "system-clock-frequency" | 76 | clock node (= common clock), or "system-clock-frequency" |
77 | (if system doens't support common clock) | 77 | (if system doens't support common clock) |
78 | If a clock is specified, it is | ||
79 | enabled with clk_prepare_enable() | ||
80 | in dai startup() and disabled with | ||
81 | clk_disable_unprepare() in dai | ||
82 | shutdown(). | ||
78 | 83 | ||
79 | Example 1 - single DAI link: | 84 | Example 1 - single DAI link: |
80 | 85 | ||