3

I run Arch Linux using Systemd and ALSA on a Thinkpad X200 and I have an USB sound card connected, which I use for audio output.

The audio is fine until I suspend my machine with $ systemctl suspend. After resuming, the USB sound card’s audio output is broken and irregularly produces crackling noises.

What is possibly causing this? How can I fix this?

Plugging the USB sound card in and out neither produces this issue nor does it solve it. I don’t have a ~/.asoundrc.


Some information. Here is the dmesg output

Here’s my kernel:

$ uname -srvo
Linux 4.18.6-gnu-1 #1 SMP PREEMPT Sat Sep 8 14:43:46 UTC 2018 GNU/Linux

The USB sound card is actually a DAC, namely FiiO E10. Here’s how ALSA sees it:

$ aplay --list-devices
…
card 1: Audio [DigiHug USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
…

The sound driver I use for the card is apparently snd_usb_audio according to $ lsmod | grep snd.

2
  • have you managed to fix this yet?
    – Cyclic3
    Oct 1, 2018 at 9:50
  • @Cyclic3 No. : /
    – k.stm
    Oct 3, 2018 at 17:35

2 Answers 2

2

I have a very similar issue, but I use pulseaudio instead of alsa. The crackling/skipping noise persists until I reboot. I have tried restarting pulseaduio, unplugging and replugging the USB sound interface, and even unloading and reloading the snd_usb_audio module. None of it has helped :-/

I did not have the same issue on my old computer, where I used the same exact USB digital audio device with the same exact linux distro. I suspect it might be a USB motherboard/firmware issue, since that's the thing that's the biggest change.

2
  • I also use pulseaudio, but since pulseaudio itself uses ALSA, I removed pulseaudio to see whether the issue persists with one layer of abstraction removed, and it does. Which desktop or laptop do you use?
    – k.stm
    Jan 24, 2021 at 8:27
  • I have a custom-built deskop running gentoo. It's an ASUS motherboard. I have noticed that if I aplay in the native format (32-bit little endian) there's no issue. It's only when I aplay non-native formats (e.g. 16-bit little endian) that there's an issue. So for me the issue seems to be in sample conversion somewhere
    – cjoseph
    Jan 25, 2021 at 1:28
1

This could have multiple causes.

The most likely cause, in my opinion, is a driver issue. Many things get very confused after a suspend, as it appears that the system has turned off, but then suddenly reverted itself back in time. I have known video cards to mangle their memory during a suspend, but never an audio card. If the crackling noise sounds like white noise, then this is what I would bet on. Unfortunately this is rather hard to fix, so I would suggest filing a bug report and seeing where that takes you.

Next most likely is an alsa issue. You could see what happens if you use an alternative (OSS springs to mind), and see if that fixes your problem. It could be a specific application causing this, so look in your mixer to see if anything is producing the sound.

Last on the list is a hardware problem. The DAC may become irreparably confused when the system suspends. But this should either be solved by unplugging it and then plugging it back in again (maybe to a different port), or be stuck in this state forever, which to me rules this out. It might be worth checking on the interwebs for anyone else experiencing issues with this card.

2
  • Thanks for your answer. It’s most likely not the DAC. It works with another machine, but I have the same issue with another DAC, albeit of the same model. I’ve actually come to believe that the issue is a power issue.
    – k.stm
    Sep 30, 2018 at 16:15
  • @k.stm this appears to completely rule out the hardware (which looked to be quite unlikely to begin with). As per my answer, I would look at the mixer to see if it is an application, and if not, raise a bug report with alsa.
    – Cyclic3
    Sep 30, 2018 at 16:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .