summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-10-04 16:34:29 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:56 +0800
commit17aa1ae7609a2dbb1e705fb6b4766451662afc49 (patch)
treebaa4cd1a9a2ea7cd9070c68a4b0aff03e0518058 /sound/soc/fsl/fsl_dsp.h
parent1aeb3e481a292ae78906e5cb0f4f0d8b57f05ad3 (diff)
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 <cosmin.samoila@nxp.com> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.h')
-rw-r--r--sound/soc/fsl/fsl_dsp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h
index b4ab6fc1a9d4..95815fa23c33 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -37,6 +37,9 @@ struct xf_client {
/* ...global structure pointer */
void *global;
struct xf_message m;
+
+ struct work_struct work;
+ struct completion compr_complete;
};
union xf_client_link {