<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 28, 2022 at 4:28 PM Chancel Liu <<a href="mailto:chancel.liu@nxp.com">chancel.liu@nxp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On i.MX93 platform MICFIL uses eDMA. The maxburst should be set to the<br>
number of channels in eDMA multiple FIFO mode.<br>
<br>
Signed-off-by: Chancel Liu <<a href="mailto:chancel.liu@nxp.com" target="_blank">chancel.liu@nxp.com</a>><br></blockquote><div><br></div><div>Acked-by: Shengjiu Wang <<a href="mailto:shengjiu.wang@gmail.com">shengjiu.wang@gmail.com</a>></div><div><br></div><div>best regards</div><div>wang shengjiu </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
sound/soc/fsl/fsl_micfil.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c<br>
index b8a9504441df..22e75c14cac4 100644<br>
--- a/sound/soc/fsl/fsl_micfil.c<br>
+++ b/sound/soc/fsl/fsl_micfil.c<br>
@@ -63,6 +63,7 @@ struct fsl_micfil_soc_data {<br>
unsigned int fifo_depth;<br>
unsigned int dataline;<br>
bool imx;<br>
+ bool use_edma;<br>
u64 formats;<br>
};<br>
<br>
@@ -88,6 +89,7 @@ static struct fsl_micfil_soc_data fsl_micfil_imx93 = {<br>
.fifo_depth = 32,<br>
.dataline = 0xf,<br>
.formats = SNDRV_PCM_FMTBIT_S32_LE,<br>
+ .use_edma = true,<br>
};<br>
<br>
static const struct of_device_id fsl_micfil_dt_ids[] = {<br>
@@ -690,6 +692,8 @@ static int fsl_micfil_hw_params(struct snd_pcm_substream *substream,<br>
micfil->sdmacfg.n_fifos_src = channels;<br>
micfil->sdmacfg.sw_done = true;<br>
micfil->dma_params_rx.maxburst = channels * MICFIL_DMA_MAXBURST_RX;<br>
+ if (micfil->soc->use_edma)<br>
+ micfil->dma_params_rx.maxburst = channels;<br>
<br>
return 0;<br>
}<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div></div>