# Struggling with recording audio via the 3.5mm jack

**URL:** <https://mangoh.discourse.group/t/struggling-with-recording-audio-via-the-3-5mm-jack/949>\
**Category:** mangOH Green\
**Created:** [November 29, 2017, 2:07pm UTC](https://mangoh.discourse.group/t/struggling-with-recording-audio-via-the-3-5mm-jack/949 "2017-11-29T14:07:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selberg](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/selberg/32/311_2.png) [@selberg](https://mangoh.discourse.group/u/selberg)\
**Post date:** [November 29, 2017, 2:07pm UTC](https://mangoh.discourse.group/t/struggling-with-recording-audio-via-the-3-5mm-jack/949/1 "2017-11-29T14:07:49Z")

</div>

I’m struggling with recording audio via the 3.5 mm jack.

I have tested the audioPlaybackRec application ([http://legato.io/legato-docs/latest/c\_audioCapturePlayback.html](http://legato.io/legato-docs/latest/c_audioCapturePlayback.html)) and it will only record zeros in the wav file when executed with the following parameters: REC MIC /home/root/test.wav WAV

I have verified that both my mic and speaker works using the mangoVoiceCall application.

Is there anyone that can give me a hint of what is wrong?

I’m using Legato 16.10.3 on the Mangoh Green.

---

<div class="post-metadata">

**Author:** ![selberg](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/selberg/32/311_2.png) [@selberg](https://mangoh.discourse.group/u/selberg)\
**Post date:** [December 18, 2017, 10:34am UTC](https://mangoh.discourse.group/t/struggling-with-recording-audio-via-the-3-5mm-jack/949/2 "2017-12-18T10:34:54Z")

</div>

I created a small testa application and solved this problem by starting to play audio to the speaker before opening the mic with le\_audio\_OpenMic(). This will configure the audio mux (U500) to connect the 3.5mm jack to the internal codec.
