Browse Source

Merge branch 'for-3.1' into for-3.2

Mark Brown 14 years ago
parent
commit
3d3106433e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      sound/soc/soc-pcm.c

+ 3 - 0
sound/soc/soc-pcm.c

@@ -288,6 +288,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
 	codec_dai->active--;
 	codec->active--;
 
+	if (!cpu_dai->active && !codec_dai->active)
+		rtd->rate = 0;
+
 	/* Muting the DAC suppresses artifacts caused during digital
 	 * shutdown, for example from stopping clocks.
 	 */