From 78520df6826e552bbc2c23e76e0f11c32fa559f1 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Fri, 5 Oct 2018 19:05:25 +0300 Subject: 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 Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_dsp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/soc/fsl/fsl_dsp.h') 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 -- cgit v1.2.3