I’m currently embarking on the challenge of integrating the TLV320AIC3104 audio codec with the Nvidia Jetson Orin NX platform. I’ve successfully obtained the source code for the codec, which is available at TLV320AIC3XSW-LINUX Driver or library | TI.com.
My current objective is to port this source code as a driver package to the Linux kernel for the Jetson Orin NX. I’m seeking guidance on the essential steps and considerations required for accomplishing this task effectively.
If anyone within the community has experience or insights into porting source code to the Linux kernel specifically as a driver package for audio codec integration with the Jetson Orin NX, I would be immensely grateful for any advice or assistance you can provide.
Please provide information regarding which JP release are you using. Accordingly, I shall provide the codec integration guide. For ex: for JP 6.0 link guides you on how to integrate codec
The source code is already present in the BSP source that nvidia shares for building kernel image or DTB. So you many need to just enable the relevant below codec configs for the TLVAIC3x codec driver to compile. Ref: link as to how to enable below configs
CONFIG_SND_SOC_TLV320AIC3X_I2C
CONFIG_SND_SOC_TLV320AIC3X_SPI
CONFIG_SND_SOC_TLV320AIC3X
Other important links for reference:
Troubleshooting : link
Overall Audio BSP documentation: link
We are using JetPack 5.1, also If you can share the link to the BSP source code for building the kernel image for the Jetson Orin Nano, that would be very helpful.
Okay, thank you for your reply. Since the source code is already present Do I need to implement an initialization function and initialization registers? and we are using I2C and I2S, should the configuration options be:
CONFIG_SND_SOC_TLV320AIC3X_I2C
CONFIG_SND_SOC_TLV320AIC3X_I2S
CONFIG_SND_SOC_TLV320AIC3X
is that right?
Yes, I have gone through that, but I have a question. Do I need to flash the code first, or can I directly edit the device tree file from the host Linux PC and then flash it to the Orion NX? Additionally, I am unable to find the correct device tree file for this version, as there are multiple DTS and DTSI files present in the arch=> arm=> boot=> DTS folder. Can youguide me on which specific file I should use?
If facing any issues specifically with editing DT and flashing it, please raise a different query for that while audio related discussion can continue on this