I connected a Topping E30 II Lite USB external DAC to a LibreElec system running on OrangePI 3. In the audio settings, the maximum sample rate is only 384 kHz, but the DAC can handle 768 kHz. When I play a 768 kHz music, the DAC shows 384 kHz on its display, but when I play the same music on a desktop computer with the same DAC, it shows 768 kHz. How can I get LibreElec to handle 768 kHz?
[Orange Pi 3] 768kHz Sample Rate on Topping E30 II Lite
-
LaySoft -
November 28, 2024 at 8:58 AM -
Thread is Unresolved
-
-
I'm moderately confident the answer will be "the Linux drivers only support up to 384Khz" but please restart Kodi in debug mode, run "pastekodi" and share the URL so we can see audio properties and (hopefully) identify the kernel drivers being used.
-
Here is the log: https://paste.libreelec.tv/big-buck.log
The problem is in tihs line:I think you are right, the driver only reports this sample rates.
What is the solution?
-
We had a similar issue here:
ThreadRaspberry Pi 4 + LibreElec + Music Player Daemon + WavPack DSD
Hello!
I installed LibreElec 9.95.1 and mpd (as service addon) and found that when playing WavPack DSD files with a samplerate of more than 384 kHz, the sound is very interrupted. A search on the Internet did not give anything, the mpd settings also did not bring any result. And then I accidentally looked into:
mpd -V
— and found that it was built without native support for the WavPack format, that is, it decodes it using ffmpeg. And ffmpeg DOES NOT RECOGNIZE DSD compressed with WavPack.
…greenvorbisfanJune 29, 2021 at 3:05 PM So maybe the Linux driver is capable, but MPD still needs the update from RPi.
-
In the older thread the "update from RPi" was a simple version bump to the MPD software used in the add-on, and that change was merged for all devices (back in 2021) and likely bumped to something more current a bunch of times since then. You can also see that we build mpd with WavPack support: https://github.com/LibreELEC/Libr…/package.mk#L91
Please run "lsusb -tvv | paste" and share the URL. This should list the USB devices and the drivers used - likely to be a generic USB audio device driver. I can then poke around in kernel code to see what max rates the driver supports (likely 384KHz).
-
Here are some specs:
It only needs the ASIO driver. That driver is used by many audio interfaces, and available for Linux since a long time. I doubt it misses features.
It supports 768kHz in 32 bit PCM mode, and that's transmitted over S/PDIF (IEC958) (not PCM):
So maybe something goes wrong with IEC958 to PCM conversion.
-
Here is the output: https://paste.libreelec.tv/natural-hedgehog.log
-
If you update to an LE13 nightly where the kernel is now on Linux 6.12, this patch (and others in the same series) is included:
[3/3] ASoC: spdif: extend supported rates to 768kHz - Patchwork
Run "pastekodi" with Kodi in debug mode again post-update.
-
I tried LibreELEC-H6.aarch64-13.0-nightly-20241128-41acc8a-orangepi-3.img version, but in the Limit sampling rate menu the maximum value is also 384.
Unfortunately the CEC not working, so I restore to my previously backed up 12.0.1 system. Here is the log: https://paste.libreelec.tv/renewed-sailfish.log -
Quote
Support for 24-bit and floating-point audio at up to 384,000hz
^ read from https://kodi.wiki/view/AudioEngine .. and visible here:
xbmc/xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp at master · xbmc/xbmcKodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and…github.comPatching that list to add a higher value would be simple, but I doubt things are that simple.
-
I'm not sure exactly the sample rate values come from this list, because I have them in the menu: 44.1, 48.0, 88.2, 96.0, 192.0, 352.8, 384.0