From 14dca46850dc9f3afa9649a68654a6978cded41a Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Fri, 24 Jan 2014 15:46:33 +0000 Subject: [PATCH] Audio 1.0 descriptors now use MAX_PACKET_SIZE_XXX_FS defines --- module_usb_audio/endpoint0/descriptors.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/module_usb_audio/endpoint0/descriptors.h b/module_usb_audio/endpoint0/descriptors.h index 9890ed5f..4bf7b544 100644 --- a/module_usb_audio/endpoint0/descriptors.h +++ b/module_usb_audio/endpoint0/descriptors.h @@ -1834,11 +1834,8 @@ unsigned char cfgDesc_Audio1[] = 0x05, /* ENDPOINT */ 0x01, /* endpointAddress - D7, direction (0 OUT, 1 IN). D6..4 reserved (0). D3..0 endpoint no. */ 0x05, /* attributes - isochronous async */ -#if defined(OUTPUT) && defined(INPUT) - 0x26, 0x01, /* maxPacketSize 294 */ -#else - 0x46, 0x02, /* maxPacketSize 582 */ -#endif + MAX_PACKET_SIZE_OUT_FS&0xff, /* 4 wMaxPacketSize (Typically 294 bytes)*/ + (MAX_PACKET_SIZE_OUT_FS&0xff00)>>8, /* 5 wMaxPacketSize */ 0x01, /* bInterval */ 0x00, /* bRefresh */ 0x81, /* bSynchAdddress - address of EP used to communicate sync info */ @@ -1917,11 +1914,8 @@ unsigned char cfgDesc_Audio1[] = 0x05, /* ENDPOINT */ 0x82, /* EndpointAddress */ 0x05, /* Attributes - isochronous async */ -#if defined(OUTPUT) && defined(INPUT) - 0x26, 0x01, /* maxPacketSize 294 */ -#else - 0x46, 0x02, /* maxPacketSize 582 */ -#endif + MAX_PACKET_SIZE_IN_FS&0xff, /* 4 wMaxPacketSize (Typically 294 bytes)*/ + (MAX_PACKET_SIZE_IN_FS&0xff00)>>8, /* 5 wMaxPacketSize */ 0x01, /* bInterval */ 0x00, /* bRefresh */ 0x00, /* bSynchAddress */