Could someone give advice on if/how to configure a USB media control
device to adjust volume and other settings?

OpenBSD 7.9, arm64, on Raspberry Pi 5
with USB audio device (for audio output, not for any controls)
and USB media control device "OZU8"

dmesg has:
uaudio0 at uhub1 port 2 configuration 1 interface 1 "JDS Labs
 JDS Labs Atom DAC+" rev 2.00/2.12 addr 2
uaudio0: class v2, high-speed, async, channels: 2 play, 0 rec, 0 ctls
audio0 at uaudio0
ugen0 at uhub1 port 2 configuration 1 "JDS Labs JDS Labs Atom DAC+"
 rev 2.00/2.12 addr 2

uhidev0 at uhub0 port 2 configuration 1 interface 0 "OZU OZU8"
 rev 1.10/0.01 addr 2
uhidev0: iclass 3/0, 3 report ids
ukbd0 at uhidev0 reportid 1: 14 variable keys, 0 key codes
wskbd0 at ukbd0 mux 1
ucc0 at uhidev0 reportid 3: 8 usages, 8 keys, enum
wskbd1 at ucc0 mux 1

On the OZU8, volume dial (clockwise for volume up, counter for down)
has no effect on sndiod.

(and I checked that from a terminal,
$ sndioctl output.level=-0.5
reduces audible volume as expected)

There are many internet descriptions of how to configure
devices that are 'uhidN', with use of 'usbhidaction'

But I am having trouble finding advice for situations with
wskbd0 at ukbd0 at uhidev0
wskbd1 at ucc0 at uhidev0


$ wsconsctl
shows information for
keyboard*
keyboard1.*

for keyboard1, which I am guessing is wskbd1 at ucc0

$ wsconsctl keyboard1.map
keyboard1.map=
keycode 0 = AudioRaise
keycode 1 = AudioLower
keycode 2 = unknown_0
keycode 3 = AudioMute
keycode 4 = unknown_0
keycode 5 = unknown_0
keycode 6 = unknown_0
keycode 7 = unknown_0
which seems like this device
(volume 'dial' raise/lower, buttons 'prev', 'play/pause', 'next')

$ wsconsctl keyboard.map
 has 236 keycodes
though I do not have any USB keyboard attached at all

Thank you.

Reply via email to