summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-11-22 15:36:31 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:54:12 +0800
commit801e2a74c50fdd15c6614e184161c8d0efb6e76b (patch)
treee33b049911544c463834ee1b256812fa353bade4 /sound/soc/fsl/fsl_sai.c
parent61e5cc7288958b3718dea71470b8cbc33a3df840 (diff)
LF-106: ASoC: fsl_sai: request BUS_FREQ_AUDIO
request BUS_FREQ_AUDIO Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c5
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);