aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-15 09:56:43 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-15 09:56:43 -0500
commit326b06a8a9b09d6d9a276fd550b6b6bb138e9a47 (patch)
treeb9bdcb0bd635b91258cec09c981af2c5dcc0f683 /sound
parent92b2e81d6f95bcee386abac4c4389f5b950f7bb9 (diff)
parent9bffb1fb7c22c96d51d4ba06e2e023dd568a5872 (diff)
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-compress.c2
-rw-r--r--sound/soc/soc-pcm.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index 967d0e173e1b..5fbfb06e8083 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -113,7 +113,7 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
113 SNDRV_PCM_STREAM_PLAYBACK, 113 SNDRV_PCM_STREAM_PLAYBACK,
114 SND_SOC_DAPM_STREAM_STOP); 114 SND_SOC_DAPM_STREAM_STOP);
115 } else 115 } else
116 codec_dai->pop_wait = 1; 116 rtd->pop_wait = 1;
117 schedule_delayed_work(&rtd->delayed_work, 117 schedule_delayed_work(&rtd->delayed_work,
118 msecs_to_jiffies(rtd->pmdown_time)); 118 msecs_to_jiffies(rtd->pmdown_time));
119 } else { 119 } else {
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 5c3ca2a34661..d7711fce119b 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -334,11 +334,11 @@ static void close_delayed_work(struct work_struct *work)
334 dev_dbg(rtd->dev, "ASoC: pop wq checking: %s status: %s waiting: %s\n", 334 dev_dbg(rtd->dev, "ASoC: pop wq checking: %s status: %s waiting: %s\n",
335 codec_dai->driver->playback.stream_name, 335 codec_dai->driver->playback.stream_name,
336 codec_dai->playback_active ? "active" : "inactive", 336 codec_dai->playback_active ? "active" : "inactive",
337 codec_dai->pop_wait ? "yes" : "no"); 337 rtd->pop_wait ? "yes" : "no");
338 338
339 /* are we waiting on this codec DAI stream */ 339 /* are we waiting on this codec DAI stream */
340 if (codec_dai->pop_wait == 1) { 340 if (rtd->pop_wait == 1) {
341 codec_dai->pop_wait = 0; 341 rtd->pop_wait = 0;
342 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK, 342 snd_soc_dapm_stream_event(rtd, SNDRV_PCM_STREAM_PLAYBACK,
343 SND_SOC_DAPM_STREAM_STOP); 343 SND_SOC_DAPM_STREAM_STOP);
344 } 344 }
@@ -408,7 +408,7 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
408 SND_SOC_DAPM_STREAM_STOP); 408 SND_SOC_DAPM_STREAM_STOP);
409 } else { 409 } else {
410 /* start delayed pop wq here for playback streams */ 410 /* start delayed pop wq here for playback streams */
411 codec_dai->pop_wait = 1; 411 rtd->pop_wait = 1;
412 schedule_delayed_work(&rtd->delayed_work, 412 schedule_delayed_work(&rtd->delayed_work,
413 msecs_to_jiffies(rtd->pmdown_time)); 413 msecs_to_jiffies(rtd->pmdown_time));
414 } 414 }
@@ -480,8 +480,8 @@ static int soc_pcm_prepare(struct snd_pcm_substream *substream)
480 480
481 /* cancel any delayed stream shutdown that is pending */ 481 /* cancel any delayed stream shutdown that is pending */
482 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && 482 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
483 codec_dai->pop_wait) { 483 rtd->pop_wait) {
484 codec_dai->pop_wait = 0; 484 rtd->pop_wait = 0;
485 cancel_delayed_work(&rtd->delayed_work); 485 cancel_delayed_work(&rtd->delayed_work);
486 } 486 }
487 487