Page MenuHomeFreeBSD

sound: Do not create root feeder in chn_init()
ClosedPublic

Authored by christos on Mar 19 2026, 3:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 9:04 PM
Unknown Object (File)
Tue, Apr 28, 9:01 PM
Unknown Object (File)
Tue, Apr 28, 3:24 AM
Unknown Object (File)
Sat, Apr 25, 7:45 AM
Unknown Object (File)
Wed, Apr 15, 12:41 PM
Unknown Object (File)
Tue, Apr 14, 4:05 AM
Unknown Object (File)
Tue, Apr 14, 2:25 AM
Unknown Object (File)
Tue, Apr 14, 12:42 AM
Subscribers

Details

Summary

The feeder chain gets destroyed when feeder_chain() is called, which is
after the chn_reset() call in chn_init() further down for primary chans,
or vchan_create() for vchans. This makes the root feeder creation in
chn_init() essentially a no-op. Remove it altogether and let
feeder_chain() after chn_reset() take care of creating the feeder
properly. It creates the root one as well.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable