diff options
author | 2020-06-24 19:19:03 +0000 | |
---|---|---|
committer | 2020-06-24 19:19:03 +0000 | |
commit | 6da9744668a977f211d40fde3990b322c8cfe6ea (patch) | |
tree | 60de3e65683d521f9445b99f2d851acdfbb3e937 | |
parent | Use SDEV_NO_ADAPTER_TARGET instead of the value that is being (diff) | |
download | wireguard-openbsd-6da9744668a977f211d40fde3990b322c8cfe6ea.tar.xz wireguard-openbsd-6da9744668a977f211d40fde3990b322c8cfe6ea.zip |
replace mixerctl with sndioctl; from benjamin baier
ratchov says it's good
-rw-r--r-- | usr.bin/usbhidaction/usbhidaction.1 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/usbhidaction/usbhidaction.1 b/usr.bin/usbhidaction/usbhidaction.1 index 8b9ed072c06..595159d6bc4 100644 --- a/usr.bin/usbhidaction/usbhidaction.1 +++ b/usr.bin/usbhidaction/usbhidaction.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: usbhidaction.1,v 1.14 2020/04/20 20:54:31 ratchov Exp $ +.\" $OpenBSD: usbhidaction.1,v 1.15 2020/06/24 19:19:03 jmc Exp $ .\" $NetBSD: usbhidaction.1,v 1.6 2002/01/18 14:38:59 augustss Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: April 20 2020 $ +.Dd $Mdocdate: June 24 2020 $ .Dt USBHIDACTION 1 .Os .Sh NAME @@ -105,20 +105,20 @@ master volume and muting of an .Xr azalia 4 device using the multimedia keys on a Belkin USB keyboard. .Bd -literal -offset indent -# The volume range is 0..255. Moving 8 volume steps each keypress +# The volume range is 0..1. Moving 0.05 volume steps, each keypress # moves quickly through the volume range but still has decent # granularity. Consumer:Volume_Increment 1 - mixerctl -f $1 outputs.master=+8 + sndioctl -f $1 output.level=+0.05 Consumer:Volume_Decrement 1 - mixerctl -f $1 outputs.master=-8 + sndioctl -f $1 output.level=-0.05 Consumer:Mute 1 - mixerctl -f $1 outputs.master.mute=toggle + sndioctl -f $1 output.mute=! .Ed .Pp A sample invocation using this configuration would be .Bd -literal -offset indent -$ usbhidaction -f /dev/uhid1 -c conf /dev/audioctl0 +$ usbhidaction -f /dev/uhid1 -c conf snd/0 .Ed .Sh SEE ALSO .Xr usbhidctl 1 , |