summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc_dma.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2017-05-05 10:09:55 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:48:26 +0800
commit29668d659ece5d26fff7e5e9cef08520593400e1 (patch)
tree724fb340795746650aa947e8b86cfbc70692921c /sound/soc/fsl/fsl_asrc_dma.c
parenteb267cdcaa7d36a7816f3274be065853e8f4ced7 (diff)
MLK-14528: ASoC: sdma: Update period/segment max bytes (part 1)
Commit 665ced16cf044 ("MLK-10050 dma: imx-sdma: add support for sdma memory copy") enforces maximum SDMA buffer descriptor length at 65532, but doesn't update period_bytes_max or max_segment size in DMA drivers. Thus, resulting in the following bug: $ arecord -Dhw:0,0 -r 192000 -f S20_3LE -c 1 -d 10 audio192k20b1c.wav imx-sdma: SDMA channel 5: maximum period size exceeded: 65534 > 65532 Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> [ Aisheng: split rpmsg changes ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_asrc_dma.c')
-rw-r--r--sound/soc/fsl/fsl_asrc_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c
index 2682af55927e..58b418e615cc 100644
--- a/sound/soc/fsl/fsl_asrc_dma.c
+++ b/sound/soc/fsl/fsl_asrc_dma.c
@@ -25,7 +25,7 @@ static const struct snd_pcm_hardware snd_imx_hardware = {
SNDRV_PCM_INFO_RESUME,
.buffer_bytes_max = FSL_ASRC_DMABUF_SIZE,
.period_bytes_min = 128,
- .period_bytes_max = 65535, /* Limited by SDMA engine */
+ .period_bytes_max = 65532, /* Limited by SDMA engine */
.periods_min = 2,
.periods_max = 255,
.fifo_size = 0,