ASoC: dmaengine: Introduce module option prealloc_buffer_size_kbytes
authorSugar Zhang <sugar.zhang@rock-chips.com>
Thu, 23 Sep 2021 10:50:46 +0000 (18:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Sep 2021 12:01:13 +0000 (13:01 +0100)
commitb0e3b0a7078d71455747025e7deee766d4d43432
tree0b138b1e7fec57fdf81a7a2b26b6295ed5959241
parentd0900042522345ed51127d787f02e1171e110e27
ASoC: dmaengine: Introduce module option prealloc_buffer_size_kbytes

Currently, The fixed 512KB prealloc buffer size is too larger for
tiny memory kernel (such as 16MB memory). This patch adds the module
option "prealloc_buffer_size_kbytes" to specify prealloc buffer size.

It's suitable for cards which use the generic dmaengine pcm driver
with no config.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Link: https://lore.kernel.org/r/1632394246-59341-1-git-send-email-sugar.zhang@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/sound/alsa-configuration.rst
sound/soc/soc-generic-dmaengine-pcm.c