If you work on snd_uaudio attach/detach please take a look on how
devices are detached when disconnected as there is a problem with
that.

I just got some old but still nice Creative Sound Blaster 24-bit card
that works over USB.

I noticed kernel crashes when card is disconnected and then on
kldunload snd_uaudio.

That happens when I unplug whole USB HUB (with Ethernet and Sound on
it) from my laptop when moving away from my desk to work over
wireless. I work on 12.1-RELEASE amd64, Xorg + Enlightenment +
PulseAudio. That PulseAudio stuff (in addition to application that may
actually use the pcm) usually blocks the audio device and prevents it
from kldunload.

Also when I do kldunload snd_uaudio the device is re-attached
momentarily after unload.. which is not quite what I want.

It would be really nice to safely remove the device (even if forced remove).
It would be really nice to avoid kernel panic.
Maybe some information to PulseAudio that device is gone would be nice
too, because it still thinks that audio device is there even if the
cable was disconnected.

These are simple things that may impact also many cards on USB
configuration.. but also maybe fixed during such implementation :-)

Best regards :-)
Tomek


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to