Volumio for Raspberry PI with Experimental Real Time Kernel

Here you can find all important communications from Volumio's staff

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Volumio for Raspberry PI with Experimental Real Time Kernel

Postby michelangelo » Fri Dec 01 2017 23:12

In the last times I've been researching on how to improve the Sound Quality of Volumio, particularly with USB DACs, trying to squeeze the best out of the Raspberry PI and its USB BUS.

I've always been very skeptical when it came to Real-Time kernel usefulness for audio reproduction: my belief was that they were really useful when producing music, and their use in music playback did have little logic reason.
However, on the Raspberry PI, a RT kernel significantly mitigates the USB IRQ issues, and I must admit I've been pretty surprised by the sonic results of the tweaks I made.

I've also took the chance to add some USB Quirks to enable DSD Direct on a wider range of DACs. For some reasons that I don't understand, currently enabling DSD direct requires the USB VID\PID of a particular DAC to be added to a list in the Kernel. I really hope in the future the Linux kernel will adopt a better and standardized way of recognizing such capability.

Also, I've implemented a patch to handle properly DSD silence, and avoid the nasty bumps when skipping, playing or stopping DSD in DSD Direct mode (it's not included in 4.9, but it is in 4.10).

So I'm publishing this experimental release to know your feedback, and if you notice any improvement or degradation, compared to previous builds.
I'm trying the most empirical approach, but I am really keen to hear some subjective impressions from you guys.

Please note, this is an experimental release, and it will be excluded from normal update cycles, so if you would like to retain your settings and use future OTA updates, make sure you try this on a spare SD Card. Also make sure, that every time you select an audio device, restart your system for the optimizations to happen (this won't be necessary in future builds).
Last, this is only compatible with Raspberry PI2 and 3.

You can download it here:
http://updates.volumio.org/pi/volumiort ... pi.img.zip

Enjoy and let me know!
User avatar
michelangelo
Founder
 
Posts: 4071
Joined: Sun Dec 15 2013 23:18

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Volumio for Raspberry PI with Experimental Real Time Kernel

Postby marcellom » Sat Dec 02 2017 07:44

Hi Michelangelo....i dont have a usb dac, but ill try this real time kernell distro....
Thank you very much for your hard job :)
User avatar
marcellom
Objectivist
Objectivist
 
Posts: 233
Joined: Fri Nov 20 2015 22:14


Volumio for Raspberry PI with Experimental Real Time Kernel

Postby marcellom » Sat Dec 02 2017 13:15

After same hours listening music...
In my system everything seems the same as before...all sounds good in my kali, piano 2.1, rpi3.
Maybe, but is certainly psychoacoustic, some instruments seems more present in the central part...
I definitely do not hear pop and crack between one song and the other...in hires songs and dsd.
:)
User avatar
marcellom
Objectivist
Objectivist
 
Posts: 233
Joined: Fri Nov 20 2015 22:14


Volumio for Raspberry PI with Experimental Real Time Kernel

Postby dominique-tanguy » Sun Dec 03 2017 18:09

Dear Michelangelo,

I have just discovered this thread and immediately flashed a new SD card to test the solution with my USB DAC.

Installation was straighforward, apart for the language, mixed of French and English. Not a problem for a development version.

Soundwise, I am just starting the listening and it looks as if this is slightly better. Of course, not easy to make an A to B comparison.

For the moment, tnis is looking promising, there is certainly a small difference. I will take the time to continue the comparison...

Congratulations for your efforts to constantly improve the product!

Dominique
User avatar
dominique-tanguy
Serious Listener
Serious Listener
 
Posts: 79
Joined: Fri Jun 30 2017 17:28


Re: Volumio for Raspberry PI with Experimental Real Time Ker

Postby marcellom » Sun Dec 03 2017 19:20

... i notice that music inventory and update when i add some music is really slow...
Sometime music stop playing or stuttering when i do that...
:)
User avatar
marcellom
Objectivist
Objectivist
 
Posts: 233
Joined: Fri Nov 20 2015 22:14


Volumio for Raspberry PI with Experimental Real Time Kernel

Postby PatrickB » Sun Dec 03 2017 21:32

michelangelo wrote:In the last times I've been researching on how to improve the Sound Quality of Volumio, particularly with USB DACs, trying to squeeze the best out of the Raspberry PI and its USB BUS.

I've always been very skeptical....
I am trying to figure out how and where a RTK can help in improving SQ. The use-case of better, or at least more smooth, data throughput on the Pi USB bus I can understand. If a RTK is less prone to interrupts and therefor the USB bus can output its data more steady, this will improve the use of the USB bus especially when the sampling rate is going up (192 and up and also for DSD).

But the way the USB bus is used really depends on the connected USB DAC. The best use should be asynchronous transfer, meaning the DAC is the Master providing some leeway for not so steady datafeeds over the USB bus. Here the impact of a RTK is less I assume. And also off course the same DAC should provide (a very precise) good Master clock so the timing can be at its best providing quality analog output.

Not a lot of DAC's, even ones with USB input and supporting async data transfer, seem to be running as Master and providing a very good Master clock signal as well. Or at least I can not find enough information/tech specs to check it? Maybe something that could be made visible somewhere in the UI of Volumio to check this?

So in all other cases, the timing of everything is based on some kind of clock signal coming from our PI (or an additional device that does re-clocking using better clocks) embedded into the data transport. This could be on the USB bus or I2C. This is where I am wondering if a RTK can help on improving the timing in these signals as with a RTK things could run in a more steady pace with less (or shorter) interruptions.

Anyone any thoughts on this?
Raspberry PI B+ with Hifiberry Digi+ (Audio-GD DAC) and NAD A/V receiver with Dali speakers
User avatar
PatrickB
Objectivist
Objectivist
 
Posts: 353
Joined: Thu Jan 01 2015 20:52
Location: The Netherlands


Volumio for Raspberry PI with Experimental Real Time Kernel

Postby dominique-tanguy » Mon Dec 04 2017 19:29

I did several swaps between the two versions, listening the same song this evening and I confirm I can hear a difference. I cannot explain why... :?:

Dominique
User avatar
dominique-tanguy
Serious Listener
Serious Listener
 
Posts: 79
Joined: Fri Jun 30 2017 17:28


Re: Volumio for Raspberry PI with Experimental Real Time Ker

Postby michelangelo » Mon Dec 04 2017 23:19

Thank you guys for your reports. I noticed the system is a bit more unstable. Working on this.

As for SQ, I don't believe there is ANY direct improvement in SQ related to this, but only less dropouts on USB transfer.
User avatar
michelangelo
Founder
 
Posts: 4071
Joined: Sun Dec 15 2013 23:18


Re: Volumio for Raspberry PI with Experimental Real Time Ker

Postby gvasco » Tue Dec 05 2017 12:19

Just to clarify, for those of us using i2s DAC’s is there any real advantage to use this version over the main stable one or are the changes only useful/noticeable to those using USB DAC’s?


Sent from my iPhone using Tapatalk Pro
User avatar
gvasco
Sunday DIYer
Sunday DIYer
 
Posts: 40
Joined: Sun Oct 02 2016 17:59


Re: Volumio for Raspberry PI with Experimental Real Time Ker

Postby PatrickB » Tue Dec 05 2017 13:34

gvasco wrote:Just to clarify, for those of us using i2s DAC’s is there any real advantage to use this version over the main stable one or are the changes only useful/noticeable to those using USB DAC’s?


Sent from my iPhone using Tapatalk Pro
USB only


Verzonden vanaf mijn iPhone met Tapatalk
Raspberry PI B+ with Hifiberry Digi+ (Audio-GD DAC) and NAD A/V receiver with Dali speakers
User avatar
PatrickB
Objectivist
Objectivist
 
Posts: 353
Joined: Thu Jan 01 2015 20:52
Location: The Netherlands

Next

Return to Staff comunications

Who is online

Users browsing this forum: No registered users and 1 guest