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.h | |
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.h')
-rw-r--r-- | sound/soc/fsl/fsl_dsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h index a4e4537bc19e..2e2c71890819 100644 --- a/sound/soc/fsl/fsl_dsp.h +++ b/sound/soc/fsl/fsl_dsp.h @@ -58,6 +58,8 @@ struct xf_client { int input_bytes; int consume_bytes; int offset; + atomic_t buffer_cnt; + int ping_pong_offset; }; union xf_client_link { @@ -88,6 +90,9 @@ struct fsl_dsp { void *sdram_vir_addr; unsigned long sdram_phys_addr; int sdram_reserved_size; + void *dram_reserved_vir_addr; + unsigned long dram_reserved_phys_addr; + int dram_reserved_size; void *ocram_vir_addr; unsigned long ocram_phys_addr; int ocram_reserved_size; |