I have a Mayflower ARC DAC/AMP (https://mayflowerelectronics.com/arc/) which I use with my Gentoo system, I randomly get some audio "hiccups" (Kinda like xruns) with it and I'm not sure why. I tried a lot of different configs, kernel, etc (listed bellow) but still having that problem.
I tried it with Windows 10 and the problem doesn't happen there, also, I tried a Ubuntu 18.10 live-usb and could reproduce it there too, so I don't think it is something specifically from my Gentoo system or the ARC hardware.
Now, I don't think this issue is simply a normal xrun, the reason is that if I run jackctl, I will still have the issue but jackctl will not log any xrun in the status window.
For the tests I tried, I tested using Jack, pulseaudio and alsa directly, I can reproduce the issue with all of them.
For jack, I tried some configs, realtime on/off, sample rate 48000/96000, Frames/Period 64/128/256/1024, Periods/Buffer 2/3/4. None fixes the issue.
Thinking that maybe this could be a USB issue, I tried different ports, usb2, usb3, usb-c (via dongle), USB 3.1 and my gpu virtuallink via dongle too. None fixes the issue. I also tried to disable USB power management with "echo -1 > /sys/module/usbcore/parameters/autosuspend".
Lastly, I changed my kernel to PREEMPT and CPU frequency governor to performance but still it didn't change nothing.
So, I'm now basically out of ideas, it seems to me that the problem is that some USB packets are being dropped for some reason which causes the issue, but dmesg and journalctl shows no error, the only error I can find is when I first use the ARC after a reboot:
Code: Select all
[ 6041.722763] usb 1-2.3: new full-speed USB device number 9 using xhci_hcd
[ 6042.061251] usb 1-2.3: New USB device found, idVendor=0493, idProduct=4170, bcdDevice= 2.00
[ 6042.061253] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6042.061255] usb 1-2.3: Product: ARC AMP DAC
[ 6042.061256] usb 1-2.3: Manufacturer: Mayflower Electronics ARC AMP DAC
[ 6042.061258] usb 1-2.3: SerialNumber: FFFFFFFEFFFF
[ 6042.117260] usb 1-2.3: 1:1: cannot get freq at ep 0x1
[ 6067.637594] usb 1-2.3: 1:1: cannot get freq at ep 0x1
Also, for completeness, here are other details:
My computer:
Processor: AMD Ryzen 7 2700x
Motherboard: MSI Gamming M7 AC
Memory: 32GB Corsair Vengeance Pro 3200 (16x2)
PSU: EVGA 1200W P2
GPU1: Aorus Radeon RX 580 8GB
GPU2: EVGA RTX 2070 8GB
cat /proc/asound/DAC/pcm0p/xrun_debug:
Code: Select all
0
Code: Select all
card: 6
device: 0
subdevice: 0
stream: PLAYBACK
id: USB Audio
name: USB Audio
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 0
Code: Select all
access: MMAP_INTERLEAVED
format: S24_3LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 256
buffer_size: 768
Code: Select all
state: RUNNING
owner_pid : 23183
trigger_time: 6067.850526208
tstamp : 0.000000000
delay : 672
avail : 144
avail_max : 288
-----
hw_ptr : 135277200
appl_ptr : 135277824
Code: Select all
tstamp_mode: NONE
period_step: 1
avail_min: 256
start_threshold: 0
stop_threshold: 768
silence_threshold: 0
silence_size: 0
boundary: 6917529027641081856
Code: Select all
Linux localhost 5.0.0-rc8 #10 SMP PREEMPT Sun Mar 3 22:55:24 -03 2019 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linux
Thanks!