Not have the rtl5640 sound card,how can i do?

with devkit ,the cpu is 3701-0040 32G production module,
with jetpak5.1 L4t 35.2.1
use “./flash.sh jetson-agx-orin-devkit mmcblk0p1” to flash the cpu module.

root@tegra-ubuntu:/home/orin# cat /proc/asound/cards
0 [HDA ]: tegra-hda - NVIDIA Jetson AGX Orin HDA
NVIDIA Jetson AGX Orin HDA at 0x3518000 irq 117
1 [APE ]: tegra-ape - NVIDIA Jetson AGX Orin APE
Unknown-JetsonAGXOrin-NotSpecified

and exec “aplay huoche.wav” is ok.

but used myself builded kernel and dtb, cannot get the sound card.

root@tegra-ubuntu:/home/orin# cat /proc/asound/cards
0 [HDA ]: tegra-hda - NVIDIA Jetson AGX Orin HDA
NVIDIA Jetson AGX Orin HDA at 0x3518000 irq 115

with default kernel config. no change.

I modify the kernel and device tree by modifying the file: /boot/Image , /boot/dtb/kernel_tegra234-p3701-0004-p3737-0000.dtb ,/boot/extlinux/extlinux.conf ;

Hi ,
Could you please share the modification have done on top of production code ?

Thanks,

Hi, DRAMESH,
i have No changes have been made.

the third floor is mean,Change the kernel and device tree by replacing the above files. but the kernel souces files is not change.

Hi, the kernel souces file is:
MD5 (public_sources.tbz2) = 7098c5a31cee5e849ae383887ce13a97

三楼想表达的意思是,我不是通过再次烧写,而是通过,替换 /boot 中,相应的文件,来替换内核跟设备树。我用public_sources.tbz2解压之后,没有做任何改动。

I also did an experiment, I patched enable_onboard_codec.diff , but it didn’t work.

lhz.dts is my dtb.
kernel.dts is by flash.sh auto download dtb.
lhz.dts (487.8 KB)
kernel.dts (525.8 KB)

i will get the new souce by run ./source_sync.sh to download with git. to test.

i got the kernel source by running source_sync.sh, and build kernel and dtb ,the sound card is working good.

O.K, Thanks for letting me know.

Hi:
When i exec “aplay file.wav”,the sound is so low. How should i config ?

when i make menuconfig ,i found:


the driver of rt5640 is no select.
is it right?

is it right?

If I execute the following series of commands, no sound is heard.

AHUB Mixer Controls

amixer -c APE cset name=“I2S1 Mux” “ADMAIF1”

#Codec RT5640 Mixer Controls (apply on Jetson AGX Orin)

amixer -c APE cset name=“CVB-RT HP Playback Volume” 30
amixer -c APE cset name=“CVB-RT Stereo DAC MIXR DAC R1 Switch” “on”
amixer -c APE cset name=“CVB-RT Stereo DAC MIXL DAC L1 Switch” “off”
amixer -c APE cset name=“CVB-RT HP R Playback Switch” “on”
amixer -c APE cset name=“CVB-RT HP L Playback Switch” “off”

Start playback

#aplay -D hw:APE,0 huoche.wav
aplay -D hw:APE,0 boom.wav

but
Only when i exec “aplay boom.wav” can hear sound.But the sound is small and not clear.

Hi ,
Could you please apply below Mixer control and play sound ? I see in your applied mixer control HP L is off !!
I believe both “huoche.wav” and “boom.wav” streams are stereo channels.

amixer -c APE cset name=“CVB-RT DAC MIXL INF1 Switch” “on”
amixer -c APE cset name=“CVB-RT DAC MIXR INF1 Switch” “on”
amixer -c APE cset name=“CVB-RT Stereo DAC MIXL DAC L1 Switch” “on”
amixer -c APE cset name=“CVB-RT Stereo DAC MIXR DAC R1 Switch” “on”
amixer -c APE cset name=“CVB-RT HPO MIX DAC1 Switch” “on”
amixer -c APE cset name=“CVB-RT HP L Playback Switch” “on”
*amixer -c APE cset name=“CVB-RT HP R Playback Switch” “on”
*amixer -c APE cset name=“CVB-RT HP Playback Volume” “31,31”
*amixer -c APE cset name=“CVB-RT DAC1 Playback Volume” “175,175”

Hi thanks for help:
It is because we mistakenly used the European standard to draw the circuit board, but in fact, the earphones around us use the American standard by default. That is to say, the mic is reversed from the ground.

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