]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 15 Nov 2018 18:13:20 +0000 (18:13 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 14 Dec 2018 12:43:41 +0000 (12:43 +0000)
commitba02eed9f300b6512181d526311d4e11aaa9714f
tree3019142761732d9b5eb0214d3e47ec3316e38c7a
parent35bc99aaa1a3af23cf78b6b56f14230b5da3993b
ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

Existing compress offload code allocates data buffers using simple kmalloc,
however there are situations where these buffers have to be mapped
in smmu. So provide a way to set the runtime buffer by the driver itself,
simillar to what we do with pcm.

This patch adds support to set runtime dma buffer on compressed stream.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/compress_driver.h