2023-10-02 07:06 PM
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.
Solved! Go to Solution.
2023-10-03 01:02 AM
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.
2023-10-03 01:02 AM
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.