ASoC: mediatek: Use managed buffer allocation
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Dec 2019 17:20:18 +0000 (18:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 12 Dec 2019 15:41:13 +0000 (15:41 +0000)
commitbf523463d8c38cd92424ed011b90769c29ef99ce
tree6635d6ff1e4979f51531ef0b9c9c27d5c1f599f9
parent01fec8cce7cc68bb88b1ff55bc03da5f3e6625e3
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>
sound/soc/mediatek/common/mtk-afe-fe-dai.c
sound/soc/mediatek/common/mtk-afe-platform-driver.c
sound/soc/mediatek/common/mtk-afe-platform-driver.h
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c