Przeglądaj źródła

fix incorrect interface ids

Sanjay Govind 11 miesięcy temu
rodzic
commit
d88bc44375
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      helpers/pof_usb.c

+ 4 - 4
helpers/pof_usb.c

@@ -462,7 +462,7 @@ static const struct PoFUsbDescriptorXbox360 usb_pof_cfg_descr_x360 = {
             .bDescriptorType = USB_DTYPE_ENDPOINT,
             .bEndpointAddress = POF_USB_EP_IN,
             .bmAttributes = USB_EPTYPE_INTERRUPT,
-            .wMaxPacketSize = 0x40,
+            .wMaxPacketSize = 0x20,
             .bInterval = HID_INTERVAL,
         },
     .ep_out =
@@ -471,7 +471,7 @@ static const struct PoFUsbDescriptorXbox360 usb_pof_cfg_descr_x360 = {
             .bDescriptorType = USB_DTYPE_ENDPOINT,
             .bEndpointAddress = POF_USB_EP_OUT,
             .bmAttributes = USB_EPTYPE_INTERRUPT,
-            .wMaxPacketSize = 0x40,
+            .wMaxPacketSize = 0x20,
             .bInterval = HID_INTERVAL,
         },
     .intfAudio =
@@ -531,7 +531,7 @@ static const struct PoFUsbDescriptorXbox360 usb_pof_cfg_descr_x360 = {
         {
             .bLength = sizeof(struct usb_interface_descriptor),
             .bDescriptorType = USB_DTYPE_INTERFACE,
-            .bInterfaceNumber = 1,
+            .bInterfaceNumber = 2,
             .bAlternateSetting = 0,
             .bNumEndpoints = 1,
             .bInterfaceClass = 0xFF,
@@ -554,7 +554,7 @@ static const struct PoFUsbDescriptorXbox360 usb_pof_cfg_descr_x360 = {
         {
             .bLength = sizeof(struct usb_interface_descriptor),
             .bDescriptorType = USB_DTYPE_INTERFACE,
-            .bInterfaceNumber = 2,
+            .bInterfaceNumber = 3,
             .bAlternateSetting = 0,
             .bNumEndpoints = 0,
             .bInterfaceClass = 0xFF,