Hi,
I’m testing audio function for Jetson Agx Orin
We are using JetPack 6.2 36.4.3
after using cmd
aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav
ll we can hear is noise.
we try to use scope to capture the wave
here is the cmd we are using
speaker-test -t sine -f 1000
and the result
What do I miss ?
Kevin
*** Please note that this reply is generated by LLM automatically ***
I’d be happy to help you troubleshoot the audio issue on your Jetson AGX Orin!
First, let’s summarize the information you provided:
You’re using JetPack 4.6.2 (3643) on your Jetson AGX Orin.
You’re trying to play an audio file using the command aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Center.wav, but all you hear is noise.
You’ve used a scope to capture the wave image, which is attached as image 13301773 (290 KB).
You’ve also used the speakertest command with the option t sine f 1000, and the result is attached as image 19201375 (199 KB).
Now, let’s analyze the situation:
Audio Formats Supported
According to the documentation, the Jetson AGX Orin ASoC driver supports the following audio formats:
Sample size: 8 bits (S8), 16 bits (S16_LE), or 24/32 bits (S32_LE)
Sample rate: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88400, 96000, 176400, or 192000 Hz
Channels: 1 or 2
Possible Issues
Based on the information you provided, here are some potential issues that might be causing the noise:
Incorrect audio format : Make sure that the audio file you’re trying to play is in a format that’s supported by the Jetson AGX Orin ASoC driver. You can check the format of the audio file using tools like ffprobe or mediainfo.
Incorrect sample rate : Ensure that the sample rate of the audio file matches one of the supported sample rates listed above.
Incorrect channel configuration : Verify that the audio file is configured for the correct number of channels (1 or 2).
Hardware issue : It’s possible that there’s a hardware issue with the audio panel header (J511) or the RT5640 codec on your Jetson AGX Orin.
Troubleshooting Steps
To further troubleshoot the issue, you can try the following steps:
Check the audio file format : Use tools like ffprobe or mediainfo to check the format of the audio file.
Try a different audio file : Play a different audio file that’s known to work on other systems to see if the issue is specific to the file you’re trying to play.
Check the sample rate : Verify that the sample rate of the audio file matches one of the supported sample rates listed above.
Check the channel configuration : Ensure that the audio file is configured for the correct number of channels (1 or 2).
Try a different playback command : Instead of using aplay, try using a different playback command like mpg321 or vlc to see if the issue is specific to aplay.
Check the hardware : Verify that the audio panel header (J511) and the RT5640 codec are functioning correctly.
If none of these troubleshooting steps resolve the issue, please provide more information about your setup and the exact commands you’re using, and I’ll do my best to help you further.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***
carolyuu:
Sample size: 8 bits (S8), 16 bits (S16_LE), or 24/32 bits (S32_LE)
Sample rate: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88400, 96000, 176400, or 192000 Hz
Channels: 1 or 2
We have try to change the setting
sudo amixer -c 1 cset name=‘ADMAIF1 Mux’ I2S1
sudo amixer -c 1 cset name=‘I2S1 Mux’ ADMAIF1
sudo amixer -c 1 cset name=‘I2S1 codec frame mode’ i2s
sudo amixer -c 1 cset name=‘I2S1 codec master mode’ cbs-cfs
sudo amixer -c APE cset name=“I2S1 codec master mode” “cbs-cfs”
sudo amixer -c 1 cset name=‘I2S1 Sample Rate’ 48000 codec match
sudo amixer -c 1 cset name=‘I2S1 Playback Audio Channels’ 2
sudo amixer -c 1 cset name=‘I2S1 Client Bit Format’ 16
sudo amixer -c 1 cset name=‘I2S1 Playback Audio Bit Format’ 16
sudo amixer -c 1 cset name=‘I2S1 Capture Audio Bit Format’ 16
sudo amixer -c 1 cset name=‘I2S1 BCLK Ratio’ 32
sudo amixer -c 1 cset name=‘I2S1 FSYNC Width’ 32
Here is the setting we used
But still, the headphone played noise
Kevin
Please try with Stereo audio file or speaker-test with ‘-c 2’ argument without any mixer controls settings after boot.
Hi
Still, noise comes out from headphone
Kevin
Please try RT5640 internal loopback and confirm if it’s still noisy. For steps refer, [AGX ORIN]audio codec RT5640 is not working with rel36.4 - #9 by mkumard .
Hi,
I have follow the link you gave me and change the dtb, but still the same
here is my dtb file
dtb.txt (334.3 KB)
Can you help me take a look at it
Thanks
Kevin
The comment mentioned above has the file named “rt5640_Internal_loopback.txt ” to run internal loopback usecase.
It explains the mixer controls settings for internal loopback and arecord will record the data played via aplay. Please check the recorded audio file if its noisy.
Hi
I try to use the cmd you provided to do the loopback test
amixer -qc APE cset name=’CVB-RT TDM Data Mux’ ‘DAC:AD1:AD2:NUL’
We can not use this cmd
other cmd show success. but the record sound play nothing.
Kevin
Please share aplay and arecord commands used.
Also, share the mixer controls settings. Use the below command,
$ amixer – c <cardID> contents > ~/settings.txt
Hi,
Here is the command I used
sox -n -r 48000 -c 2 -b 16 ./input.wav synth 30 sine 1000 vol -3db
amixer -qc APE cset name=‘CVB-RT DAC MIXL INF1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT DAC MIXR INF1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT Stereo DAC MIXL DAC L1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT Stereo DAC MIXR DAC R1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT HPO MIX DAC1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT HP L Playback Switch’ 1
amixer -qc APE cset name=‘CVB-RT HP R Playback Switch’ 1
amixer -qc APE cset name=‘CVB-RT HP Playback Volume’ ‘31,31’
amixer -qc APE cset name=‘CVB-RT DAC1 Playback Volume’ ‘100,100’
amixer -qc APE cset name=‘CVB-RT RECMIXL BST1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT RECMIXR BST1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT RECMIXL OUT MIXL Switch’ 1
amixer -qc APE cset name=‘CVB-RT RECMIXR OUT MIXR Switch’ 1
amixer -qc APE cset name=‘CVB-RT OUT MIXL DAC L1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT OUT MIXR DAC R1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT Stereo ADC1 Mux’ ‘ADC’
amixer -qc APE cset name=‘CVB-RT Stereo ADC MIXL ADC1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT Stereo ADC MIXR ADC1 Switch’ 1
amixer -qc APE cset name=‘CVB-RT ADC Boost Gain’ 2
amixer -qc APE cset name=‘CVB-RT IN1 Boost’ 2
amixer -qc APE cset name=‘CVB-RT IN2 Boost’ 2
amixer -qc 1 cset name=‘I2S1 Mux’ ‘ADMAIF1’
amixer -qc 1 cset name=‘ADMAIF1 Mux’ ‘I2S1’
no error show for the cmd above
but
amixer -qc APE cset name=’CVB-RT TDM Data Mux’ ‘DAC:AD1:AD2:NUL’
show error message
aplay -D hw:APE,0 ./input.wav &
arecord -D hw:APE,0 -r 48000 -c 2 -f S16_LE -d 25 ./cap.wav &
I download the cap.wav and tranform to mp3 format but there is no sound
settings.txt (331.4 KB)
Here is the setting dumped from the cmd you provide
Kevin
In the document the below 2 controls are set to ‘off’ but in the settings shared above these are set to 1 i.e. ‘on’. Please update and check.
amixer -qc APE cset name="CVB-RT RECMIXL BST1 Switch" "off"
amixer -qc APE cset name="CVB-RT RECMIXR BST1 Switch" "off"
Hi
after turn on the switch
the cap.wav played no sound at the front 7-8s and there comes a noise sound until the end 25s
here is the new setting
settings.txt (331.4 KB)
Kevin
kevintseng83:
after turn on the switch
Did you mean OFF here? The mentioned switch has to be OFF for internal loopback test.
Hi, Sorry for the late reply
I misunderstood what you meant
I’ve changed these two settings to off
but there is no sound at all
If these settings are on, there will be a noisy sound
Kevin
Hi
Additional information
there will be a short ‘bup‘ sound at the begining, something like opening a microphone,
but no sound after that.
Kevin
Could you please share the mixer controls settings.txt again.
Also, please try I2S1 internal loopback by following I2S_Internal_Loopback . You need to change the mixer controls settings from I2S2 → I2S1.
Hi, Sheetal
Turn out there could be some kind of hardware defect on this carrier board
we switched to another carrier board, and the sound can now be played normally.
Sorry for your time, and thanks for the support.
Kevin
Good to know it worked. Thanks for the update.