Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283661
b: refs/heads/master
c: e50fad4
h: refs/heads/master
i:
  283659: acb5ee3
v: v3
  • Loading branch information
ramesh.babu@linux.intel.com authored and Mark Brown committed Oct 27, 2011
1 parent 43eeb84 commit 66e46e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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: 9c173d15f99ef182ac4b27e3e03779026d8e6cf1
refs/heads/master: e50fad4f029c36ed85a71fe7413684cfd3c7d78c
3 changes: 3 additions & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,9 @@ struct snd_soc_dai_link {
/* Symmetry requirements */
unsigned int symmetric_rates:1;

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

/* codec/machine specific init - e.g. add machine controls */
int (*init)(struct snd_soc_pcm_runtime *rtd);

Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/soc/soc-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
cpu_dai->runtime = NULL;

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
if (unlikely(codec->ignore_pmdown_time)) {
if (unlikely(codec->ignore_pmdown_time ||
rtd->dai_link->ignore_pmdown_time)) {
/* powered down playback stream now */
snd_soc_dapm_stream_event(rtd,
codec_dai->driver->playback.stream_name,
Expand Down

0 comments on commit 66e46e6

Please sign in to comment.