diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 1347584d64dfc69aa176f8fe50a043683274d66f..1aee9fcdf650ade07e17f537ea7861e78e3c1cd5 100644 --- a/sound/soc/soc-pcm.c +++ b/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. */