GStreamer Audio Issues on iMX7D
Based on your system information showing a Colibri iMX7 module, I can help address your GStreamer pipeline issue with 44.1kHz sample rates.
Audio Codec Configuration
The Colibri iMX7 modules use the NXP/Freescale SGTL5000 audio codec (1). For audio playback and capture, the SGTL5000 supports various sample rates natively (1).
Sample Rate Compatibility
According to the documentation, stereo capture and playback can be achieved using Line-in functionality, and recording in various sample rates is natively possible (1):
root@apalis-imx6:~# arecord -r 48000 -f S16_LE -c 2 Capture48kHz.wav
Recording WAVE 'Capture48kHz.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
^C
root@apalis-imx6:~# arecord -r 8000 -f S16_LE -c 2 Capture8kHz.wav
Recording WAVE 'Capture8kHz.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
^C
Troubleshooting Steps
-
Verify ALSA Configuration: Check which audio devices are available:
cat /proc/asound/cards aplay -L -
Test Direct ALSA Playback: Try playing a 44.1kHz file directly with ALSA tools:
aplay -D hw:0,0 -r 44100 -f S16_LE yourfile.wav -
Check GStreamer Pipeline: For GStreamer audio playback on iMX7-based modules, you can use:
gst-launch-1.0 filesrc location=yourfile.wav ! wavparse ! alsasink device=hw:0,0
Clock Configuration Issues
There may be clock configuration differences between the 48kHz family (48000, 96000, 192000 Hz) and 44.1kHz family (44100, 88200, 176400 Hz) sample rates. The community has reported similar clock-related issues with mono audio on iMX6ULL and iMX7D modules (2).
Additional Resources
For more detailed GStreamer configuration and multimedia handling on iMX7-based modules, refer to the comprehensive documentation on video encoding and playback (3).
Best regards, Toradex AI Assistant.
If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.