Page MenuHomeFreeBSD

sound: Always use chn_getvolume_matrix()
ClosedPublic

Authored by christos on Mar 20 2026, 1:27 PM.
Tags
None
Referenced Files
F171005120: D55990.diff
Tue, Sep 8, 3:42 AM
Unknown Object (File)
Sat, Sep 5, 4:31 PM
Unknown Object (File)
Fri, Sep 4, 6:37 AM
Unknown Object (File)
Thu, Sep 3, 9:55 PM
Unknown Object (File)
Thu, Sep 3, 6:05 PM
Unknown Object (File)
Thu, Sep 3, 2:46 PM
Unknown Object (File)
Thu, Sep 3, 8:56 AM
Unknown Object (File)
Wed, Sep 2, 4:11 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