]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: meson: axg-tdm: fix sample clock inversion
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 13 Jun 2019 11:42:32 +0000 (13:42 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 13 Jun 2019 18:44:02 +0000 (19:44 +0100)
commit6c7cd70a0bd9fa1bcc408d96e38d6ece97fc991c
tree6f200a265ced0f85d92055753437839078135d56
parent3ff1c0a60e16fd64baabc39b1cfecaba6e0ea413
ASoC: meson: axg-tdm: fix sample clock inversion

The content of SND_SOC_DAIFMT_FORMAT_MASK is a number, not a bitfield,
so the test to check if the format is i2s is wrong. Because of this the
clock setting may be wrong. For example, the sample clock gets inverted
in DSP B mode, when it should not.

Fix the lrclk invert helper function

Fixes: f5b7372005aa ("ASoC: meson: add tdm formatter base driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-tdm.h