# Testing I2S2 (40-pin header)

**URL:** <https://forums.developer.nvidia.com/t/testing-i2s2-40-pin-header/127267>\
**Category:** Jetson AGX Xavier\
**Tags:** audio\
**Created:** [June 10, 2020, 11:51pm UTC](https://forums.developer.nvidia.com/t/testing-i2s2-40-pin-header/127267 "2020-06-10T23:51:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilkinsw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/wilkinsw/32/15482_2.png) [@wilkinsw](https://forums.developer.nvidia.com/u/wilkinsw)\
**Post date:** [June 10, 2020, 11:51pm UTC](https://forums.developer.nvidia.com/t/testing-i2s2-40-pin-header/127267/1 "2020-06-10T23:51:53Z")

</div>

We are porting a pair of I2S mics from the TX2 to the Xavier development board and I am having trouble getting I2S2\_CLK (pin 12) to start up.

On the TX2 we used I2S4 on the camera connector and had to do the following:

```auto
amixer -c 1 cset name="I2S4 Mux" "ADMAIF1"
amixer -c 1 cset name="ADMAIF1 Mux" "I2S4"

gst-launch-1.0 -vvv alsasrc device=hw:1,0 \
    ! 'audio/x-raw,format=S32LE,rate=48000,channels=2' \
    ....

```

I tried doing something similar on the Xavier, but with I2S2 instead of I2S4, but no luck. Could someone list the steps for sampling from a simple I2S device on the 40-pin header?

Thanks!  
Wilkins

---

<div class="post-metadata">

**Author:** ![jonathanh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jonathanh/32/14043_2.png) [@jonathanh](https://forums.developer.nvidia.com/u/jonathanh)\
**Post date:** [June 11, 2020, 5:35am UTC](https://forums.developer.nvidia.com/t/testing-i2s2-40-pin-header/127267/3 "2020-06-11T05:35:54Z")

</div>

Hello!

By default the pins for the I2S2 interface on the 40-pin header default to GPIO mode and need to be reconfigured as I2S2. If you have L4T r32.3 or later you can do this using the jetson-io tool [0] …

```auto
$ sudo /opt/nvidia/jetson-io/config-by-function.py -o dtb i2s2
$ sudo reboot

```

Regards,  
Jon

[0] [Welcome — Jetson Linux\<br/\>Developer Guide 34.1 documentation](https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fhw_setup_jetson_io.html%23)

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:22pm UTC](https://forums.developer.nvidia.com/t/testing-i2s2-40-pin-header/127267/5 "2021-10-18T18:22:26Z")

</div>

Closed on October 18, 2021, 6:22pm UTC


