Agx orin rt5640 bsp36.4

做的板子 rt5640 和 agx orin devkit一样的音频芯片 , 外接扬声器hpol hpor ,只有i2c控制脚改变 31e0000改成316000 ,测试的时候没有声音 设备声卡已经正常生成 对比devkit log 发现 下面最后一行log card1没有

image

经过排查 发现设备树增加没有生效 然后在tegra234-p3737-0000+p3701-0000.dts

增加

但是启动报错

设备正常发现

image

这个是asoc 报错

Hi Wang,

Please provide below info, commands to collect that is available here Audio Setup and Development — NVIDIA Jetson Linux Developer Guide 1 documentation

  • DT from target.
  • Full Kernel logs.

dmesglog.txt (79.4 KB)
dt.log (396.6 KB)

image
Above change is not reflected in the target DT due to which error is observed.

By default tegra234-p3737-0000+p3701-0000-dynamic.dts overlay DT has the mentioned change which will be applied at the time of boot. Please try editing this file and check.

原来都是在这个里面更改的 不知道为什么这个里面修改没有去覆盖原来的,只能从原始设备树去修改

我查看了一下 devicetree是生效的

sound-dai is pointing to I2S1 phandle rather than rt5640.
image

		nvidia-audio-card,dai-link@76 {
			format = "i2s";
			link-type = <0x02>;
			status = "okay";
			phandle = <0x25a>;
			link-name = "rt5640-playback";

			codec {
				sound-dai = <0x1bd 0x02>;
				prefix = "CVB-RT";
			};
		};

		i2s@2901000 {
			phandle = <0x1bd>;

这个是devkit 默认的配置 直接复制过来的

Understand your point. From the target DT log shared, the codec dai is not pointing to RT5640.

Suspecting sound-dai = <&rt5640 0> is getting overwritten by sound-dai = <&tegra_i2s1 I2S_DUMMY>. Could you please check the DT files and try removing the other sound-dai entry manually.

我移除之后确实不报错了 但是测试没有声音

Please provide below data, log commands available in the link mentioned here, Agx orin rt5640 bsp36.4 - #9 by Sheetal.G.

  • Dump of ALSA mixer controls.
  • Clock summary during playback.
  • Kernel logs after playback.
  • Playback command used and the behavior like does it run for the mentioned duration or it exits immediately.
  • Probe the I2S and AUD_MCLK and share the behavior.

Only this log won’t help. Please provide the logs as mentioned here Agx orin rt5640 bsp36.4 - #19 by Sheetal.G

上面有些log 操作怎么去查看

Commands to collect logs are mentioned in above link.

Behavior and command used for playing the audio.