ASoC: fsl_spdif: Add support for i.MX8QM platform
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 15 Oct 2020 05:28:48 +0000 (13:28 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 18:37:08 +0000 (18:37 +0000)
commit516232e3609f485be04445b03723fbaed64a5321
tree2f5046463445fac96c7ddac9705076586a72acad
parent87b2fc1139a13cf81d0a95fb2cbaba7daeee8908
ASoC: fsl_spdif: Add support for i.MX8QM platform

On i.MX8QM, there are separate interrupts for TX and RX.

As the EDMA can't be configured to swing back to first FIFO
after writing the second FIFO, so we need to force the burst
size to be 2 on i.MX8QM. And EDMA don't support to shift
the data from S24_LE to S16_LE, so the supported TX format
is also different on i.MX8QM.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/1602739728-4433-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c