Can Nvidia dev team please confirm if any of the ASoc machine drivers under t18x/sound/soc/tegra-alt has been tested working with any codec through I2S TDM? In the L2T 28.1 release, there are a few machine drivers:
tegra_t186ref_p4573_alt.c
tegra_t186ref_p2382_alt.c
tegra_t186ref_mobile_rt565x.c
tegra_t186ref_m3420_alt.c
tegra_t186ref_bali_alt.c
tegra_t186ref_alt.c
It seems only tegra_t186ref_alt.c, tegra_t186ref_p2382_alt.c, and tegra_t186ref_bali_alt.c have TDM channel mapping configuration. The generic driver that the L4T documentation (Tegra ASoC Driver section) describes somewhat resembles tegra_t186ref_alt.c, but the documentation is outdated as usual (please, please do update all documentations with each release!), so I’m not sure whatever it says about TX1 would still work for TX2.
I did try to configure my DT to use tegra_t186ref_alt.c, but I found it was not even compiled into the kernel due to a mismatching between the KConfig and Makefile. I checked this issue exists in both R27.1 and R28.1:
SND_SOC_TEGRA_T186REF_ALT in t18x/sound/soc/tegra-alt/KConfig.t18x:
config SND_SOC_TEGRA_T186REF_ALT
tristate "SoC Audio support for T186Ref"
SND_SOC_TEGRA_T186REF_FPGA_ALT in t18x/sound/soc/tegra-alt/Makefile.t18x:
snd-soc-tegra-alt-t186ref-objs := tegra_t186ref_alt.o
...
obj-$(CONFIG_SND_SOC_TEGRA_T186REF_FPGA_ALT) += snd-soc-tegra-alt-t186ref.o
I’ll be really appreciated if someone could confirm if there’s a known working driver I can experiment with before I invest more time into this. Thank you.