diff options
author | Jindong <jindong.yue@nxp.com> | 2020-09-16 15:21:35 +0800 |
---|---|---|
committer | Jindong <jindong.yue@nxp.com> | 2020-10-27 17:00:10 +0800 |
commit | 0c99d876def2626fc9065126f1db605e230567f5 (patch) | |
tree | eccee35bde37a9b27ff74aa1368c8acd59a67b67 /sound/soc/fsl/fsl_dsp.c | |
parent | 4b82ed17bcfd6395fae498c04b2bc4e2eecf2a31 (diff) |
MA-17897 ASoC: fsl_dsp: Support building as module
Make fsl_dsp_cpu as a separate driver, otherwise below
build error will occur when set CONFIG_SND_SOC_FSL_DSP=m
ld.lld: error: duplicate symbol: init_module
>>> defined at fsl_dsp.c
>>> sound/soc/fsl/fsl_dsp.o:(init_module)
>>> defined at fsl_dsp_cpu.c
>>> sound/soc/fsl/fsl_dsp_cpu.o:(.init.text+0x0)
Signed-off-by: Jindong <jindong.yue@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.c')
-rw-r--r-- | sound/soc/fsl/fsl_dsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c index 88c94c44532a..01a49c15af71 100644 --- a/sound/soc/fsl/fsl_dsp.c +++ b/sound/soc/fsl/fsl_dsp.c @@ -664,8 +664,10 @@ static void fsl_dsp_start(struct fsl_dsp *dsp_priv) switch (dsp_priv->dsp_board_type){ case DSP_IMX8QM_TYPE: case DSP_IMX8QXP_TYPE: +#if defined(CONFIG_IMX_SCU) imx_sc_pm_cpu_start(dsp_priv->dsp_ipcHandle, IMX_SC_R_DSP, true, dsp_priv->iram); +#endif break; case DSP_IMX8MP_TYPE: imx_audiomix_dsp_start(dsp_priv->audiomix); |