Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 02:05:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 272286] When unplugging USB sound card, usbconfig stops working
Message-ID:  <bug-272286-19105-wBXtq4yEOg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272286-19105@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272286-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272286

--- Comment #2 from Jonas Lopes <jonasbsd@gmail.com> ---
(In reply to Mina Gali=C4=87 from comment #1)

Hi Mina,

On the nose!

It was SNDIO arresting the process.

After I stopped the service:

# usbconfig list
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5.=
0Gbps)
pwr=3DSAVE (0mA)
ugen0.3: <Dell Computer Corp Dell Universal Receiver> at usbus0, cfg=3D0 md=
=3DHOST
spd=3DFULL (12Mbps) pwr=3DON (100mA)
ugen0.4: <Chicony Electronics Co.,Ltd. Integrated Camera> at usbus0, cfg=3D0
md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA)
ugen0.5: <vendor 0x8087 product 0x0a2a> at usbus0, cfg=3D0 md=3DHOST spd=3D=
FULL
(12Mbps) pwr=3DON (100mA)

After I plugged the sound card back in:

# usbconfig list
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5.=
0Gbps)
pwr=3DSAVE (0mA)
ugen0.3: <Dell Computer Corp Dell Universal Receiver> at usbus0, cfg=3D0 md=
=3DHOST
spd=3DFULL (12Mbps) pwr=3DON (100mA)
ugen0.4: <Chicony Electronics Co.,Ltd. Integrated Camera> at usbus0, cfg=3D0
md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA)
ugen0.5: <vendor 0x8087 product 0x0a2a> at usbus0, cfg=3D0 md=3DHOST spd=3D=
FULL
(12Mbps) pwr=3DON (100mA)
*ugen0.2: <Kingston HyperX Amp> at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12=
Mbps)
pwr=3DON (100mA)*


The `procstat -a -k` command ran to completion without any problems. It did=
 not
show any hanging.

I think it's interesting to have a callback in the USB processes to signal =
when
something has been unplugged and to detach the reference. Such as, "hey snd=
io,
virtual_oss, pulse, etc, that sound card was unplugged. Take it off your li=
st".

Mina, thank you very much!!!

Best,

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272286-19105-wBXtq4yEOg>