diff options
author | Bing Song <bing.song@nxp.com> | 2020-08-12 10:22:04 +0800 |
---|---|---|
committer | Bing Song <bing.song@nxp.com> | 2020-08-14 16:48:50 +0800 |
commit | c731ea37eeb2390ebf91d5185ffb8860c86ffc34 (patch) | |
tree | 8fb6b891b8eb98a312d4fd939b323f345ab563c2 /sound/soc/fsl/fsl_dsp.c | |
parent | 5ae911fd64fb27e97fd95b0e5f4813a4b2546e2f (diff) |
MLK-24501-5 dsp: add lpa pcm support.
Use reserved memory as PCM mode need more memory.
Use ping-pong buffer for PCM LPA playback to avoid underrun.
Signed-off-by: Bing Song <bing.song@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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c index 46c16ebc8c54..352c8dc599de 100644 --- a/sound/soc/fsl/fsl_dsp.c +++ b/sound/soc/fsl/fsl_dsp.c @@ -1074,6 +1074,9 @@ static int fsl_dsp_mem_setup_lpa(struct fsl_dsp *dsp_priv) dsp_priv->scratch_buf_virt = dsp_priv->ocram_vir_addr; dsp_priv->scratch_buf_phys = dsp_priv->ocram_phys_addr; dsp_priv->scratch_buf_size = dsp_priv->ocram_reserved_size; + dsp_priv->dram_reserved_vir_addr = dsp_priv->sdram_vir_addr; + dsp_priv->dram_reserved_phys_addr = dsp_priv->sdram_phys_addr; + dsp_priv->dram_reserved_size = dsp_priv->sdram_reserved_size; dsp_priv->sdram_vir_addr = dsp_priv->regs + SYSRAM_OFFSET; dsp_priv->sdram_phys_addr = dsp_priv->paddr + SYSRAM_OFFSET; dsp_priv->sdram_reserved_size = SYSRAM_SIZE; |