aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-09-20 03:14:04 -0400
committerTakashi Iwai <tiwai@suse.de>2011-09-20 03:14:04 -0400
commit290b421f699463478d215c17cd6be52d78e16976 (patch)
tree27a2a4555feed1adc9b0ada4e746b13298f3ce67 /sound/soc/soc-pcm.c
parent356aab7d419822f413af5fe1bc47af40957a23fb (diff)
parent46724c2e023cb7ba5cd5000dee6481f0a15ebed9 (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index b5759397afa3..2879c883eebc 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -290,6 +290,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
290 codec_dai->active--; 290 codec_dai->active--;
291 codec->active--; 291 codec->active--;
292 292
293 if (!cpu_dai->active && !codec_dai->active)
294 rtd->rate = 0;
295
293 /* Muting the DAC suppresses artifacts caused during digital 296 /* Muting the DAC suppresses artifacts caused during digital
294 * shutdown, for example from stopping clocks. 297 * shutdown, for example from stopping clocks.
295 */ 298 */