ASoC: dwc: Add TDM mode support
authorMaxim Kochetkov <fido_max@inbox.ru>
Thu, 22 Jun 2023 20:00:29 +0000 (23:00 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:51:01 +0000 (22:51 +0100)
commit221acc16aee16eb246bad32a6b9014021218b7cd
tree5138cd04472ced01ec586621ec02f7c224ca7957
parent24e04c94bebc4144f790a21a93d090cf9673acd9
ASoC: dwc: Add TDM mode support

Depending on hardware implementaion of DWC I2S controller may support
TDM mode if enabled in SoC at design time.
Unfortunately there is no way to detect TDM capability for DWC by
reading registers. Anyway, if such capability enabled, TDM mode
can be enabled and configured by dai-tdm-slot-* DT options.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Link: https://lore.kernel.org/r/20230622200031.120168-1-fido_max@inbox.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/dwc-i2s.c
sound/soc/dwc/dwc-pcm.c
sound/soc/dwc/local.h