diff options
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 5ca8e0217126..b8d7b08b9b0a 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -23,6 +23,7 @@ #include <linux/mfd/syscon.h> #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> #include <linux/pm_runtime.h> +#include <linux/busfreq-imx.h> #include "fsl_dsd.h" #include "fsl_sai.h" @@ -1558,6 +1559,8 @@ static int fsl_sai_runtime_suspend(struct device *dev) regcache_cache_only(sai->regmap, true); + release_bus_freq(BUS_FREQ_AUDIO); + if (sai->mclk_streams & BIT(SNDRV_PCM_STREAM_CAPTURE)) clk_disable_unprepare(sai->mclk_clk[sai->mclk_id[0]]); @@ -1599,6 +1602,8 @@ static int fsl_sai_runtime_resume(struct device *dev) goto disable_tx_clk; } + request_bus_freq(BUS_FREQ_AUDIO); + if (sai->soc->flags & SAI_FLAG_PMQOS) pm_qos_add_request(&sai->pm_qos_req, PM_QOS_CPU_DMA_LATENCY, 0); |