On Tue, Jun 23, 2020 at 02:22:09PM +0200, Benjamin Baier wrote: > Hi, > > adapt usbhidaction.1 example to sndio changes. > > Greetings Ben >
fixed, thanks. jmc > Index: usbhidaction.1 > =================================================================== > RCS file: /var/cvs/src/usr.bin/usbhidaction/usbhidaction.1,v > retrieving revision 1.14 > diff -u -p -r1.14 usbhidaction.1 > --- usbhidaction.1 20 Apr 2020 20:54:31 -0000 1.14 > +++ usbhidaction.1 23 Jun 2020 12:06:01 -0000 > @@ -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 , >