ASoC: sun8i-codec: Use the provided word size
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:28 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:56:54 +0000 (14:56 +0000)
commit1abb43aeadfb513c0a16013cd445fb7dd3b285bb
tree574ccc5d0e239ee888be6671513313ac997bec05
parentc56f5f1c0b23ac0cdcf8c73bf6f7363ef0cdfbc0
ASoC: sun8i-codec: Use the provided word size

The hardware supports 8 to 24-bit word sizes on all three of its DAIs,
only one of which is connected to the CPU DAI. Program the word size
based on the actual selected format, instead of assuming limitations
from another driver (which, incedentally, has patches pending to remove
that limitation).

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-5-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c