]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - sound/soc/soc-compress.c
ASoC: Handle ignore_pmdown_time for CODEC to CODEC links
[mirror_ubuntu-zesty-kernel.git] / sound / soc / soc-compress.c
index 5e9690c85d8f5c9afc248830ce6007d0890f19dc..ef585af4081b0b83d4b9471bee097df4673071e9 100644 (file)
@@ -235,8 +235,7 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
        cpu_dai->runtime = NULL;
 
        if (cstream->direction == SND_COMPRESS_PLAYBACK) {
-               if (!rtd->pmdown_time || codec->ignore_pmdown_time ||
-                   rtd->dai_link->ignore_pmdown_time) {
+               if (snd_soc_runtime_ignore_pmdown_time(rtd)) {
                        snd_soc_dapm_stream_event(rtd,
                                        SNDRV_PCM_STREAM_PLAYBACK,
                                        SND_SOC_DAPM_STREAM_STOP);