pcm_veto_load is used to prevent pcm_register() from running if the root
feeder has not been registered yet. However, feeder_register_root() is a
SYSINIT.
Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Differential D47280
sound: Retire pcm_veto_load christos on Fri, Oct 25, 12:06 PM. Authored by Tags None Referenced Files
Subscribers
Details pcm_veto_load is used to prevent pcm_register() from running if the root Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions Also note that pcm_register() does not really touch the root feeder in the first place.
Comment Actions
So are the functions which call pcm_register(), albeit indirectly. The point is probably to make sure that feeder_register_root() runs first. See the use of SI_ORDER_FIRST in the SYSINIT definition. It doesn't, but functions like pcm_addchan(), called after pcm_register(), do. I'd at least add a comment above the SYSINIT definition explaining why this one comes first. |