Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 89cc889a authored by Xiaoyu Ye's avatar Xiaoyu Ye Committed by Meng Wang
Browse files

asoc: wcd-spi: use CMA memory for TX and RX buffer instead of kzalloc



In wcd-spi driver, the kzalloc is used to allocate memory for TX and
RX buffer. Those allocations are order4 or order5, which could fail
on some kernels. To avoid potential memory allocation failure, the CMA
region is used for those allocations by dma_alloc_coherent API.

Change-Id: I0a4d6c6b5e0e47f96187563272e63c3a006e469f
Signed-off-by: default avatarXiaoyu Ye <benyxy@codeaurora.org>
parent 8766446f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment