diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-12-11 18:20:18 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-12 15:41:13 +0000 |
commit | bf523463d8c38cd92424ed011b90769c29ef99ce (patch) | |
tree | 6635d6ff1e4979f51531ef0b9c9c27d5c1f599f9 /sound/soc/mediatek/mt8183 | |
parent | 01fec8cce7cc68bb88b1ff55bc03da5f3e6625e3 (diff) |
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')
-rw-r--r-- | sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 1 |
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) |