]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: jz4740-i2s: Support S20_LE and S24_LE sample formats
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Sun, 23 Oct 2022 14:33:25 +0000 (15:33 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:18 +0000 (14:18 +0100)
commit7abd01cfc5428581b21099eb629d88e76a47b67a
tree383cab660203cae135ed1a7edce6b3cdef2ab7d6
parentdacc06b812f46e0d4cfdda98134a8b5d64375341
ASoC: jz4740-i2s: Support S20_LE and S24_LE sample formats

The audio controller on JZ47xx SoCs can transfer 20- and 24-bit
samples in the FIFO, so allow those formats to be used with the
I2S driver. Although the FIFO doesn't care about the in-memory
sample format, we only support 4-byte format variants because the
DMA controller on these SoCs cannot transfer in 3-byte multiples.

Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20221023143328.160866-7-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/jz4740/jz4740-i2s.c