Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161705114
D56239.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56239.diff
View Options
diff --git a/sys/dev/sound/pcm/channel.h b/sys/dev/sound/pcm/channel.h
--- a/sys/dev/sound/pcm/channel.h
+++ b/sys/dev/sound/pcm/channel.h
@@ -405,11 +405,8 @@
-#define CHN_N_RATE 0x00000001
-#define CHN_N_FORMAT 0x00000002
-#define CHN_N_VOLUME 0x00000004
-#define CHN_N_BLOCKSIZE 0x00000008
-#define CHN_N_TRIGGER 0x00000010
+#define CHN_N_BLOCKSIZE 0x00000001
+#define CHN_N_TRIGGER 0x00000002
#define CHN_LATENCY_MIN 0
#define CHN_LATENCY_MAX 10
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -2351,31 +2351,7 @@
*/
run = (CHN_STARTED(c)) ? 1 : 0;
if (run)
- flags &= CHN_N_VOLUME | 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.
- */
- }
+ flags &= CHN_N_TRIGGER;
if (flags & CHN_N_BLOCKSIZE) {
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 3:01 AM (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30826370
Default Alt Text
D56239.diff (1 KB)
Attached To
Mode
D56239: sound: Retire unused CHN_N_* defines
Attached
Detach File
Event Timeline
Log In to Comment