summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-10-04 14:46:32 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:52:02 +0800
commit09194b889d50146c20eafa3a661c5911d4ee2cbf (patch)
treed8390154a5da5f3fd367bf6d5652e0ec07386e54 /sound/soc/fsl/fsl_dsp.h
parent78520df6826e552bbc2c23e76e0f11c32fa559f1 (diff)
MLK-18497-11: ASoC: fsl: compress: Introduce compress implemenation
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h
index eaabe17e0f54..ad6f7a9e8be1 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -10,8 +10,11 @@
#include <uapi/linux/mxc_dsp.h>
#include <linux/firmware/imx/ipc.h>
#include "fsl_dsp_proxy.h"
+#include "fsl_dsp_platform.h"
+#define FSL_DSP_COMP_NAME "fsl-dsp-component"
+
typedef void (*memcpy_func) (void *dest, const void *src, size_t n);
typedef void (*memset_func) (void *s, int c, size_t n);
@@ -41,8 +44,13 @@ struct xf_client {
void *global;
struct xf_message m;
+ struct snd_compr_stream *cstream;
+
struct work_struct work;
struct completion compr_complete;
+
+ int input_bytes;
+ int consume_bytes;
};
union xf_client_link {
@@ -88,6 +96,8 @@ struct fsl_dsp {
/* ...mutex lock */
struct mutex dsp_mutex;
+ struct dsp_data dsp_data;
+
/* ...global clients pool (item[0] serves as list terminator) */
union xf_client_link xf_client_map[XF_CFG_MAX_IPC_CLIENTS];
};