HomeFreeBSD

sound: Move root feeder initialization to separate function

Description

sound: Move root feeder initialization to separate function

feeder_register() is currently a SYSINIT in order to create the root
feeder, which happens only when feedercnt is 0. Separating the root
feeder registration makes the code more readable.

No functional change intended.

While here, fix some style errors.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch, zlei, markj
Differential Revision: https://reviews.freebsd.org/D46821

(cherry picked from commit 97570db05ced435f4fb1c6a67bdb16966ce5e4d9)

Details

Provenance
christosAuthored on Fri, Oct 18, 8:39 AM
Reviewer
dev_submerge.ch
Differential Revision
D46821: sound: Move root feeder initialization to separate function
Parents
rG6cf4db422c21: sound: Move global variable initialization to sound_modevent()
Branches
Unknown
Tags
Unknown