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. Change-Id: I76cc278f523d41083ba30b36d801d2839682d158 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> (cherry picked from commit b0e3b0a7078d71455747025e7deee766d4d43432 git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.16)