ASoC: sun8i-codec: Enable all supported clock inversions
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:27 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:56:53 +0000 (14:56 +0000)
commitc56f5f1c0b23ac0cdcf8c73bf6f7363ef0cdfbc0
treeeb0063720705c65ab37f30a3234c5b2ed5664d8d
parentfd57ed2de5b1a5e153abf2f8c02fc3c1bf40de3b
ASoC: sun8i-codec: Enable all supported clock inversions

When using the I2S, LEFT_J, or RIGHT_J format, the hardware supports
independent BCLK and LRCK inversion control. When using DSP_A or DSP_B,
LRCK inversion is not supported. The register bit is repurposed to
select between DSP_A and DSP_B. Extend the driver to support this.

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