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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@xxxxxxxxxxxxx>

Thanks!




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux