How to enable and record i2s3 on tx2

Hi,
my i2s3 (in J21connector) connects to adau7118 which is a PDM to I2S converter chip…
how to enable i2s3 and record audio? if possible, please show me the commands.
Thanks!

Hello!

For Jetson TX2, I2S3 is routed to the M.2 Key E connector (J18). I2S1 is routed to the 40-pin header connector (J21). There is a table in the developer guide for Jetson that lists the interfaces available for each Jetson board and can be found here.

Assuming that the PDM to I2S converter chip requires no configuration (via I2C or SPI), then you should be able to test this by …

  1. Configure the pinmux for I2S1
$ sudo /opt/nvidia/jetson-io/config-by-function.py -o dtb i2s1
$ sudo reboot
  1. Capture audio from I2S1
$ arecord -D hw:tegrasndt186ref,0 -c <num-channels> -r <sample-rate> -f <sample-size> -d 30 cap.wav

For example, if the converter chip support stereo, 48kHz and 16-bit samples …

$ arecord -D hw:tegrasndt186ref,0 -c 2 -r 48000 -f S16_LE -d 30 cap.wav

There are more examples for using the I2S interface in the developer guide and can be found here.

Regards,
Jon

I2S4 already generated signals, thank you!

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