[Solved] Pops and Clicks with RoonBridge

Having issues with your DietPi installation, or, found a bug? Post it here.
jacobacci
Posts: 22
Joined: Tue Sep 04, 2018 10:38 am

[Solved] Pops and Clicks with RoonBridge

Post by jacobacci »

Hi all
I am new to DietPi, so please bear with me if I am overlooking the obvious.
Hi all
I have issues with pops and clicks when playing back DSD files. My setup is as follows:
  • Roon Core on PC with AMD Ryzen 7 1800X, plenty of RAM, Music on RAID0 array
  • Roon Bridge on Odroid C2 (installed via latest dietpi)
  • Aune S16 DAC connected to the Odroid C2 via USB (capable of PCM384 and DSD128)
The operation of the Odroid C2 and the Aune has been verified at all sample rates with Volumio for over a year.

With dietpi / RoonBridge PCM files up to 352.8 work without issues, no pops and clicks. With DSD64 and DSD128 impossible to listen to music, constant pops and clicks (in around 1 second intervals). The signal path in roon shows purple dot, no DSP engaged

I was wondering if anyone else has run into this issue and knows a solution.
I have also posted the question in the Roon Forum, but have not received any feedback.
https://community.roonlabs.com/t/pops-a ... d-c2/48740
Thanks a lot
jacobacci
Posts: 22
Joined: Tue Sep 04, 2018 10:38 am

Re: Pops and Clicks with RoonBridge

Post by jacobacci »

Thanks, WarHawk
your second URL pointed in the right direction. Of course I had no idea how to change the CPU affinity for interrupt 63.
A friendly Volumio Developer then told me how this is done in Volumio, by adding the following two line to rc.local before "exit 0":

/bin/echo 4 > /proc/irq/63/smp_affinity
/bin/echo 8 > /proc/irq/62/smp_affinity

That actually solved the problem. Smooth playback now.

@dietpi Developers. Could this be coded into the dietpi images for Odroid C2?
Thanks a lot
scumbag
Posts: 12
Joined: Mon Jul 30, 2018 4:20 am

Re: Pops and Clicks with RoonBridge

Post by scumbag »

Hi,

Is it possible to get an ETA from the dev's as to when they will be able to integrate the changes to the CPU affinity into the Dietpi kernal? I'm running an Audiophonics I2S streamer with Roon that is having same popping sound happening continually.
User avatar
MichaIng
Site Admin
Posts: 2417
Joined: Sat Nov 18, 2017 6:21 pm

Re: Pops and Clicks with RoonBridge

Post by MichaIng »

@scumbag @jacobacci
dietpi-process_tool actually allows to edit CPU affinities, but just for hard coded process names. But it looks like this is not a process but on firmware level? (Sorry really no idea about Roon or audio :P!)

Otherwise could you guys please show a screen of htop while playback, showing the processes and applied affinities?

Code: Select all

/bin/echo 4 > /proc/irq/63/smp_affinity
/bin/echo 8 > /proc/irq/62/smp_affinity
Looks a bid random. So basically the idea is to "attach" those two to different CPUs/threads, right? Would 1 and 3 work as well?

Issue opened: https://github.com/Fourdee/DietPi/issues/2101
- I hope Fourdee has some more insight (and device to test) and can quickly implement.
jacobacci
Posts: 22
Joined: Tue Sep 04, 2018 10:38 am

Re: Pops and Clicks with RoonBridge

Post by jacobacci »

Thanks for opening a issue. I see that the issue has since been closed / fixed.
Unfortunately with my Odroid C2 / dietpi 6.17 setup, pops and clicks still abound. DSD128 is covered in a sauce of pops and clicks.
My DAC is an Aune S16 connected via USB.
This is not the case with Volumio / UPnP, so its unlikely that the issue is with my hardware.
Has the fix been rolled out in 6.17, or is the rollout in a later upcoming version?
Thanks a lot
scumbag
Posts: 12
Joined: Mon Jul 30, 2018 4:20 am

Re: Pops and Clicks with RoonBridge

Post by scumbag »

I'd love to get an answer to this as well. My issue running an Audiophonics I2S / PI3 streamer is not as bad perhaps as other's on this thread but the constant pops and clicks are distracting. I've stopped using my unit at the moment and I'm using another device until this is fixed.
jacobacci
Posts: 22
Joined: Tue Sep 04, 2018 10:38 am

Re: Pops and Clicks with RoonBridge

Post by jacobacci »

I have now updated dietpi to 6.19 and the pops and clocks issue with Roon Bridge is still there. Will the fix be included in the next release?
User avatar
MichaIng
Site Admin
Posts: 2417
Joined: Sat Nov 18, 2017 6:21 pm

Re: Pops and Clicks with RoonBridge

Post by MichaIng »

Hmm the above fix should be actually applied on Odroid C2 when selecting USB DAC sound: https://github.com/Fourdee/DietPi/blob/ ... 1748-L1757

Can you verify:
cat /var/lib/dietpi/postboot.d/c2_smp.sh
cat /proc/irq/63/smp_affinity
cat /proc/irq/62/smp_affinity
jacobacci
Posts: 22
Joined: Tue Sep 04, 2018 10:38 am

Re: Pops and Clicks with RoonBridge

Post by jacobacci »

Thanks @MichaIng
This is what I'm getting when issuing the three commands:

Code: Select all

login as: root
root@192.168.0.153's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ────────────────────────────────────────────────
 DietPi | Sat 26/01/19 - 22:46
 ────────────────────────────────────────────────
 v6.19.7 | Odroid C2 (aarch64)
 ────────────────────────────────────────────────
 eth0 | 192.168.0.153
 ────────────────────────────────────────────────
 DietPi Team     : Daniel Knight (founder), MichaIng, K-Plan
 Image           : DietPi Core Team (pre-image: Meveric)
 Web             : https://DietPi.com | https://twitter.com/dietpi_
 Patreon Legends : PINE64 community
 Donate          : https://DietPi.com/#donate
 DietPi Hosting  : Powered by https://MyVirtualServer.com

 dietpi-launcher  = All the DietPi programs in one place.
 dietpi-config    = Feature rich configuration tool for your device.
 dietpi-software  = Select optimized software for installation.
 htop             = Resource monitor.
 cpu              = Shows CPU information and stats.

root@DietPi:~#

root@DietPi:/# cat /var/lib/dietpi/postboot.d/c2_smp.sh
cat: /var/lib/dietpi/postboot.d/c2_smp.sh: No such file or directory
root@DietPi:/# cat /proc/irq/63/smp_affinity
f
root@DietPi:/# cat /proc/irq/62/smp_affinity
f
It is not quite clear to me what you mean by "when selecting USB DAC sound"
Post Reply