aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-04-16 11:25:20 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-05-27 15:32:11 +0000
commit8e804f3dd6298d6aa8cbaf0f2a0267c6207ac8f7 (patch)
treee098f5ad93f7aad65479f8fdbc6f0dc7a4d881c9
parentf61e65e1b2ac74034bfc5d1230ae23ea4b9faa60 (diff)
sound: Retire unused hw.snd.vpc_mixer_bypass
Sponsored by: The FreeBSD Foundation MFC after: 1 week Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/18
-rw-r--r--share/man/man4/pcm.49
-rw-r--r--sys/dev/sound/pcm/mixer.c5
2 files changed, 0 insertions, 14 deletions
diff --git a/share/man/man4/pcm.4 b/share/man/man4/pcm.4
index b0f944a0d443..9ea0f14c3930 100644
--- a/share/man/man4/pcm.4
+++ b/share/man/man4/pcm.4
@@ -407,15 +407,6 @@ When a channel is closed the channel volume will be reset to 0db.
This means that any changes to the volume will be lost.
Enabling this will preserve the volume, at the cost of possible confusion
when applications tries to re-open the same device.
-.It Va hw.snd.vpc_mixer_bypass
-The recommended way to use the VPC feature is to teach applications to use the
-correct
-.Fn ioctl :
-.Dv SNDCTL_DSP_GETPLAYVOL , SNDCTL_DSP_SETPLAYVOL ,
-.Dv SNDCTL_DSP_SETRECVOL , SNDCTL_DSP_SETRECVOL .
-This is however not always possible.
-Enable this to allow applications to use their own existing mixer logic
-to control their own channel volume.
.It Va hw.snd.vpc_reset
Enable to restore all channel volumes back to the default value of 0db.
.It Va dev.pcm.%d.bitperfect
diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index be4447b13964..d73361fe7e16 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -37,11 +37,6 @@
#include "feeder_if.h"
#include "mixer_if.h"
-static int mixer_bypass = 1;
-SYSCTL_INT(_hw_snd, OID_AUTO, vpc_mixer_bypass, CTLFLAG_RWTUN,
- &mixer_bypass, 0,
- "control channel pcm/rec volume, bypassing real mixer device");
-
#define MIXER_NAMELEN 16
struct snd_mixer {
KOBJ_FIELDS;