USB DAC produces audio dropouts and crackling when connected through a USB 3.0 bus-powered hub under CPU load on Linux laptop
Environment
Linux laptop (Ubuntu 22.04, kernel 5.15) using a bus-powered USB 3.0 hub to connect a class-compliant USB DAC (USB audio 2.0). Dropouts and crackling occur when CPU load increases (e.g., compiling or running heavy browser workloads). Direct connection to laptop USB-C port does not show issues.
Symptoms
Intermittent audio dropouts, crackling, and short bursts of silence in high-bitrate audio playback only when the DAC is connected to the bus-powered hub and the laptop is under CPU load. System audio overbuilt-in speakers unaffected. dmesg shows occasional 'usb 2-1: USB disconnect' and 'usb 2-1: reset high-speed USB device' entries near the time of audio glitches.
Observations
powertop shows autosuspend active for the USB hub and root USB controller. lsusb identifies the hub and DAC correctly. Timestamps in dmesg align with periods of sustained CPU usage; IRQ/softirq rates increase substantially during CPU heavy work. USB topology shows the hub on a single root port shared with other devices. Disabling pulseaudio resampling and using lower latency ALSA buffer parameters reduced but did not eliminate crackles. Connecting the DAC directly to a laptop USB-C port resolves the issue completely. Hub is bus-powered and sometimes shows nominal voltage drop under load (measured ~4.7V during peak).
Already attempted
Disabled USB autosuspend for the hub via udev rule and powertop; audio improved but occasional glitches persisted. Set higher priority for the audio process (rtprio) and reduced buffer size; paradoxically smaller buffers decreased latency but increased dropouts. Tried different hub and cables — a self-powered hub resolved the problem. Rebooted and upgraded kernel to latest stable; behavior persisted on bus-powered hubs.
Question
Is this primarily a power / USB bus bandwidth / host controller latency issue, and what reversible configuration changes can reliably diagnose whether the root cause is hub power, IRQ contention, or USB autosuspend? If it's a hardware limitation, what mitigations should be recommended to users?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- macOS33% match
Audio dropouts with external USB interface when connected through Thunderbolt dock while laptop is charging
Open0 answers - Audio & Video30% match
USB audio interface dropouts only when laptop charger is plugged into Thunderbolt dock
Open0 answers - Audio & Video29% match
External USB‑C/Thunderbolt dock causes external 4K60 monitor to flicker and re-detect during GPU‑heavy workloads on Windows laptop
Open0 answers - Hardware27% match
Lenovo laptop stops charging past 80% when connected through Thunderbolt dock despite BIOS conservation mode off
Open0 answers - macOS26% match
MacBook Pro kernel_task CPU spikes and fans at max when Thunderbolt 4 dock + USB‑C audio interface running 96 kHz
Open0 answers