From 14a5a9ace52341fdf01c579229aaf6c557c77de9 Mon Sep 17 00:00:00 2001 From: Bing Song Date: Tue, 16 Jun 2020 13:15:29 +0800 Subject: 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 --- sound/soc/fsl/fsl_dsp_xaf_api.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sound/soc/fsl/fsl_dsp_xaf_api.c') 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"); -- cgit v1.2.3