Merge branch 'for-3.1' into for-3.2
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Aug 2011 07:34:05 +0000 (16:34 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Aug 2011 07:34:05 +0000 (16:34 +0900)
sound/soc/soc-pcm.c

index 1347584..1aee9fc 100644 (file)
@@ -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.
         */