ASoC: sun8i-codec: Add a quirk for LRCK inversion
authorSamuel Holland <samuel@sholland.org>
Sun, 26 Jul 2020 01:25:54 +0000 (20:25 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 14:21:57 +0000 (15:21 +0100)
commit7518805fb636308909a6a7953e9fdb194abb15f8
treeb416266cf146cca551534b999f6c840ef37c42a2
parente47d2dcd88fc3e6837f8aa0060ce820ec9001e26
ASoC: sun8i-codec: Add a quirk for LRCK inversion

On the A64, as tested using the PinePhone, the current code causes the
left/right channels to be swapped during I2S playback from the CPU on
AIF1, and breaks DSP_A communication with the modem on AIF2. Both of
these are fixed when LRCK is no longer inverted.

Trusting that the comment in the code is correct, the existing behavior
is kept for the A33.

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