summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_spdif.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-11-22 15:46:20 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:54:25 +0800
commitc7dad700c4263b990ded932d5524e4307100546c (patch)
tree622b48928391d351a7b6e3a7e9ac4d5502317b54 /sound/soc/fsl/fsl_spdif.c
parentbd7b26036e8793d7fb915da6206706e3e6620ffa (diff)
LF-106: ASoC: fsl_spdif: request BUS_FREQ_HIGH
request BUS_FREQ_HIGH Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_spdif.c')
-rw-r--r--sound/soc/fsl/fsl_spdif.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 3ae6dd089ce4..77901da5b8d8 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -19,6 +19,7 @@
#include <linux/regmap.h>
#include <linux/pm_runtime.h>
#include <linux/pm_domain.h>
+#include <linux/busfreq-imx.h>
#include <sound/asoundef.h>
#include <sound/dmaengine_pcm.h>
@@ -1561,6 +1562,8 @@ static int fsl_spdif_runtime_resume(struct device *dev)
goto disable_spba_clk;
}
+ request_bus_freq(BUS_FREQ_HIGH);
+
regcache_cache_only(spdif_priv->regmap, false);
regcache_mark_dirty(spdif_priv->regmap);
@@ -1595,6 +1598,8 @@ static int fsl_spdif_runtime_suspend(struct device *dev)
&spdif_priv->regcache_srpc);
regcache_cache_only(spdif_priv->regmap, true);
+ release_bus_freq(BUS_FREQ_HIGH);
+
for (i = 0; i < STC_TXCLK_SRC_MAX; i++)
clk_disable_unprepare(spdif_priv->txclk[i]);