cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157F-DK2 Unable to Record Audio

tomzhu1024
Associate

I'm working on an audio-processing application with the STM32MP157F-DK2 discovery board. While evaluating the hardware, I built and installed the system using the distribution package. I used the following command to record sound via the 3.5mm audio jack:

arecord -D record_codec -f S16_LE -d 10 /tmp/rec.wav

After examining the resulting file, it seems like the board was unable to capture any sound from the 3.5mm audio jack input (which I connected to an AKG headphone that has a microphone). The only thing I can hear is some background noise (and it is still the case even if I use SSH to transfer the recorded file to my computer and play it back there, so it can't be the output issue).

Any insight for recording audio on this board? Thanks a lot.

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

HI @tomzhu1024 ,

Could you have a look to https://wiki.st.com/stm32mpu/wiki/Audio_troubleshooting_grid ?

Maybe an issue with 3.5mm Jack pinout which should be CTIA and not OMTP

Tested on my side with latest Ecosystem V5.0 and Jabra headset. Audio record work without any additional configuration.

After cleaned jack issues, maybe look at https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration#Cirrus_cs42l51_input_configuration

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
PatrickF
ST Employee

HI @tomzhu1024 ,

Could you have a look to https://wiki.st.com/stm32mpu/wiki/Audio_troubleshooting_grid ?

Maybe an issue with 3.5mm Jack pinout which should be CTIA and not OMTP

Tested on my side with latest Ecosystem V5.0 and Jabra headset. Audio record work without any additional configuration.

After cleaned jack issues, maybe look at https://wiki.st.com/stm32mpu/wiki/Soundcard_configuration#Cirrus_cs42l51_input_configuration

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.