aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGilles-Arnaud Bleu-Laine <gilles@ti.com>2011-09-21 01:24:14 -0500
committerSimon Wilson <simonwilson@google.com>2011-09-21 17:28:33 -0700
commitc5d50db03d56aa91efaf3f78e9b4bc9356edebdb (patch)
treece1271c3b4244ee9d794eccfbea69f5141aca2ce /sound
parentf4665fb762f68f92c28417cd25a65341930c0afb (diff)
downloadkernel_samsung_tuna-c5d50db03d56aa91efaf3f78e9b4bc9356edebdb.zip
kernel_samsung_tuna-c5d50db03d56aa91efaf3f78e9b4bc9356edebdb.tar.gz
kernel_samsung_tuna-c5d50db03d56aa91efaf3f78e9b4bc9356edebdb.tar.bz2
ASoc: ABE DSP: Avoid OPP scaling before ABE shutdown
There is no need to set OPP level when ABE is about to shutdown. Only scale it when ABE is still active. Change-Id: Ic42883fd6bd916c8a144dcb3c8e3a10ef1c65880 Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
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);