Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270879
b: refs/heads/master
c: 1d69c5c
h: refs/heads/master
i:
  270877: b3b47f2
  270875: 1988d4c
  270871: 8e6e782
  270863: 895c755
  270847: abf67a1
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Oct 14, 2011
1 parent 6e3dbcf commit 45bceef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a0e67b68701d73b2252bd73f7fd49c54aea1e58
refs/heads/master: 1d69c5c5de32c355667c105a5fac85c8043128e6
1 change: 1 addition & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ struct snd_soc_codec {

/* dapm */
struct snd_soc_dapm_context dapm;
unsigned int ignore_pmdown_time:1; /* pmdown_time is ignored at stop */

#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_codec_root;
Expand Down
15 changes: 11 additions & 4 deletions trunk/sound/soc/soc-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,17 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
cpu_dai->runtime = NULL;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
/* start delayed pop wq here for playback streams */
codec_dai->pop_wait = 1;
schedule_delayed_work(&rtd->delayed_work,
msecs_to_jiffies(rtd->pmdown_time));
if (unlikely(codec->ignore_pmdown_time)) {
/* powered down playback stream now */
snd_soc_dapm_stream_event(rtd,
codec_dai->driver->playback.stream_name,
SND_SOC_DAPM_STREAM_STOP);
} else {
/* start delayed pop wq here for playback streams */
codec_dai->pop_wait = 1;
schedule_delayed_work(&rtd->delayed_work,
msecs_to_jiffies(rtd->pmdown_time));
}
} else {
/* capture streams can be powered down now */
snd_soc_dapm_stream_event(rtd,
Expand Down

0 comments on commit 45bceef

Please sign in to comment.