Page MenuHomeFreeBSD

uaudio: add sysctl hw.usb.uaudio.handle_hid to allow disabling HID volume keys support
ClosedPublic

Authored by val_packett.cool on Nov 11 2020, 5:55 PM.
Tags
None
Referenced Files
F147353924: D27180.diff
Tue, Mar 10, 6:31 AM
Unknown Object (File)
Sat, Mar 7, 6:27 PM
Unknown Object (File)
Sat, Mar 7, 11:12 AM
Unknown Object (File)
Tue, Mar 3, 8:28 PM
Unknown Object (File)
Tue, Mar 3, 3:42 PM
Unknown Object (File)
Tue, Mar 3, 9:53 AM
Unknown Object (File)
Tue, Mar 3, 1:29 AM
Unknown Object (File)
Fri, Feb 27, 3:58 AM
Subscribers

Details

Summary

The new iichid input stack can handle the volume keys on audio devices, which is preferred when something in the desktop environment reacts to them :) so it should be possible to disable uaudio's built-in handling.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/sound/usb/uaudio.c
105 ↗(On Diff #79436)

You nee "| CTLFLAG_MPSAFE" here. You can also set the constant argument "1, " to zero. It is only used for read-only sysctls I believe.

sys/dev/sound/usb/uaudio.c
105 ↗(On Diff #79436)

sysctl(9) says about MPSAFE:

This should only be used for SYSCTL_PROC() entries

Is it wrong?

The new iichid input stack can handle the volume keys on audio devices, which is preferred when something in the desktop environment reacts to them :) so it should be possible to disable uaudio's built-in handling.

+1. Userland volume control is more flexible and allows some fancy stuff like onscreen volume change notification

This revision is now accepted and ready to land.Nov 12 2020, 12:02 AM