ASoC: meson: axg-tdm-formatters: fix sclk inversion
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Jul 2020 15:44:55 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:04 +0000 (08:24 +0200)
commit557fa1da7dd849ec86b75878bd25518a952eb43a
tree49eddd52032f610d3c0b80274af93854c360b2f6
parentc0ae5af62414d610eaa68722f7dda17886d6a227
ASoC: meson: axg-tdm-formatters: fix sclk inversion

[ Upstream commit 0d3f01dcdc234001f979a0af0b6b31cb9f25b6c1 ]

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: 1a11d88f499c ("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>
Signed-off-by: Sasha Levin <sashal@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