X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Fsoc%2Fsoc-pcm.c;h=2879c883eebc2161d0c1ff3fdc14e764cde9ac33;hp=b5759397afa342a89fe494b51d2d97e2a0d3e346;hb=882aba01052476cbe3cd7339a3e6784b2437f18d;hpb=f48d1915b86f06a943087e5f9b29542a1ef4cd4d 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) 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. */