NUM_USB_CHAN_IN_FS and NUM_USB_CHAN_OUT_FS can now be over-ridden for multi-channel at FS. Default is still 2.

This commit is contained in:
Ross Owen
2015-11-12 19:02:15 +00:00
parent 1ec017d1eb
commit a63663da13

View File

@@ -1311,18 +1311,22 @@ enum USBEndpointNumber_Out
/* For Audio Class 1.0 and Full-speed Audio 2.0 we always have at most 2 channels */ /* For Audio Class 1.0 and Full-speed Audio 2.0 we default having at most 2 channels */
#ifndef NUM_USB_CHAN_OUT_FS
#if (NUM_USB_CHAN_OUT > 2) #if (NUM_USB_CHAN_OUT > 2)
#define NUM_USB_CHAN_OUT_FS (2) #define NUM_USB_CHAN_OUT_FS (2)
#else #else
#define NUM_USB_CHAN_OUT_FS (NUM_USB_CHAN_OUT) #define NUM_USB_CHAN_OUT_FS (NUM_USB_CHAN_OUT)
#endif #endif
#endif
#ifndef NUM_USB_CHAN_IN_FS
#if (NUM_USB_CHAN_IN > 2) #if (NUM_USB_CHAN_IN > 2)
#define NUM_USB_CHAN_IN_FS (2) #define NUM_USB_CHAN_IN_FS (2)
#else #else
#define NUM_USB_CHAN_IN_FS (NUM_USB_CHAN_IN) #define NUM_USB_CHAN_IN_FS (NUM_USB_CHAN_IN)
#endif #endif
#endif
/* Apply sample-rate restrictions to full-speed operation */ /* Apply sample-rate restrictions to full-speed operation */
#if (NUM_USB_CHAN_OUT_FS > 0) && (NUM_USB_CHAN_IN_FS > 0) #if (NUM_USB_CHAN_OUT_FS > 0) && (NUM_USB_CHAN_IN_FS > 0)