sound: Retire unused CHN_N_* defines

These still haven't been implemented by the original author, and there
doesn't seem to be much use for them anyway.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D56239
This commit is contained in:
Christos Margiolis
2026-04-07 17:44:21 +02:00
parent f369d4148b
commit 2d84c8a3d3
2 changed files with 3 additions and 30 deletions
+1 -25
View File
@@ -2351,31 +2351,7 @@ chn_notify(struct pcm_channel *c, u_int32_t flags)
*/ */
run = (CHN_STARTED(c)) ? 1 : 0; run = (CHN_STARTED(c)) ? 1 : 0;
if (run) if (run)
flags &= CHN_N_VOLUME | CHN_N_TRIGGER; flags &= CHN_N_TRIGGER;
if (flags & CHN_N_RATE) {
/*
* XXX I'll make good use of this someday.
* However this is currently being superseded by
* the availability of CHN_F_VCHAN_DYNAMIC.
*/
}
if (flags & CHN_N_FORMAT) {
/*
* XXX I'll make good use of this someday.
* However this is currently being superseded by
* the availability of CHN_F_VCHAN_DYNAMIC.
*/
}
if (flags & CHN_N_VOLUME) {
/*
* XXX I'll make good use of this someday, though
* soft volume control is currently pretty much
* integrated.
*/
}
if (flags & CHN_N_BLOCKSIZE) { if (flags & CHN_N_BLOCKSIZE) {
/* /*
+2 -5
View File
@@ -405,11 +405,8 @@ enum {
#define CHN_N_RATE 0x00000001 #define CHN_N_BLOCKSIZE 0x00000001
#define CHN_N_FORMAT 0x00000002 #define CHN_N_TRIGGER 0x00000002
#define CHN_N_VOLUME 0x00000004
#define CHN_N_BLOCKSIZE 0x00000008
#define CHN_N_TRIGGER 0x00000010
#define CHN_LATENCY_MIN 0 #define CHN_LATENCY_MIN 0
#define CHN_LATENCY_MAX 10 #define CHN_LATENCY_MAX 10