Page MenuHomeFreeBSD

sound: Always use chn_getvolume_matrix()
ClosedPublic

Authored by christos on Mar 20 2026, 1:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 6, 2:11 PM
Unknown Object (File)
Mon, Oct 5, 1:17 PM
Unknown Object (File)
Sun, Oct 4, 3:52 AM
Unknown Object (File)
Sun, Oct 4, 3:26 AM
Unknown Object (File)
Sun, Oct 4, 2:13 AM
Unknown Object (File)
Wed, Sep 30, 8:28 PM
Unknown Object (File)
Wed, Sep 30, 8:23 PM
Unknown Object (File)
Wed, Sep 30, 6:16 PM
Subscribers

Details

Summary

There is no reason not to use it. We do it already with CHN_SETVOLUME().
chn_getvolume_matrix() is the same as the non-INVARIANTS
CHN_GETVOLUME(), just without the additional KASSERT
chn_getvolume_matrix() provides.

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 71587
Build 68470: arc lint + arc unit