你好,我在R36.4系统下调试RT5640时遇到问题了。
同样的板子,在R35.1.0和R35.4.1都可以。
外接Line Out ,i2c控制脚31e0000,测试的时候没有声音,设备声卡已经正常生成。
以下为相关配置和log,麻烦尽快帮忙看下!万分感谢!
dt.log (319.9 KB)
kernel_log.log (80.1 KB)
reg_dump.txt (585 Bytes)
settings.txt (331.4 KB)
以上方法解决不了呢。
麻烦帮忙看下,谢谢!
期待收到回复!
Please refer to Audio Setup and Development — NVIDIA Jetson Linux Developer Guide 1 documentation to see if able to help. Thanks
已经反复查看过了,目前还是不行,设备是生成了。
查看了i2c@1c的值,好像都没有加载到。
麻烦帮忙细看下,谢谢。
Hi,
Routing and widgets properties doesn’t look correct.
Properties names should prefix with nvidia-audio-card
and values should be as per below screenshot,
Could you please explicitly share the changes made to the DT routes and widgets to make the LOUT functional, as well as the mixer control settings?
你好!添加以后可以查到I2C@1c的值发生改变了!非常感谢!
但是播放还是没有声音。
修改后的设备树文件如下:
dt.txt (319.8 KB)
我在widgets和routing都加了Line OUT相关内容,这种添加方法在R35.1.0和R35.4.1是可用的。
nvidia-audio-card,widgets =
"Headphone", "CVB-RT Headphone Jack",
"Microphone", "CVB-RT Mic Jack",
"Speaker", "CVB-RT Int Spk",
"Microphone", "CVB-RT Int Mic",
"Line", "CVB-RT Line Out";
nvidia-audio-card,routing =
"CVB-RT Headphone Jack", "CVB-RT HPOL",
"CVB-RT Headphone Jack", "CVB-RT HPOR",
"CVB-RT IN1P", "CVB-RT Mic Jack",
"CVB-RT IN2P", "CVB-RT Mic Jack",
"CVB-RT Int Spk", "CVB-RT SPOLP",
"CVB-RT Int Spk", "CVB-RT SPORP",
"CVB-RT DMIC1", "CVB-RT Int Mic",
"CVB-RT DMIC2", "CVB-RT Int Mic",
"CVB-RT Line Out", "CVB-RT LOUTL",
"CVB-RT Line Out", "CVB-RT LOUTR";
控制设置如下:
amixer -c APE cset name="CVB-RT LOUT MIX DAC L1 Switch" "on"
amixer -c APE cset name="CVB-RT LOUT MIX DAC R1 Switch" "on"
麻烦再帮忙看看,谢谢!
Please try removing LINE entry from widgets and update routing CVB-RT Line Out
entry with CVB-RT Int Spk
.
Also, set below controls as well,
amixer -c APE cset name="CVB-RT OUT Playback Switch" "on,on"
amixer -c APE cset name="CVB-RT OUT Playback Volume" "31"
你好,感谢建议,但当我按照如下操作,
输出设备就丢失了。
Please share the DT (from target) and kernel (dmesg) log.
The above is not done as expected.
Error log:
[ 19.469233] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT Line Out
[ 19.469244] tegra-asoc: sound: ASoC: Failed to add route CVB-RT LOUTL -> direct -> CVB-RT Line Out
[ 19.469298] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT Line Out
[ 19.469301] tegra-asoc: sound: ASoC: Failed to add route CVB-RT LOUTR -> direct -> CVB-RT Line Out
[ 19.469355] tegra-asoc: sound: ASoC: no source widget found for CVB-RT Int Spk
[ 19.469357] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Int Spk -> direct -> CVB-RT Line Out
[ 19.475946] tegra-asoc: sound: snd_soc_register_card failed (-19)
Update the widgets and routing exactly like below, no other entries:
nvidia-audio-card,widgets =
"Headphone", "CVB-RT Headphone Jack",
"Microphone", "CVB-RT Mic Jack",
"Speaker", "CVB-RT Int Spk",
"Microphone", "CVB-RT Int Mic";
nvidia-audio-card,routing =
"CVB-RT Headphone Jack", "CVB-RT HPOL",
"CVB-RT Headphone Jack", "CVB-RT HPOR",
"CVB-RT IN1P", "CVB-RT Mic Jack",
"CVB-RT IN2P", "CVB-RT Mic Jack",
"CVB-RT Int Spk", "CVB-RT SPOLP",
"CVB-RT Int Spk", "CVB-RT SPORP",
"CVB-RT DMIC1", "CVB-RT Int Mic",
"CVB-RT DMIC2", "CVB-RT Int Mic",
"CVB-RT Int Spk", "CVB-RT LOUTL",
"CVB-RT Ink Spk", "CVB-RT LOUTR";
In case still facing issues, please share the DT and kernel logs again.
There was typo from my end, please correct it.
Replace "CVB-RT Ink Spk"
→ "CVB-RT Int Spk"
成功了!非常感谢!!!
想顺便请教一下,如果是R36.3在orin nx/nano上使用speaker,widgets和routing是不是用默认的就可以了呢?
Default settings that were shared initially are not the right ones. Probably the overlay DT is not applied at the boot time that takes care of these settings as mentioned here Agx orin rt5640 bsp36.4 - #11 by Sheetal.G
For Orin Nano/NX also the settings should be the ones worked for AGX Orin.
好的!我会先尝试看看的!感谢!