]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 27 Sep 2019 01:46:12 +0000 (09:46 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 11:19:34 +0000 (12:19 +0100)
commit703df4413ff6cf1812922522daa7c0610f087910
treed9f40b63c7756d1f0374c730ed0fc6f4dd394db9
parente957204e732bc2916a241dc61dd7dd14e9a98350
ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8

There is error "aplay: pcm_write:2023: write error: Input/output error"
on i.MX8QM/i.MX8QXP platform for S24_3LE format.

In i.MX8QM/i.MX8QXP, the DMA is EDMA, which don't support 24bit
sample, but we didn't add any constraint, that cause issues.

So we need to query the caps of dma, then update the hw parameters
according to the caps.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/b6a4de2bbf960ef291ee902afe4388bd0fc1d347.1569493933.git.shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c
sound/soc/fsl/fsl_asrc.h
sound/soc/fsl/fsl_asrc_dma.c