Page MenuHomeFreeBSD

sound: Always use chn_getvolume_matrix()
ClosedPublic

Authored by christos on Mar 20 2026, 1:27 PM.
Tags
None
Referenced Files
F158733717: D55990.diff
Fri, Jun 5, 5:46 AM
Unknown Object (File)
Tue, May 19, 1:34 PM
Unknown Object (File)
Mon, May 18, 1:55 AM
Unknown Object (File)
Sun, May 17, 5:01 PM
Unknown Object (File)
Fri, May 15, 3:52 AM
Unknown Object (File)
Apr 27 2026, 7:22 PM
Unknown Object (File)
Apr 23 2026, 1:44 AM
Unknown Object (File)
Apr 19 2026, 4:46 AM
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