summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp_xaf_api.c
diff options
context:
space:
mode:
authorZhang Peng <peng.zhang_8@nxp.com>2020-04-01 18:26:29 +0800
committerZhang Peng <peng.zhang_8@nxp.com>2020-04-07 12:48:18 +0800
commitd235be4b28d4fa4ff4bd5e3e21d1c692ad800762 (patch)
treec3164f869a45fb4d9573e01e25ff404d56752658 /sound/soc/fsl/fsl_dsp_xaf_api.c
parent5e9570b387a7d8990096a38b40a84e286384ed2a (diff)
MLK-23701-2 ASoc:fsl: Add support cplay in mp board
1. Add clk necessary in dsp driver 2. Add renderer type for select sai or esai Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_xaf_api.c')
-rw-r--r--sound/soc/fsl/fsl_dsp_xaf_api.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_dsp_xaf_api.c b/sound/soc/fsl/fsl_dsp_xaf_api.c
index 4312a6b29ef1..e7c71d33aaf8 100644
--- a/sound/soc/fsl/fsl_dsp_xaf_api.c
+++ b/sound/soc/fsl/fsl_dsp_xaf_api.c
@@ -190,7 +190,7 @@ int xaf_comp_create(struct xf_client *client, struct xf_proxy *proxy,
p_comp->comp_type = comp_type;
- if (comp_type == RENDER_ESAI)
+ if (comp_type == RENDER_ESAI || comp_type == RENDER_SAI)
loadlib = false;
if (loadlib) {
@@ -211,6 +211,9 @@ int xaf_comp_create(struct xf_client *client, struct xf_proxy *proxy,
case RENDER_ESAI:
p_comp->dec_id = "renderer/esai";
break;
+ case RENDER_SAI:
+ p_comp->dec_id = "renderer/sai";
+ break;
default:
return -EINVAL;
@@ -283,7 +286,7 @@ int xaf_comp_delete(struct xf_client *client, struct xaf_comp *p_comp)
/* mark component as unusable from this point */
p_comp->active = false;
- if (p_comp->comp_type == RENDER_ESAI)
+ if (p_comp->comp_type == RENDER_ESAI || p_comp->comp_type == RENDER_SAI)
loadlib = false;
p_handle = &p_comp->handle;