Home
last modified time | relevance | path

Searched hist:e05cde84eabccc0441f837f0661cd4c6f4820513 (Results 1 – 3 of 3) sorted by relevance

/linux/sound/soc/meson/
H A Daiu-fifo-spdif.cdiff e05cde84eabccc0441f837f0661cd4c6f4820513 Fri Dec 18 16:45:44 CET 2020 Lars-Peter Clausen <lars@metafoo.de> 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>
H A Daiu-fifo-i2s.cdiff e05cde84eabccc0441f837f0661cd4c6f4820513 Fri Dec 18 16:45:44 CET 2020 Lars-Peter Clausen <lars@metafoo.de> 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>
H A Daiu-fifo.cdiff e05cde84eabccc0441f837f0661cd4c6f4820513 Fri Dec 18 16:45:44 CET 2020 Lars-Peter Clausen <lars@metafoo.de> 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>