summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp_xaf_api.c
diff options
context:
space:
mode:
authorBing Song <bing.song@nxp.com>2020-06-16 13:15:29 +0800
committerBing Song <bing.song@nxp.com>2020-07-10 16:48:11 +0800
commit14a5a9ace52341fdf01c579229aaf6c557c77de9 (patch)
tree8be440132fca378b1432e1dabff6e951cff3dc1d /sound/soc/fsl/fsl_dsp_xaf_api.c
parent777b92ecd03fb93e86088a6de15ef440fb9f14ba (diff)
MLK-24365-6 dsp: enlarge the audio bitstream buffer.
The buffer is share between A core and DSP. Enlarge it, so A core will suspend longer when DSP is playbacking audio. Signed-off-by: Bing Song <bing.song@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_xaf_api.c')
-rw-r--r--sound/soc/fsl/fsl_dsp_xaf_api.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_dsp_xaf_api.c b/sound/soc/fsl/fsl_dsp_xaf_api.c
index e7c71d33aaf8..2befc7c144b0 100644
--- a/sound/soc/fsl/fsl_dsp_xaf_api.c
+++ b/sound/soc/fsl/fsl_dsp_xaf_api.c
@@ -178,7 +178,7 @@ int xaf_comp_create(struct xf_client *client, struct xf_proxy *proxy,
char lib_wrap_path[200];
struct xf_handle *p_handle;
struct xf_buffer *buf;
- int ret = 0;
+ int ret = 0, size;
bool loadlib = true;
memset((void *)p_comp, 0, sizeof(struct xaf_comp));
@@ -247,7 +247,11 @@ int xaf_comp_create(struct xf_client *client, struct xf_proxy *proxy,
}
/* ...allocate input buffer */
- ret = xf_pool_alloc(client, proxy, 1, INBUF_SIZE,
+ if (dsp_priv->dsp_is_lpa)
+ size = INBUF_SIZE_LPA;
+ else
+ size = INBUF_SIZE;
+ ret = xf_pool_alloc(client, proxy, 1, size,
XF_POOL_INPUT, &p_comp->inpool);
if (ret) {
dev_err(dsp_priv->dev, "alloc input buf error\n");