forked from PAWPAW-Mirror/lib_xua
Added interrupt EP back into descriptors (when SPDIF_RX or ADAT_RX defined)
This commit is contained in:
@@ -1119,6 +1119,9 @@ typedef struct
|
|||||||
#endif
|
#endif
|
||||||
USB_Descriptor_Audio_OutputTerminal_t Audio_In_OutputTerminal;
|
USB_Descriptor_Audio_OutputTerminal_t Audio_In_OutputTerminal;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined (SPDIF_RX) || defined (ADAT_RX)
|
||||||
|
USB_Descriptor_Endpoint_t Audio_Int_Endpoint;
|
||||||
|
#endif
|
||||||
} __attribute__((packed)) USB_CfgDesc_Audio2_CS_Control_Int;
|
} __attribute__((packed)) USB_CfgDesc_Audio2_CS_Control_Int;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -1576,6 +1579,19 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
.iTerminal = offsetof(StringDescTable_t, usbOutputTermStr_Audio2)/sizeof(char *)
|
.iTerminal = offsetof(StringDescTable_t, usbOutputTermStr_Audio2)/sizeof(char *)
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(SPDIF_RX) || defined(ADAT_RX)
|
||||||
|
/* Standard AS Interrupt Endpoint Descriptor (4.8.2.1): */
|
||||||
|
.Audio_Int_Endpoint =
|
||||||
|
{
|
||||||
|
.bLength = sizeof(USB_Descriptor_Endpoint_t),
|
||||||
|
.bDescriptorType = USB_DESCTYPE_ENDPOINT,
|
||||||
|
.bEndpointAddress = ENDPOINT_ADDRESS_IN_INTERRUPT, /* (D7: 0:out, 1:in) */
|
||||||
|
.bmAttributes = 0x03, /* (bitmap) */
|
||||||
|
.wMaxPacketSize = 6,
|
||||||
|
.bInterval = 8,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
}, /* End of .Audio_CS_Control_Int */
|
}, /* End of .Audio_CS_Control_Int */
|
||||||
|
|
||||||
#if (NUM_USB_CHAN_OUT > 0)
|
#if (NUM_USB_CHAN_OUT > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user