aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-08 15:10:56 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-09 05:42:55 -0500
commitb5d1d036eadb30996184cc335c798219dd5922a9 (patch)
tree5e720760cf7f180e46fd6b4c804da38b99bf7f39 /sound/soc/soc-pcm.c
parent4c6c0b5eee572a24345fdd1fac6aa670cc937a3a (diff)
ASoC: pcm: If pmdown_time is zero then shut down DAPM immediately
Since we've already got logic to special case immediate teardown of the stream we may as well use it if the pmdown_time has been set to zero by the application layer instead of scheduling a work item with zero delay. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 121318defea3..15816eccad34 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -369,7 +369,7 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
369 cpu_dai->runtime = NULL; 369 cpu_dai->runtime = NULL;
370 370
371 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 371 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
372 if (codec->ignore_pmdown_time || 372 if (!rtd->pmdown_time || codec->ignore_pmdown_time ||
373 rtd->dai_link->ignore_pmdown_time) { 373 rtd->dai_link->ignore_pmdown_time) {
374 /* powered down playback stream now */ 374 /* powered down playback stream now */
375 snd_soc_dapm_stream_event(rtd, 375 snd_soc_dapm_stream_event(rtd,