aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/omap-abe-dsp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-abe-dsp.c b/sound/soc/omap/omap-abe-dsp.c
index c4c8e45..04e0f4c 100644
--- a/sound/soc/omap/omap-abe-dsp.c
+++ b/sound/soc/omap/omap-abe-dsp.c
@@ -2288,7 +2288,6 @@ static int aess_close(struct snd_pcm_substream *substream)
struct snd_soc_dai *dai = rtd->cpu_dai;
mutex_lock(&abe->mutex);
- aess_set_runtime_opp_level(abe);
dev_dbg(dai->dev, "%s: %s\n", __func__, dai->name);
@@ -2296,6 +2295,10 @@ static int aess_close(struct snd_pcm_substream *substream)
abe_disable_irq();
aess_save_context(abe);
abe_dsp_shutdown();
+ } else {
+ /* Only scale OPP level
+ * if ABE is still active */
+ aess_set_runtime_opp_level(abe);
}
pm_runtime_put_sync(abe->dev);