6 Jan
2021
6 Jan
'21
6:27 p.m.
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@metafoo.de
Reviewed-by: Codrin Ciubotariu codrin.ciubotariu@microchip.com
Thanks!