Rt5640 doesn't work for jeston nano orin

The schematic wiring is as follows.

image

The device tree details can be found in the attached dt.log。

dt.log (314.3 KB)

Pin multiplexing details are shown in the attached pinmux_2430000.txt.The pins of I2S0 are multiplexed as I2S2 here.

pinmux_2430000.txt (31.5 KB)

The dmesg logs are attached.

kernel.log (62.4 KB)

The card1 configuration captured via amixer is attached.

setting.txt (325.0 KB)

Clock summary is attached.

clock.txt (40.5 KB)

Aplay command output is attached.

aplay.txt (3.1 KB)

Sound card 1 is configured, but the playback device is undetermined. No audio is output when playing via graphical tools.

Hi,

The RT5640 codec and rt5640-playback DAI link are present, but the endpoint connection appears incomplete.

The codec endpoint points to I2S2: remote-endpoint = <0xf0>;

However, the I2S2 DAP endpoint with phandle = <0xf0> does not point back to the codec endpoint. Please add the reciprocal remote-endpoint on the I2S2 endpoint.

Thanks for your reply.

The I2S2 DAP endpoint with phandle point back to the codec endpoint,the device tree details can be found in the attached dt.log.

dt2.log (314.4 KB)

Then,I get an error when recording audio with the following command.

$ arecord -D hw:APE,0 -c 1 -r 48000 -f S16_LE -d 15 1.wav

The error is:arecord:pcm_read:2221:read error:Input/output error.

I have disabled the endpoint below.

有其它音频占用(The error is arecord pcm read222 1read error Input output error.)

But the error still exits.