Jetson Orin NX uses the TLV320AIC3206 codes

Dear Team,
I want to implement line in and line out functions with TLV320AIC3206. I refer to the TLV320AIC3204 Driver will support for AGX Orin 64GB SOM?.

when i user command arecord or apply.
the kernel message will show below failed.
tegra210-i2s 2901100.i2s: timeout: failed to reset I2S for capture
tegra210-i2s 2901100.i2s: ASoC: PRE_PMU: I2S2 TX event failed: -110
tegra210-i2s 2901100.i2s: timeout: failed to reset I2S for playback
tegra210-i2s 2901100.i2s: ASoC: PRE_PMU: I2S2 RX event failed: -110

But mclk and LRCK is work .
~# arecord -D hw:APE,0 -r 48000 -c 2 -f S32_LE record.wav
~# aplay -D hw:APE,0 record.wav



kernelmessage.txt (83.4 KB)
pin_map.txt (39.3 KB)
audio_command_message.txt (7.2 KB)
codecs.patch (3.8 KB)
tegra_codecs.c (7.8 KB)

YUN

Hi yunlfwk9

What is the frequency value of ch1 and ch2 above? and which one is MCLK and LRCK?

Can you measure I2S BCLK as well and provide the signal frequency value you see?
Also please share the device-tree patch you are using.

HI spujar

the yellow is MCLK , the clock is 12.28MHz
the bule is LRCK , the clock is 48.08 KHz
update new file
the SCLK clock is 3.072Mhz
the TLV320AIC3206 to I2S2
MCLK ← MCLK
BCLK ↔ SCLK
WCLK ↔ LRCK




tegra234-p3767-fixed-regulator.dtsi (4.5 KB)

YUN

Your I2S and MCLK signals look absolutely fine.
Can you please share your device-tree patch? Are you using Tegra I2S as master or slave?

HI spujar

the file is our dts patch.
tegra234-p3767-fixed-regulator.dtsi

the dts get form OS
orin_nx_tlv.dts (426.5 KB)

YUN

can you try by removing xxx-master properties from below. See the commented properties below.

nvidia-audio-card,dai-link@77 {
			format = "i2s";
			link-type = <0x02>;
			//frame-master;
			status = "okay";
			//bitclock-master;
			phandle = <0x371>;
			link-name = "ti-capture";

			cpu {
				phandle = <0x372>;
				sound-dai = <0x6a 0x01>;
			};

			codec {
				sound-dai = <0x75 0x00>;
				prefix = "TI-TLV320";
			};
		};
1 Like

thank you

Hi yunlfwk9

Can you please confirm if it is working for you now?
If possible, please summarize and attach all the changes you had to make to get your codec working.

HI spujar

I refer to the TLV320AIC3204 Driver will support for AGX Orin 64GB SOM? .

After remove below command.
//frame-master;
//bitclock-master;

the timeout issue is done.

YUN

Hope your issues got resolved now. Can this thread be closed now?

HI spujar

OK

thank you

YUN

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