Orin nx use es8316

Hello,everybody
I am now using es8316 with ORIN NX, and I modified the device tree with some information. However, after I re-brush the machine, I did not find the es8316 information through dmesg, I still need to modify those contents before I can add the es8316 driver, thank you
Orin nx:R35.3.1

Hi Shaohua,
Did you had a chance to check the Audio Setup and Development — Jetson Linux Developer Guide documentation for audio related changes to be done on 35.3.1

Could you please share the changes you made to the DT and any other modifications, and also the dmesg log?
You may refer to Orin NX es8316 audio playback not work for DT changes…

I’m very sorry for the late reply。
This is my dtsi file。
tegra234-p3767-common-audio.dtsi.txt (7.9 KB)

I just modified this dtsi file, and I also looked at the related Kconfig and Makefile files, but I didn’t make any changes. None of the other files have been altered. I wonder if I have left out any files that need to be modified.I also enabled the P40 associated I2S pins.
After modifying the dtsi file, I recompiled the source code and replaced the DTB file, and then refreshed the machine. I didn’t see the es8316.ko file.

This is dmesg info.
log.txt (68.2 KB)

Hi, Can everybody help me,Thanks.

Hi Shaohua,
Did you add CONFIG_SND_SOC_ES8316=m manually or using a configuration editor? If it was done manually, please refer to the wiki for guidance

Hi DRAMESH,
Thank you for your reply. I added it manually. I will modify and verify it with reference to your suggestions.Thank you very much.

Hi,DRAMESH,
The driver information of es8316 already exists, but this error message appears now. I do not know the reason. I hope to get your help. Thank you.
In addition to the es8316.c file, the printed information also exists in those files.

Hi Shaohua,
Is playback working? I assume you are attempting to execute the capture path. Could you please provide the mixer controls that are being used and share the codec file (es8316.c file)?

Hi DRAMESH,
I used the sound control in the graphical interface to test the audio, and there was no output. This is my es8316.c file, I used the file in the source code, did not make changes.
es8316.c.txt (26.4 KB)

Hi Shaohua,
Can you try with aplay test app and share logs?

amixer -c APE sset “I2S2 Mux” “ADMAIF1”
amixer -c APE cset name=“ES Left Hp mixer Left DAC Switch” 1
amixer -c APE cset name=“ES Left Hp mixer Left DAC Switch” 1

aplay -D hw:1,0 1.wav

This is log information.

Hi Shaohua,
Could you please dump the mixer controls and dmesg log?
amixer -c APE controls
and also DAPM trace @ Audio Setup and Development — Jetson Linux Developer Guide documentation

Thanks,

Hi DRAMESH,
controls.txt (76.4 KB)

Hi Shaohua,
Could you please try with the following settings? If it fails to play, please capture a DAPM trace as suggested above.

amixer -c APE sset “I2S2 Mux” “ADMAIF1”
amixer -c APE cset name=“ES Right Headphone Mixer Right DAC Switch” 1
amixer -c APE cset name=“ES Left Headphone Mixer Left DAC Switch” 1

aplay -D hw:1,0 1.wav

Hi, DRAMESH
When playing audio, sound is produced at the beginning and end of playback, but there is no sound during playback.I don’t know what the reason is.
The following image shows amixer’s Settings and audio capture information.
events.txt (13.0 KB)

Hi Shaohua,
This looks strange, it shouldn’t be like that. could you please check with other streams (16 bit, 2Ch, 48KHz)?

Hi,
I am very sorry for not replying to my message for a long time. Now I2S_MCK , I2S0_SCLK , I2S0_LRCK have signals here, And,When aplay test.wav,I2S0_SDOUT also have signals,But es8316 there was still no sound. sudo dmesg |grep es8316,the log confidence display:

Hi Shaohua,
The module verification failure mentioned above should not lead to playback interruption i.e. play-> stop->play. This issue may be associated with codec settings. Kindly examine codec register dumps during both playback and periods of no sound, or consult with the codec vendor for further investigation.

Hi,DRAMESH
My es8316 can be used on orin nx, thank you for your support.