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
This commit is contained in:
@@ -307,11 +307,7 @@ int chn_getrates(struct pcm_channel *c, int **rates);
|
||||
int chn_syncdestroy(struct pcm_channel *c);
|
||||
|
||||
#define CHN_SETVOLUME(...) chn_setvolume_matrix(__VA_ARGS__)
|
||||
#if defined(SND_DIAGNOSTIC) || defined(INVARIANTS)
|
||||
#define CHN_GETVOLUME(...) chn_getvolume_matrix(__VA_ARGS__)
|
||||
#else
|
||||
#define CHN_GETVOLUME(x, y, z) ((x)->volume[y][z])
|
||||
#endif
|
||||
|
||||
#define CHN_GETMUTE(x, y, z) ((x)->muted[y][z])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user