]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: meson: axg-tdm-formatters: fix sclk inversion
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Jul 2020 15:44:55 +0000 (17:44 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jul 2020 18:45:01 +0000 (19:45 +0100)
commitd79336a58b481c52f431bbd2132488cc88621c77
treea0283de0767c42e5c9f2cb49180658ffbe96286c
parent983fadf3c756db1ecae09f269193cc2cf2ddcccd
ASoC: meson: axg-tdm-formatters: fix sclk inversion

After carefully checking, it appears that both tdmout and tdmin require the
rising edge of the sclk they get to be synchronized with the frame sync
event (which should be a rising edge of lrclk).

TDMIN was improperly set before this patch. Remove the sclk_invert quirk
which is no longer needed and fix the sclk phase.

Fixes: 292bb08dd734 ("ASoC: meson: add tdm formatter base driver")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200729154456.1983396-4-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-tdm-formatter.c
sound/soc/meson/axg-tdm-formatter.h
sound/soc/meson/axg-tdmin.c
sound/soc/meson/axg-tdmout.c