aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-11 18:20:18 +0100
committerMark Brown <broonie@kernel.org>2019-12-12 15:41:13 +0000
commitbf523463d8c38cd92424ed011b90769c29ef99ce (patch)
tree6635d6ff1e4979f51531ef0b9c9c27d5c1f599f9 /sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
parentASoC: Drop snd_soc_pcm_lib_ioctl() (diff)
downloadlinux-dev-bf523463d8c38cd92424ed011b90769c29ef99ce.tar.xz
linux-dev-bf523463d8c38cd92424ed011b90769c29ef99ce.zip
ASoC: mediatek: Use managed buffer allocation
Clean up the drivers with the new managed buffer allocation API. The superfluous snd_pcm_lib_malloc_pages() and snd_pcm_lib_free_pages() calls are dropped, as well as the superfluous snd_pcm_lib_preallocate_free_for_all() call. As of the result, hw_free and pcm_destruct ops became empty and got removed. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20191211172019.23206-1-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8183/mt8183-afe-pcm.c')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-afe-pcm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
index f6a0fadeb3cc..6e2270bbb10e 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
@@ -1052,7 +1052,6 @@ static const struct snd_soc_component_driver mt8183_afe_component = {
.probe = mt8183_afe_component_probe,
.pointer = mtk_afe_pcm_pointer,
.pcm_construct = mtk_afe_pcm_new,
- .pcm_destruct = mtk_afe_pcm_free,
};
static int mt8183_dai_memif_register(struct mtk_base_afe *afe)