]> 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)
commitef9b9729fcbbff814ac2518bf9c80a4154352e70
tree6706e7f6af3a74076076768128aad1abcc11a9cf
parent90313daf6625a97583ea9b5b70166365e3e7c07a
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: b3c709a3060c ("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