瀏覽代碼

fix incorrect interface ids

Sanjay Govind 11 月之前
父節點
當前提交
d88bc44375
共有 1 個文件被更改,包括 4 次插入4 次删除
  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,