Es8316 in Jeston Xavier NX can play, can not record

Dear all:
1: JetPack4.6_R32.6.1 + Jetson XAVIER NX + es8316 in customed board

2: es8316 connected to SOM with I2S0 and I2C1

3: With the help of original factory, play can work normally.

4: Even clear route , it can not recorded. No signal in SCLK and DLRCK when record.

5: The first two commands are executed before play or record.

sudo amixer -c es8316tegra cset name=“I2S5 codec master mode” “cbs-cfs”
sudo amixer -c es8316tegra cset name=“I2S5 Mux” ADMAIF1
aplay -D hw:1,0 60s-48k.wav
arecord -D hw:1,0 -d 30 -f cd -c 2 -r 48000 -t wav test.wav

6: The followings is configuration file 、device tree and drivers for 8316.

es8316.c (38.3 KB)
tegra_machine_driver_mobile.c (25.2 KB)
tegra194-audio-p3668.dtsi (2.9 KB)
tegra194-p3668-common.dtsi (13.8 KB)

So. could you help me check why record can not work?

Thanks you very much. Best Regards.

Not sure if this is a codec configuration issue, have you check with codec vendor?

Hi,
It seems you don’t enable the capture path set on the Tegra side.

" The first two commands are executed before play or record.
sudo amixer -c es8316tegra cset name=“I2S5 codec master mode” “cbs-cfs”
sudo amixer -c es8316tegra cset name=“I2S5 Mux” ADMAIF1"

Could you please add the below mixer control and test?
amixer -c es8316tegra cset name=“ADMAIF1 Mux” “I2S5”

If you still see an issue please share dmesg logs and capture trace log @
https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/asoc_driver.19.2.html#wwpID0E0ND0HA

1 Like

You are so professional, it be able to record. 老将一出手,就知有没有。
But There is no sound in playing the recorded audio, and it is normal to play the downloaded audio. ASDOUT have no signal when record.

With your help , and change some route, now es8316 can record normally.
Thanks for your professional help.

Thank you for letting me know the status.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.