summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-10-05 19:07:56 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:59 +0800
commite5a35115db1a6c79fdf66f07bd65bbe7a741835e (patch)
treefe5475feb03632f9fe54517fd661926651f9eb52 /sound/soc/fsl
parent6bb3efa95e431a326f6f8f17bdb5ff70ab5fd3df (diff)
MLK-18497-9: ASoC: fsl: dsp: Export xf_client_alloc
While at it add include guard to dsp.h 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')
-rw-r--r--sound/soc/fsl/fsl_dsp.c9
-rw-r--r--sound/soc/fsl/fsl_dsp.h7
2 files changed, 13 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c
index 7d5a686f4e8d..7d2d6314d27f 100644
--- a/sound/soc/fsl/fsl_dsp.c
+++ b/sound/soc/fsl/fsl_dsp.c
@@ -62,11 +62,16 @@
#include <linux/firmware/imx/types.h>
#include <linux/firmware/imx/svc/misc.h>
#include <dt-bindings/firmware/imx/rsrc.h>
-#include "fsl_dsp.h"
+#include <sound/pcm.h>
+#include <sound/soc.h>
+
+#include "fsl_dsp.h"
+#include "fsl_dsp_pool.h"
+#include "fsl_dsp_xaf_api.h"
/* ...allocate new client */
-static inline struct xf_client *xf_client_alloc(struct fsl_dsp *dsp_priv)
+struct xf_client *xf_client_alloc(struct fsl_dsp *dsp_priv)
{
struct xf_client *client;
u32 id;
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h
index 9ee7e025ed7f..04fefa75d992 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -5,8 +5,10 @@
*
*/
-#include <linux/firmware/imx/ipc.h>
+#ifndef FSL_DSP_H
+#define FSL_DSP_H
#include <uapi/linux/mxc_dsp.h>
+#include <linux/firmware/imx/ipc.h>
#include "fsl_dsp_proxy.h"
@@ -118,3 +120,6 @@ struct fsl_dsp {
void *memcpy_dsp(void *dest, const void *src, size_t count);
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);
+
+#endif