Hi CoreELEC Development Team and fellow community members,
I submit this feature request to ask for native support of the ALSA loopback kernel module snd-aloop in the official kernel of CoreELEC 22 NO latest nightly builds. This optional module will unlock stable system-level audio routing to run customized HRIR & 2×2 matrix CTC spatial audio processing, namely virtual surround sound on Amlogic playback devices.
Existing Limitations on CoreELEC 22 NO Nightly
The current nightly releases of CoreELEC 22 NO do not compile and ship the snd-aloop kernel module, bringing critical obstacles for advanced audio DSP implementation:
- No persistent system-wide virtual audio endpoint is available to capture full PCM audio streams before signals are sent to physical audio hardware.
- Once audio bitstream passthrough is enabled, compressed formats including AC3, DTS and Dolby Atmos are transmitted directly to HDMI hardware, skipping all software DSP pipelines entirely, which renders virtual surround functions useless.
- Current makeshift workarounds like Entware-based custom ALSA configuration and temporary PulseAudio loopback modules are extremely fragile. All custom settings get discarded after system reboot or nightly version upgrade, failing to support long-term stable DSP operation.
- FIFO buffering can only ease minor playback jitter, yet it cannot implement complete audio routing required by fixed-block low-latency DSP workflows.
My Practical DSP Use Case on CoreELEC
I have built a dedicated HRIR-CTC spatial audio solution with fixed standardized parameters:
- Sample rate: 48kHz, float32 precision
- Processing block size: 64 samples
- 2048-point FFT for overlap-add convolution
- 1024-tap HRIR filter bank
- 2×2 matrix CTC (Crosstalk Cancellation) algorithm for loudspeaker virtual surround rendering
This architecture relies strictly on a stable ALSA loopback device: raw PCM audio is routed to the virtual capture endpoint, processed with matrix inversion and frequency-domain convolution, then output to physical HDMI or USB DAC devices. Without native snd-aloop support, this mature virtual surround solution cannot run properly on the latest CoreELEC 22 NO nightly builds.
Exact Technical Requirements
- Enable the kernel flag CONFIG_SND_ALOOP in the build configuration for CoreELEC 22 NO nightly releases.
- Compile the snd-aloop.ko module and bundle it into the official system image, allowing users to load the module manually via the modprobe snd-aloop command.
- Preserve all default native functions completely: HDMI bitstream passthrough, hardware video decoding and original audio output will stay unchanged.
- The loopback virtual sound card acts only as an optional feature for advanced users, with zero interference to the out-of-box playback experience for regular users.
Community Benefits
- Empower Amlogic CoreELEC devices to support stable, system-wide HRIR/CTC spatial audio and virtual surround solutions.
- Accommodate professional fixed-block low-latency DSP pipelines for audio enthusiasts, replacing unstable third-party hacks.
- Expand CoreELEC’s audio capability beyond pure media playback, supporting audio capture, multi-room streaming and customized audio processing scenarios.
- This is a non-breaking supplementary feature that adds merely one optional kernel module, with no negative impact on system stability, resource overhead or default playback performance.
I fully understand that CoreELEC prioritizes lightweight, reliable media playback. This feature is purely optional and targeted at advanced users without breaking the core design philosophy of the project.
Thanks very much for your time and consideration.
Best regards