]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f6b67759dd64f93688ef96f62dbe63a9d5c898f
treecff84872dde79246b012a97ce5a27ba0356c81d2
parentd36fc4957d5bd216b15cad6e50a529a92b9db842
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: cc40993a4533 ("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