ASoC: meson: axg-toddr: fix channel order on g12 platforms
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 28 Aug 2020 15:14:38 +0000 (17:14 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Aug 2020 18:02:54 +0000 (19:02 +0100)
commit9c4b205a20f483d8a5d1208cfec33e339347d4bd
treecff84872dde79246b012a97ce5a27ba0356c81d2
parent20d9fdee72dfaa1fa7588c7a846283bd740e7157
ASoC: meson: axg-toddr: fix channel order on g12 platforms

On g12 and following platforms, The first channel of record with more than
2 channels ends being placed randomly on an even channel of the output.

On these SoCs, a bit was added to force the first channel to be placed at
the beginning of the output. Apparently the behavior if the bit is not set
is not easily predictable. According to the documentation, this bit is not
present on the axg series.

Set the bit on g12 and fix the problem.

Fixes: a3c23a8ad4dc ("ASoC: meson: axg-toddr: add g12a support")
Reported-by: Nicolas Belin <nbelin@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200828151438.350974-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-toddr.c