[PATCH 1/3] ASoC: atmel-pdc: Use managed DMA buffer allocation

Codrin.Ciubotariu at microchip.com Codrin.Ciubotariu at microchip.com
Wed Jan 6 18:27:39 CET 2021


On 06.01.2021 15:36, Lars-Peter Clausen wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> 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 at metafoo.de>

Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu at microchip.com>

Thanks!


More information about the Alsa-devel mailing list