]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68c475848ac868d1dcadacd075a68fbd395cc8d7
tree6635d6ff1e4979f51531ef0b9c9c27d5c1f599f9
parent06285c754e7315c3708571dd5e9ce1e8eb33f0dc
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