[Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 May 2022 07:31:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727

--- Comment #67 from Hans Petter Selasky <hselasky@FreeBSD.org> ---
> I agree that kernel must return some error and allow USB stack to unplug device.

The kernel already returns an error on all mixer IOCTL's in the detaching
state.

All pulseaudio has to do is to poll a dummy mixer IOCTL every 4 seconds or so,
if it fails, it must close(mixer_fd) .

D11140 is not a real solution, because pulseaudio will still go on using the
old mixer fd, and so the mixer becomes unusable anyway for the client.

Do I have to write up a patch for pulseaudio myself?

--HPS

-- 
You are receiving this mail because:
You are on the CC list for the bug.