mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
linux/libusb: do not check bDeviceClass on enumeration
Some composite devices do not have bDeviceClass set to LIBUSB_CLASS_PER_INTERFACE and were ignored when enumerating HID devices. Ignore checking the bDeviceClass as we will be checking interface bInterfaceClass later anyway. Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
@@ -458,10 +458,6 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
||||
unsigned short dev_vid = desc.idVendor;
|
||||
unsigned short dev_pid = desc.idProduct;
|
||||
|
||||
/* HID's are defined at the interface level. */
|
||||
if (desc.bDeviceClass != LIBUSB_CLASS_PER_INTERFACE)
|
||||
continue;
|
||||
|
||||
res = libusb_get_active_config_descriptor(dev, &conf_desc);
|
||||
if (res < 0)
|
||||
libusb_get_config_descriptor(dev, 0, &conf_desc);
|
||||
|
||||
Reference in New Issue
Block a user