From d22dff4237ac04b9c2f22a47c2a1c372fd2e9634 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 17 Aug 2011 09:20:01 +0200 Subject: [PATCH] --- yaml --- r: 263364 b: refs/heads/master c: 25b7679136fd85b1e5197e36a0ca126163e89590 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-pcm.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0c93449fccf9..b351314edb8e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0cc62e926324d4f3bd02d378baafbe73164fca35 +refs/heads/master: 25b7679136fd85b1e5197e36a0ca126163e89590 diff --git a/trunk/sound/soc/soc-pcm.c b/trunk/sound/soc/soc-pcm.c index b5759397afa3..2879c883eebc 100644 --- a/trunk/sound/soc/soc-pcm.c +++ b/trunk/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. */