]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: kirkwood: Use managed DMA buffer allocation
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 6 Jan 2021 13:36:50 +0000 (14:36 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 13 Jan 2021 11:36:16 +0000 (11:36 +0000)
commit307ebce29d2b35f79af20ac60a8195ee8cfc8411
tree95258faa402937d105514645a236c8e874ff22b3
parent12cf77f1896dabaeec0ad8730f9a6a451815b2cb
ASoC: kirkwood: 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>
Link: https://lore.kernel.org/r/20210106133650.13509-3-lars@metafoo.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/kirkwood/kirkwood-dma.c