Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163397845
D27180.id79436.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27180.id79436.diff
View Options
Index: sys/dev/sound/usb/uaudio.c
===================================================================
--- sys/dev/sound/usb/uaudio.c
+++ sys/dev/sound/usb/uaudio.c
@@ -98,12 +98,15 @@
static int uaudio_default_bits = 32;
static int uaudio_default_channels = 0; /* use default */
static int uaudio_buffer_ms = 8;
-
-#ifdef USB_DEBUG
-static int uaudio_debug;
+static bool uaudio_handle_hid = true;
static SYSCTL_NODE(_hw_usb, OID_AUTO, uaudio, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
"USB uaudio");
+SYSCTL_BOOL(_hw_usb_uaudio, OID_AUTO, handle_hid, CTLFLAG_RWTUN,
+ &uaudio_handle_hid, 1, "handle HID volume/mute keys in uaudio");
+
+#ifdef USB_DEBUG
+static int uaudio_debug;
SYSCTL_INT(_hw_usb_uaudio, OID_AUTO, debug, CTLFLAG_RWTUN,
&uaudio_debug, 0, "uaudio debug level");
@@ -1116,10 +1119,12 @@
goto detach;
}
- if (uaudio_hid_probe(sc, uaa) == 0) {
- device_printf(dev, "HID volume keys found.\n");
- } else {
- device_printf(dev, "No HID volume keys found.\n");
+ if (uaudio_handle_hid) {
+ if (uaudio_hid_probe(sc, uaa) == 0) {
+ device_printf(dev, "HID volume keys found.\n");
+ } else {
+ device_printf(dev, "No HID volume keys found.\n");
+ }
}
/* reload all mixer settings */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 8:39 PM (18 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35414773
Default Alt Text
D27180.id79436.diff (1 KB)
Attached To
Mode
D27180: uaudio: add sysctl hw.usb.uaudio.handle_hid to allow disabling HID volume keys support
Attached
Detach File
Event Timeline
Log In to Comment