OpenBSD cvs log

created 2022-02-21T10:05:15Z
begin 2022-02-16T06:21:19Z
end 2022-02-16T06:23:42Z
path src/sys
commits 1

date 2022-02-16T06:23:42Z
author anton
files src/sys/dev/audio.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/ucc.c log diff annotate
src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdi.h log diff annotate
src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wskbdvar.h log diff annotate
message Currently, wskbd_set_mixervolume() only adjusts the volume of the first
attached audio device, i.e. audio0. This approach does not work well
while using additional audio devices equipped with physical volume keys
since those would only affect the volume of audio0.

Instead, correlate audio and ucc devices attached over USB in order to
adjust the volume of the correct audio device. This is done by passing a
cookie from the common point of attachment which is later used to
correlate the audio and wskbd device.

The same approach could be adopted for audio and wskbd devices attaching
on a different bus. Keep in mind that it's of importance to make use of
and increment the same global cookie identifier to avoid collisions.

Makes the volume keys on my Logitech G435 Headset do the right thing.

ok ratchov@