mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
97bf6af1f9
commit
f9911803e8
3 changed files with 40 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ struct asoc_simple_dai {
|
|||
unsigned int sysclk;
|
||||
int slots;
|
||||
int slot_width;
|
||||
struct clk *clk;
|
||||
};
|
||||
|
||||
struct asoc_simple_card_info {
|
||||
|
|
|
|||
Loading…
Reference in a new issue