snd_soc_runtime_deactivate(rtd, substream->stream);
- for_each_rtd_cpu_dai(rtd, i, cpu_dai)
- snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream);
-
for_each_rtd_cpu_dai(rtd, i, cpu_dai)
snd_soc_dai_shutdown(cpu_dai, substream);
substream->stream);
}
+ for_each_rtd_cpu_dai(rtd, i, cpu_dai) {
+ int active = cpu_dai->stream_active[substream->stream];
+
+ if (active == 1)
+ snd_soc_dai_digital_mute(cpu_dai, 1,
+ substream->stream);
+ }
+
/* free any machine hw params */
soc_rtd_hw_free(rtd, substream);