In IMX7D ,Gstreamer pipeline it is working with 48k family sample rate but not working for 44.1k family
Hi, I’m the Toradex AI Assistant.
I might make mistakes or occasionally get you wrong. Our support team will step in if needed.
I’d be glad to help troubleshoot your GStreamer pipeline issue! To provide the most accurate guidance for your iMX7D setup, could you let me know which OS and version you are running? You can use the tdx-info command to get detailed information about your system configuration - you can find more details about this tool at this link.
This information will help me provide specific guidance for your GStreamer pipeline configuration and the 44.1kHz sample rate issue you’re experiencing.
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.
Provided Which OS and Version below.
cat /etc/os-release
PRETTY_NAME=“Ubuntu 22.04.5 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.5 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=“https://www.ubuntu.com/
UBUNTU_CODENAME=jammy
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$ uname -a
Linux C2662 6.8.0-90-generic #91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$ uname -r
6.8.0-90-generic
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$
root@colibri-imx7-emmc-mcp:~# uname -a
Linux colibri-imx7-emmc-mcp 6.1.154-6.8.4-devel+git.7b34dc04e4ff #1 SMP Thu Jan 8 05:45:43 UTC 2026 armv7l armv7l armv7l GNU/LinuxProvided Which OS and Version below.
cat /etc/os-release
PRETTY_NAME=“Ubuntu 22.04.5 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.5 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL=“https://www.ubuntu.com/
UBUNTU_CODENAME=jammy
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$ uname -a
Linux C2662 6.8.0-90-generic #91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$ uname -r
6.8.0-90-generic
medha@C2662:~/Desktop/YOCTO-NXP/oe-core/build$
root@colibri-imx7-emmc-mcp:~# uname -a
Linux colibri-imx7-emmc-mcp 6.1.154-6.8.4-devel+git.7b34dc04e4ff #1 SMP Thu Jan 8 05:45:43 UTC 2026 armv7l armv7l armv7l GNU/Linux
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.
we are using tlv320aic3240 codec with imx7d collibri. @ToradexAI
provide dts node that should work for both families
I don’t have specific information about the TLV320AIC3240 codec configuration for Colibri iMX7D in the available sources. The documentation I have access to focuses on the standard SGTL5000 codec that comes with Toradex modules and general device tree overlay concepts.
For custom codec integration like the TLV320AIC3240, you would need to:
Device Tree Overlay Approach
Based on the device tree overlay documentation, you can create a custom overlay to configure your TLV320AIC3240 codec (1). The general process involves:
- Creating a Device Tree Overlay: Write a custom overlay that defines your codec configuration (1)
- Compiling the Overlay: Use the Device Tree Compiler (DTC) to create a
.dtbofile (1) - Deploying the Overlay: Copy the binary file to
/dtb/overlays/directory in/boot(1)
Basic Overlay Structure
A device tree overlay follows this basic syntax (1):
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,colibri_imx7d";
};
However, for your specific TLV320AIC3240 codec configuration with both 44.1kHz and 48kHz family support, you would need the exact device tree node configuration from the codec’s datasheet and driver documentation.
Recommended Next Steps
Since the TLV320AIC3240 is a custom codec integration, I’d recommend:
- Consulting the TI TLV320AIC3240 datasheet for the specific device tree properties
- Checking the Linux kernel driver documentation for this codec
- Looking at existing device tree examples for this codec in the mainline kernel
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.
hi @RAKESH_BOINI ,
When you say “pipeline not working”, what exactly do you mean?
Do you get any error?