]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Fix noise when using EDMA
authorMihai Serban <mihai.serban@nxp.com>
Fri, 13 Sep 2019 19:28:05 +0000 (22:28 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 17 Sep 2019 15:56:19 +0000 (16:56 +0100)
commite7a904fb599e6243a4d0995c5a1aee459605c11a
tree4aa03850072854d477181319f253cee00e92c9f0
parent6ba624bb2fe0bcb1d0baacc64476485120c291d6
ASoC: fsl_sai: Fix noise when using EDMA

EDMA requires the period size to be multiple of maxburst. Otherwise the
remaining bytes are not transferred and thus noise is produced.

We can handle this issue by adding a constraint on
SNDRV_PCM_HW_PARAM_PERIOD_SIZE to be multiple of tx/rx maxburst value.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20190913192807.8423-2-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h