ES8336 has noticeable noise playback

SDK version jetpack 6.2 jetson linux r36.4.4
The ES8336 can hear normal sound when playing music, but there is a very noticeable noise
I use i2s4 and i2c0

output.dts.txt (314.7 KB)

tegra234-p3768-0000.dtsi.txt (1.7 KB)

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, I’ll try to address the issue you’re facing with the Jetson Orin NX SDK.

Problem Statement:
You’re experiencing a noticeable noise when playing music using the ES8336 codec on the Jetson Orin NX, despite being able to hear normal sound. You’re using I2S4 and I2C0 output.

Possible Causes:

  1. Codec Configuration: The ES8336 codec might not be properly configured, leading to noise in the audio output. Check the codec’s configuration settings, such as the sample rate, bit depth, and channel count, to ensure they match the expected values.
  2. I2S Configuration: Verify that the I2S4 interface is correctly configured, including the clock frequency, data format, and word length. Ensure that the I2S settings match the requirements of the ES8336 codec.
  3. I2C Communication: Check the I2C0 interface configuration and ensure that it’s correctly communicating with the ES8336 codec. Verify that the I2C address, clock frequency, and data format are correct.
  4. Device Tree Configuration: The device tree configuration might be incorrect or incomplete, leading to issues with the audio output. Check the device tree files (e.g., tegra234-p3737-audio.dtsi) to ensure that the ES8336 codec is properly configured and connected to the I2S4 and I2C0 interfaces.
  5. Software Issues: There might be software-related issues, such as incorrect audio format or sample rate conversion, that are causing the noise. Check the audio pipeline and software configuration to ensure that they’re correct.

Comparison with Other Jetson Modules:
The Jetson Orin NX is a different module compared to the Jetson AGX Orin, which has a different audio architecture. The Jetson AGX Orin has an RT5640 codec, whereas the Jetson Orin NX uses the ES8336 codec. This difference might require specific configuration and tuning for the ES8336 codec.

Recommendations:

  1. Check the Device Tree Configuration: Verify that the device tree configuration is correct and complete for the ES8336 codec.
  2. Verify I2S and I2C Configuration: Ensure that the I2S4 and I2C0 interfaces are correctly configured and match the requirements of the ES8336 codec.
  3. Codec Configuration: Check the codec’s configuration settings and adjust them as needed to match the expected values.
  4. Software Configuration: Review the audio pipeline and software configuration to ensure that they’re correct and not causing the noise.
  5. Consult NVIDIA Documentation: Refer to the NVIDIA documentation for the Jetson Orin NX and the ES8336 codec to ensure that you’re following the recommended configuration and setup procedures.

By following these recommendations, you should be able to identify and resolve the issue causing the noise in the audio output.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi lzyu1110,

Are you using the devkit or custom board for Orin NX?

Please also share the full dmesg for further check.
Is there any error when you get “very noticeable noise”?

custom board
i didn’t find any errors in log file when playback

dmesg.txt (147.1 KB)

Hi,
any suggestions?

Please check your HW design for any noise affecting I2S and Audio codec signals. Using oscilloscope to check I2S and audio codec signals might help you debug further to find source of noise coupling, if any.

[   11.821589] xiaoz es8336_i2c_probe
[   11.821724] es8336 0-0010: xiaoz Can not read property spk_ctl_gpio
[   11.821730] es8336 0-0010: Can not read property hp_det_gpio

I found above 2 error reported in the dmesg you shared.
Please also check if you’ve ported them correctly and the current noise issue may be caused due to missing them.

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