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
This commit is contained in:
@@ -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.
|
This means that any changes to the volume will be lost.
|
||||||
Enabling this will preserve the volume, at the cost of possible confusion
|
Enabling this will preserve the volume, at the cost of possible confusion
|
||||||
when applications tries to re-open the same device.
|
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
|
.It Va hw.snd.vpc_reset
|
||||||
Enable to restore all channel volumes back to the default value of 0db.
|
Enable to restore all channel volumes back to the default value of 0db.
|
||||||
.It Va dev.pcm.%d.bitperfect
|
.It Va dev.pcm.%d.bitperfect
|
||||||
|
|||||||
@@ -37,11 +37,6 @@
|
|||||||
#include "feeder_if.h"
|
#include "feeder_if.h"
|
||||||
#include "mixer_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
|
#define MIXER_NAMELEN 16
|
||||||
struct snd_mixer {
|
struct snd_mixer {
|
||||||
KOBJ_FIELDS;
|
KOBJ_FIELDS;
|
||||||
|
|||||||
Reference in New Issue
Block a user