HomeFreeBSD

sound: Always use chn_getvolume_matrix()

Description

sound: Always use chn_getvolume_matrix()

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
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D55990

(cherry picked from commit 0b7f9597024a0061b1e6c544d78bc2ed9392bd89)

Details

Provenance
christosAuthored on Mar 24 2026, 10:31 AM
Reviewer
markj
Differential Revision
D55990: sound: Always use chn_getvolume_matrix()
Parents
rG1edf301bbb97: sound: Remove SND_DIAGNOSTIC section in buffer.c
Branches
Unknown
Tags
Unknown