Page MenuHomeFreeBSD

snd_uaudio: Retire sndcard_func usage
ClosedPublic

Authored by christos on Mar 30 2026, 12:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 12:56 AM
Unknown Object (File)
Wed, Aug 12, 6:10 PM
Unknown Object (File)
Wed, Aug 12, 5:36 PM
Unknown Object (File)
Tue, Aug 11, 11:00 PM
Unknown Object (File)
Tue, Aug 11, 10:57 PM
Unknown Object (File)
Mon, Aug 10, 12:32 PM
Unknown Object (File)
Mon, Aug 10, 11:22 AM
Unknown Object (File)
Sun, Aug 9, 5:29 PM
Subscribers

Details

Summary

This is effectively a no-op, as it does not make use of the
sndcard_func->varinfo field, so eventually ua_probe() always succeeds.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71817
Build 68700: arc lint + arc unit

Event Timeline

sys/dev/sound/usb/uaudio_pcm.c
193

Why did you change from BUS_PROBE_DEFAULT to 0?

sys/dev/sound/usb/uaudio_pcm.c
193

This is the pcm driver, it does not correspond to a real device, but to a sound(4) device. Other drivers do the same already. Is there a reason to have BUS_PROBE_DEFAULT in this case?

sys/dev/sound/usb/uaudio_pcm.c
193

Correction, not "correspond", but "probe".

markj added inline comments.
sys/dev/sound/usb/uaudio_pcm.c
193

I don't see a reason not to use 0 now that I see that ua_pcm devices are attached using bus_attach_children(), but the review description doesn't mention this change, so I can't easily see if it's intentional.

This revision is now accepted and ready to land.Mar 30 2026, 12:42 PM
sys/dev/sound/usb/uaudio_pcm.c
193

I'll update the description. Thanks :)

This revision was automatically updated to reflect the committed changes.