forked from PAWPAW-Mirror/lib_xua
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:
@@ -1311,17 +1311,21 @@ 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 */
|
||||||
#if (NUM_USB_CHAN_OUT > 2)
|
#ifndef NUM_USB_CHAN_OUT_FS
|
||||||
#define NUM_USB_CHAN_OUT_FS (2)
|
#if (NUM_USB_CHAN_OUT > 2)
|
||||||
#else
|
#define NUM_USB_CHAN_OUT_FS (2)
|
||||||
#define NUM_USB_CHAN_OUT_FS (NUM_USB_CHAN_OUT)
|
#else
|
||||||
|
#define NUM_USB_CHAN_OUT_FS (NUM_USB_CHAN_OUT)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (NUM_USB_CHAN_IN > 2)
|
#ifndef NUM_USB_CHAN_IN_FS
|
||||||
#define NUM_USB_CHAN_IN_FS (2)
|
#if (NUM_USB_CHAN_IN > 2)
|
||||||
#else
|
#define NUM_USB_CHAN_IN_FS (2)
|
||||||
#define NUM_USB_CHAN_IN_FS (NUM_USB_CHAN_IN)
|
#else
|
||||||
|
#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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user