Home
last modified time | relevance | path

Searched hist:"22 eee4d3efe370fedf71ee6a9e4dead3f32ad461" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/atmel/
H A Datmel-pcm-pdc.cdiff 22eee4d3efe370fedf71ee6a9e4dead3f32ad461 Wed Jan 06 07:36:48 CST 2021 Lars-Peter Clausen <lars@metafoo.de> ASoC: atmel-pdc: Use managed DMA buffer allocation

Instead of manually managing its DMA buffers using
dma_{alloc,free}_coherent() lets the sound core take care of this using
managed buffers.

On one hand this reduces the amount of boiler plate code, but the main
motivation for the change is to use the shared code where possible. This
makes it easier to argue about correctness and that the code does not
contain subtle bugs like data leakage or similar.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20210106133650.13509-1-lars@metafoo.de
Signed-off-by: Mark Brown <broonie@kernel.org>