git: f94bb91ac69c - stable/15 - sound: Retire unused hw.snd.vpc_mixer_bypass

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Wed, 03 Jun 2026 08:23:24 UTC
The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=f94bb91ac69cdca93535349f3739d1ac76cd863d

commit f94bb91ac69cdca93535349f3739d1ac76cd863d
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-04-16 11:25:20 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-06-03 08:22:24 +0000

    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
    
    (cherry picked from commit 8e804f3dd6298d6aa8cbaf0f2a0267c6207ac8f7)
---
 share/man/man4/pcm.4      | 9 ---------
 sys/dev/sound/pcm/mixer.c | 5 -----
 2 files changed, 14 deletions(-)

diff --git a/share/man/man4/pcm.4 b/share/man/man4/pcm.4
index f576209c3e1f..14d7e52eed5d 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;