# Mangoh red i2s support

**URL:** <https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446>\
**Category:** mangOH Red\
**Created:** [October 19, 2020, 9:58pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446 "2020-10-19T21:58:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 19, 2020, 9:58pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/1 "2020-10-19T21:58:41Z")

</div>

Hello,

We are trying to use a [mems I2S microphone](https://cdn-shop.adafruit.com/product-files/3421/i2S+Datasheet.PDF) on one of our project base on mangoh red with wp7601. We were using the audio connection and record function from example by legato: [[https://docs.legato.io/17\_10/c\_audioCapturePlayback.html](https://docs.legato.io/17_10/c_audioCapturePlayback.html)](Sample code of audio playback and capture)

It work with mic connected to 3.5mm port so we changed to i2s interfaces. We connected the i2s mic on IoT expand board : [[https://mangoh.io/iot-cards](https://mangoh.io/iot-cards)] (pin 33 - 36), build and install works, no error while running the app. The wav file is recorded as expected but with no sound (all zeros on the data chuck).

Also we noticed that the example [[https://docs.legato.io/17\_10/c\_audioCapturePlayback.html](https://docs.legato.io/17_10/c_audioCapturePlayback.html)](Sample code of audio playback and capture) says:

“Main audio paths are: (for file playback/recording only)”,  
" - MIC (for mic/speaker)",  
" - PCM (not supported on mangOH board - for AR755x, AR8652 devkit’s codec use, "  
“execute ‘wm8940\_demo --pcm’ command)”,  
" - I2S (not supported on mangOH board - for AR755x, AR8652 devkit’s codec use, "  
“execute ‘wm8940\_demo --i2s’ command)”,  
" - USB (for USB)",

Is that mean mangoh red doesn’t support i2s interfaces? Can anyone help with it?

Thanks in advanced!!

Zirun

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 19, 2020, 11:10pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/2 "2020-10-19T23:10:17Z")

</div>

Have you tried with at!avcfg to set up i2s

---

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 19, 2020, 11:54pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/3 "2020-10-19T23:54:04Z")

</div>

Hi,

No, I haven’t … What AT command should I use to set up?( I try type: “at!avcfg” and it shows error.)

Thanks!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 19, 2020, 11:59pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/4 "2020-10-19T23:59:07Z")

</div>

You can download the AT command user guide for detail

---

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 20, 2020, 4:05pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/5 "2020-10-20T16:05:58Z")

</div>

Hi,

Sorry for late reply. I try with the AT command (at!avcfg=1,1,1) and it says OK.

Thanks

---

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 20, 2020, 9:26pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/6 "2020-10-20T21:26:43Z")

</div>

Hi,

Just quick question on using the I2S on mangoh red, do I need to populate R520 and depopulate R508 to set the MUX connect to IoT connector (where the i2s connecter is located)?

Thanks!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 21, 2020, 12:33am UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/7 "2020-10-21T00:33:30Z")

</div>

Do you see the i2s bus activity on the iot connector?

---

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 21, 2020, 5:18pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/8 "2020-10-21T17:18:19Z")

</div>

Sorry what did you mean i2s bus activity, I am kind of new to I2S.

Also I plug my scope on but didn’t see any signal on WS, Data and CLK line while the app is recording, and the playback on the file is silent as well (all zeros)

Thanks!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 21, 2020, 11:04pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/9 "2020-10-21T23:04:57Z")

</div>

You can set the profile by AT!AVSETPROFILE and then dial a voice call to see if there is i2s activity by scope

---

<div class="post-metadata">

**Author:** ![zirunhong](https://avatars.discourse-cdn.com/v4/letter/z/a8b319/32.png) [@zirunhong](https://mangoh.discourse.group/u/zirunhong)\
**Post date:** [October 21, 2020, 11:45pm UTC](https://mangoh.discourse.group/t/mangoh-red-i2s-support/5446/10 "2020-10-21T23:45:55Z")

</div>

Will give it a try, thanks for your help!
