diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-25 09:57:45 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-25 14:22:13 +0100 |
commit | 0e532c99b468d6e4fc4e1d29b45ffe2749db6d07 (patch) | |
tree | 1b3a3e0b68f2b079269d825fb65268f674b0fa29 /sound/soc/soc-compress.c | |
parent | 9ab711cb84d4b77fb3929fabc5e3756d5010af14 (diff) | |
download | linux-0e532c99b468d6e4fc4e1d29b45ffe2749db6d07.tar.gz linux-0e532c99b468d6e4fc4e1d29b45ffe2749db6d07.tar.bz2 linux-0e532c99b468d6e4fc4e1d29b45ffe2749db6d07.zip |
ASoC: soc-link: add snd_soc_link_compr_shutdown()
dai_link related function should be implemented at soc-link.c.
This patch adds snd_soc_link_compr_shutdown().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/87tv043k6u.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-compress.c')
-rw-r--r-- | sound/soc/soc-compress.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index ddc6c6f69d2f..327bec052954 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -227,8 +227,7 @@ static int soc_compr_free(struct snd_compr_stream *cstream) if (!snd_soc_dai_active(codec_dai)) codec_dai->rate = 0; - if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->shutdown) - rtd->dai_link->compr_ops->shutdown(cstream); + snd_soc_link_compr_shutdown(cstream); soc_compr_components_free(cstream, NULL); @@ -283,8 +282,7 @@ static int soc_compr_free_fe(struct snd_compr_stream *cstream) fe->dpcm[stream].runtime = NULL; - if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->shutdown) - fe->dai_link->compr_ops->shutdown(cstream); + snd_soc_link_compr_shutdown(cstream); soc_compr_components_free(cstream, NULL); |