Hello, > With a hint from skrll@, I looked at uaudio_detach(). We already have > code in uaudio_halt_out_dma() and uaudio_halt_in_dma() to stop any playback > or recording, so it looks like we can reuse these when detaching. With the > attached patch, I no longer see the panics when removing a uaudio device > when playback is in progress.
Patch committed as r1.166 of src/sys/dev/usb/uaudio.c. Regards, Julian