Page MenuHomeFreeBSD

sound: Make sndstat PVCHAN and RVCHAN nvlist parameters bool
ClosedPublic

Authored by christos on Apr 23 2025, 1:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 15, 4:05 PM
Unknown Object (File)
Fri, Aug 15, 2:58 PM
Unknown Object (File)
Thu, Aug 14, 11:48 PM
Unknown Object (File)
Sun, Aug 10, 10:26 PM
Unknown Object (File)
Sun, Aug 10, 10:21 PM
Unknown Object (File)
Sat, Aug 2, 3:10 AM
Unknown Object (File)
Tue, Jul 29, 1:10 AM
Unknown Object (File)
Mon, Jul 28, 3:29 AM
Subscribers

Details

Summary

Prior to 02d4eeabfd73 ("sound: Allocate vchans on-demand"), the
play.vchans and rec.vchans sysctls corresponded to the value of
d->pvchancount and d->rvchancount respectively, which is also what we
are exporting through SNDST_DSPS_SOUND4_PVCHAN and
SNDST_DSPS_SOUND4_RVCHAN respectively. Since that commit, the sysctls
mentioned have been modified to show whether play/rec vchans are enabled
or not. Modify the sndstat nvlist parameters accordingly.

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 63671
Build 60555: arc lint + arc unit

Event Timeline

nvlist_add_number() -> nvlist_add_bool()

This revision was not accepted when it landed; it landed in state Needs Review.Apr 25 2025, 4:57 PM
This revision was automatically updated to reflect the committed changes.