summaryrefslogtreecommitdiff
path: root/sound/soc/meson/aiu-fifo-spdif.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2020-12-18 16:45:44 +0100
committerMark Brown <broonie@kernel.org>2020-12-28 12:24:46 +0000
commite05cde84eabccc0441f837f0661cd4c6f4820513 (patch)
treeff754023c641b8c3841ba483ca5aee2be3ba4777 /sound/soc/meson/aiu-fifo-spdif.c
parent57fc2bbc62ef9d505e8732acbae0d6b5c59836cd (diff)
downloadlwn-e05cde84eabccc0441f837f0661cd4c6f4820513.tar.gz
lwn-e05cde84eabccc0441f837f0661cd4c6f4820513.zip
ASoC: meson: Use managed DMA buffer allocation
Using a managed buffer will pre-allocate the buffer using snd_pcm_lib_preallocate_pages() and automatically free it when the PCM is destroyed. In addition it will call snd_pcm_lib_malloc_pages() before the driver's hw_params() callback and snd_pcm_lib_free_pages() after the driver's hw_free() callback. This slightly reduces the boilerplate code of the driver. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Jerome Brunet <jbrunet@baylibre.com> Tested-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20201218154544.25513-1-lars@metafoo.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/aiu-fifo-spdif.c')
-rw-r--r--sound/soc/meson/aiu-fifo-spdif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/meson/aiu-fifo-spdif.c b/sound/soc/meson/aiu-fifo-spdif.c
index 44eb6faacf44..2fb30f89bf7a 100644
--- a/sound/soc/meson/aiu-fifo-spdif.c
+++ b/sound/soc/meson/aiu-fifo-spdif.c
@@ -158,7 +158,6 @@ const struct snd_soc_dai_ops aiu_fifo_spdif_dai_ops = {
.trigger = fifo_spdif_trigger,
.prepare = fifo_spdif_prepare,
.hw_params = fifo_spdif_hw_params,
- .hw_free = aiu_fifo_hw_free,
.startup = aiu_fifo_startup,
.shutdown = aiu_fifo_shutdown,
};