diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2011-05-31 09:23:11 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:04:42 +0100 |
commit | 89f5d16d635ec734f94ace69491f968ff3b7c902 (patch) | |
tree | 5fecf365d373f5fbb782c56f4507c51a86321c56 /sound | |
parent | a59e629944d4376c0d1bed1443de7172330593e2 (diff) |
ASoC: McPDM: Balance pm_runtime counter for invalid stream
When playback stream is not started (e.g. parameters not supported,
file doesn't exist, etc), pm_runtime resource is never acquired as
hw_params for McPDM never gets executed. In that scenario, during
stream shutdown pm_runtime resource should not be released otherwise
it unbalances usage counter.
Change-Id: I2da9931f5e5adf3656218de3baabb9c4a1982382
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/omap/omap-mcpdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index 3eff7d62ae5..0dba7f0dc12 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c @@ -737,8 +737,8 @@ static void playback_abe_work(struct work_struct *work) omap_mcpdm_stop(mcpdm, SNDRV_PCM_STREAM_PLAYBACK); omap_mcpdm_playback_close(mcpdm, mcpdm->downlink); abe_dsp_mcpdm_shutdown(); + abe_dsp_pm_put(); } - abe_dsp_pm_put(); mutex_unlock(&mcpdm->mutex); if (!mcpdm->free && !mcpdm->ul_active) |