]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:20:05 +0000 (21:20 +0200)
commit52d1b4250ca9d1090d4cdbc4cb35d6be64fe1cce
tree7498feb1ee628074002114559561fca3f4721899
parent249fe2d20d55d7bd01779ec802cc9967a758a092
ASoC: tas2764: Fix and extend FSYNC polarity handling

[ Upstream commit d1a10f1b48202e2d183cce144c218a211e98d906 ]

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: 827ed8a0fa50 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2764.c
sound/soc/codecs/tas2764.h