]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2764: Fix and extend FSYNC polarity handling
authorMartin Povišer <povik+lin@cutebit.org>
Thu, 30 Jun 2022 07:51:33 +0000 (09:51 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:33 +0000 (17:16 +0100)
commit467cb2aabdeb7cd0e2293e27c169ec8db09dc8ee
tree6706e7f6af3a74076076768128aad1abcc11a9cf
parent6d9186f23eeaead5b381ad0caefb134445d24a9c
ASoC: tas2764: Fix and extend FSYNC polarity handling

Fix setting of FSYNC polarity in case of LEFT_J and DSP_A/B formats.
Do NOT set the SCFG field as was previously done, because that is not
correct and is also in conflict with the "ASI1 Source" control which
sets the same SCFG field!

Also add support for explicit polarity inversion.

Fixes: ff5fd908f544 ("ASoC: tas2764: Add the driver for the TAS2764")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220630075135.2221-2-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2764.c
sound/soc/codecs/tas2764.h