Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PulseAudio doesn't detect USB hot-plugging if no USB device was connected at startup #85

Open
tmigone opened this issue Dec 23, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@tmigone
Copy link
Contributor

tmigone commented Dec 23, 2021

To replicate

  1. Start audio block
  2. Connect a USB sound card to your device

Running udev monitor or aplay -l will show that both udev and ALSA are picking up the sound card. However running pactl list sinks will yield no result. PulseAudio is ignoring the udev events it seems.

If you invert the order of operations however hotplugging works as intended:

  1. Connect a USB sound card to your device
  2. Start audio block

This might be related to how systemd ALSA rules are handled, and how PulseAudio interacts with that (seems a bit sketchy?). Some references here for further investigation:

@tmigone tmigone added the bug Something isn't working label Dec 23, 2021
@jellyfish-bot
Copy link

[tmigone] This issue has attached support thread https://jel.ly.fish/23fd0d70-7d8e-446e-a4d5-891f1f705c80

@i-garrison
Copy link

I'd guess this could be kernel or alsa-lib issue so please re-test. The error reported looks almost like if kernel alsa layer created /dev/snd/ entry (which is getting picked by pulseaudio udev monitoring routine) before kernel alsa driver completed all things required for alsa-lib to actually use the device successfully - this should never happen.

@bbugh
Copy link

bbugh commented Mar 18, 2024

I know this has been ages, but was any progress made on this? That jellyfish URL seems to be invalid.

We're having issues with a container starting up and even when the USB device is plugged in, it doesn't always recognize it in time. Even when it does, no hot swapping seems to work. When this occurs, after boot, there's no sound card discovered and no way to fix it without restarting the service, which starts the process over and may still not fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants