From 17aa1ae7609a2dbb1e705fb6b4766451662afc49 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Thu, 4 Oct 2018 16:34:29 +0300 Subject: MLK-18497-4: ASoC: fsl: dsp: Add message buffer pool API Memory is allocated to clients from memory pools. A memory pool allocation is requested to DSP framework via XF_ALLOC command and freed via XF_FREE. Memory pool allocation API offers two functions: * xf_pool_alloc, allocate a number of buffers of given length * xf_pool_free, free memory area allocated for a pool. Once a buffer pool is allocated users can handle buffers using the following API: * xf_buffer_get(pool), gets a buffer from a pool * xf_buffer_put(buf), puts back a buffer into its pool Reviewed-by: Cosmin-Gabriel Samoila Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_dsp_proxy.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/soc/fsl/fsl_dsp_proxy.h') diff --git a/sound/soc/fsl/fsl_dsp_proxy.h b/sound/soc/fsl/fsl_dsp_proxy.h index dc54dc2d00ef..78b033719eb8 100644 --- a/sound/soc/fsl/fsl_dsp_proxy.h +++ b/sound/soc/fsl/fsl_dsp_proxy.h @@ -309,6 +309,9 @@ struct xf_proxy { /* ...pointer to first free message in the pool */ struct xf_message *free; + + /* ...auxiliary buffer pool for clients */ + struct xf_pool *aux; }; union icm_header_t { -- cgit v1.2.3