Hi y.rodriguez,
Thanks for the data.
“I’m using I2S1”.
But your schematic diagram in Jetson xavier nx I2S with pcm1808 - #7 by y.rodriguez shows that you are taking I2S interface out of 193, 195, 197, 199. This corresponds to I2S5. Correct me if you are using some other pins. The I2S numbering can be figured out from the pinmux sheet
I have generated cfg from the dt generated by above sheet and the pinmux settings in cfg files for I2S5 and aud_mclk should be as given below
pinmux.0x02431020 = 0x00000408; # aud_mclk_ps4: aud, pull-up, tristate-disable, input-disable, lpdr-disable
pinmux.0x02431080 = 0x00000444; # dap5_sclk_pt5: i2s5, pull-down, tristate-disable, input-enable, lpdr-disable
pinmux.0x02431078 = 0x00000404; # dap5_dout_pt6: i2s5, pull-down, tristate-disable, input-disable, lpdr-disable
pinmux.0x02431070 = 0x00000454; # dap5_din_pt7: i2s5, pull-down, tristate-enable, input-enable, lpdr-disable
pinmux.0x02431068 = 0x00000444; # dap5_fs_pu0: i2s5, pull-down, tristate-disable, input-enable, lpdr-disable
The dump you provided does not align with above.
Please correct the same. You could make the settings through this alternate method as well for testing sake. But follow the documented method for making pinmux changes in general
sudo apt-get install -y busybox
sudo busybox devmem2 0x02431068 w 0x444
sudo busybox devmem2 0x02431070 w 0x454
sudo busybox devmem2 0x02431078 w 0x404
sudo busybox devmem2 0x02431080 w 0x444
sudo busybox devmem2 0x02431020 w 0x408
After setting above pinmux, need to correct amixer settings as below to set up path for recording
amixer -c 1 cset name="I2S5 codec master mode" "cbs-cfs"
amixer -c 1 cset name="ADMAIF1 Mux" I2S5
arecord -D hw:1,0 -r <rate> -c <channels> -f <sample_format> <out_wav>
Let me know if this helps
Thanks