diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2019-04-12 14:40:17 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-06 22:48:03 +0900 |
commit | 1587a061ef562de0d97c82a95863e191bcd69d63 (patch) | |
tree | 28c61360f6669210b7483213c283f2c44f1fd2c6 /lib/test_firmware.c | |
parent | 16ec5dfe0327ddcf279957bffe4c8fe527088c63 (diff) | |
download | linux-1587a061ef562de0d97c82a95863e191bcd69d63.tar.bz2 |
ASoC: sprd: Add reserved DMA memory support
For Spreadtrum audio platform driver, it need allocate a larger DMA buffer
dynamically to copy audio data between userspace and kernel space, but that
will increase the risk of memory allocation failure especially the system
is under heavy load situation.
To make sure the audio can work in this scenario, we usually reserve one
region of memory to be used as a shared pool of DMA buffers for the
platform component. So add of_reserved_mem_device_init_by_idx() function
to initialize the shared pool of DMA buffers to be used by the platform
component.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/test_firmware.c')
0 files changed, 0 insertions, 0 deletions