Crackling sound sound if input/output devices are the same
- PipeWire version:
pipewire
Compiled with libpipewire 0.3.56
Linked with libpipewire 0.3.56
- Distribution and distribution version:
Pop!_OS 22.04 LTS
- Desktop Environment:
GNOME 42.2
- Kernel version (
uname -r
):5.18.10-76051810-generic
Description of Problem:
I have a Rode NT-USB I use as both input and output device. I also have a StreamCam webcam I use only as a camera, but it also has a (bad) microphone.
If I use my Rode as both output (analogue) and input (digital), I get a horrible crackling sound. However, if I switch the input source to the StreamCam, I get a crystal clear sound. Sometimes, the crackling doesn't happen when I switch the device, but when I start using it in any app.
I've had this issue for a few weeks now, didn't have it before. I guess it came after an update, but I'm not sure when.
Any idea from where it could come from ?
Thanks
Here's pw-top output, I don't know if it helps.
pw-top
with no crackling issue:
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR NAME
! 28 0 0 0.0µs 0.0µs 0.00 0.00 0 Dummy-Driver
! 29 0 0 0.0µs 0.0µs 0.00 0.00 0 Freewheel-Driver
! 39 0 0 0.0µs 0.0µs 0.00 0.00 0 Midi-Bridge
! 48 0 0 0.0µs 0.0µs 0.00 0.00 0 v4l2_input.pci-0000_2d_00.3-usb-0_2_1.0
! 54 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_output.pci-0000_2b_00.1.hdmi-stereo
55 2048 48000 61.9µs 4.2µs 0.00 0.00 0 alsa_output.usb-RODE_Microphones_RODE_NT-USB-00.analog-stereo
74 3307 44100 9.4µs 44.2µs 0.00 0.00 0 + Firefox
! 56 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_input.usb-RODE_Microphones_RODE_NT-USB-00.iec958-stereo
! 32 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_input.usb-046d_Logitech_StreamCam_86A5FA25-02.analog-stereo
! 53 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_output.pci-0000_2d_00.4.iec958-stereo
And with crackling issue:
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR NAME
! 28 0 0 0.0µs 0.0µs 0.00 0.00 0 Dummy-Driver
! 29 0 0 0.0µs 0.0µs 0.00 0.00 0 Freewheel-Driver
! 39 0 0 0.0µs 0.0µs 0.00 0.00 0 Midi-Bridge
! 48 0 0 0.0µs 0.0µs 0.00 0.00 0 v4l2_input.pci-0000_2d_00.3-usb-0_2_1.0
! 54 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_output.pci-0000_2b_00.1.hdmi-stereo
55 512 48000 26.1µs 2.8µs 0.00 0.00 0 alsa_output.usb-RODE_Microphones_RODE_NT-USB-00.analog-stereo
74 3307 44100 5.6µs 10.0µs 0.00 0.00 0 + Firefox
90 1024 48000 14.8µs 2.9µs 0.00 0.00 0 + Brave
83 512 48000 17.7µs 1.3µs 0.00 0.00 0 + Brave
56 256 48000 13.1µs 0.2µs 0.00 0.00 0 alsa_input.usb-RODE_Microphones_RODE_NT-USB-00.iec958-stereo
100 480 48000 6.6µs 3.1µs 0.00 0.00 0 + Brave input
! 32 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_input.usb-046d_Logitech_StreamCam_86A5FA25-02.analog-stereo
! 53 0 0 0.0µs 0.0µs 0.00 0.00 0 alsa_output.pci-0000_2d_00.4.iec958-stereo