From e5a270347a4dfa5180e976e9bc39f181e26f4192 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 14 Jun 2023 14:36:39 +0100 Subject: [PATCH] bNumConfigurations changes from 2 to 1 --- CHANGELOG.rst | 2 ++ lib_xua/src/core/endpoint0/xua_ep0_descriptors.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e219cbc40..8ece93726 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,8 @@ lib_xua Change Log * ADDED: Support for statically defined custom HID descriptor * CHANGED: Rearranged main() such that adding custom code that uses lib_xud is possible + * CHANGED: bNumConfigurations changed from 2 to 1, removing a work-around to + stop old Windows versions loading the composite driver * FIXED: Memory corruption due to erroneous initialisation of mixer weights when not in use (#152) * FIXED: UserHostActive() not being called as expected (#326) diff --git a/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h b/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h index f08697cac..d830682e7 100644 --- a/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h +++ b/lib_xua/src/core/endpoint0/xua_ep0_descriptors.h @@ -481,7 +481,7 @@ USB_Descriptor_Device_t devDesc_Audio2 = .iManufacturer = offsetof(StringDescTable_t, vendorStr)/sizeof(char *), .iProduct = offsetof(StringDescTable_t, productStr_Audio2)/sizeof(char *), .iSerialNumber = offsetof(StringDescTable_t, serialStr)/sizeof(char *), - .bNumConfigurations = 0x02 /* Set to 2 such that windows does not load composite driver */ + .bNumConfigurations = 0x01 }; /* Device Descriptor for Null Device */