summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-10-05 19:05:25 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:52:00 +0800
commit78520df6826e552bbc2c23e76e0f11c32fa559f1 (patch)
tree8dfb81b922bae85413cd96d0c6f40fbbe2de4d73 /sound/soc/fsl/fsl_dsp.h
parente5a35115db1a6c79fdf66f07bd65bbe7a741835e (diff)
MLK-18497-10: ASoC: fsl: dsp: Refactor fsl_dsp_{open|close}
DSP driver now supports two interfaces. Old ioctl chardev based interface and ALSA compress inteface. Because some part of the open/close code is common introduce two new functions which encapsulate the common functionality. 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 04fefa75d992..eaabe17e0f54 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -122,4 +122,7 @@ void *memset_dsp(void *dest, int c, size_t count);
struct xf_client *xf_client_lookup(struct fsl_dsp *dsp_priv, u32 id);
struct xf_client *xf_client_alloc(struct fsl_dsp *dsp_priv);
+int fsl_dsp_open_func(struct fsl_dsp *dsp_priv, struct xf_client *client);
+int fsl_dsp_close_func(struct xf_client *client);
+
#endif