forked from PAWPAW-Mirror/lib_xua
Copy across from apps_usb_aud_shared
This commit is contained in:
@@ -9,27 +9,6 @@
|
||||
|
||||
#include "customdefines.h"
|
||||
|
||||
/* Tidy up historical INPUT/OUTPUT defines. INPUT/OUTPUT now enabled based on channel count defines */
|
||||
#if !defined(NUM_USB_CHAN_IN)
|
||||
#error NUM_USB_CHAN_IN must be defined!
|
||||
#else
|
||||
#if (NUM_USB_CHAN_IN == 0)
|
||||
#undef INPUT
|
||||
#else
|
||||
#define INPUT 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(NUM_USB_CHAN_OUT)
|
||||
#error NUM_USB_CHAN_OUT must be defined!
|
||||
#else
|
||||
#if (NUM_USB_CHAN_OUT == 0)
|
||||
#undef OUTPUT
|
||||
#else
|
||||
#define OUTPUT 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(MIDI) && (MIDI == 0)
|
||||
#undef MIDI
|
||||
#endif
|
||||
@@ -180,6 +159,12 @@
|
||||
#define MIDI_INTERFACES (0)
|
||||
#endif
|
||||
|
||||
#if defined(IAP)
|
||||
#define IAP_INTERFACES (1)
|
||||
#else
|
||||
#define IAP_INTERFACES (0)
|
||||
#endif
|
||||
|
||||
#define AUDIO_STOP_FOR_DFU (0x12345678)
|
||||
#define AUDIO_START_FROM_DFU (0x87654321)
|
||||
#define AUDIO_REBOOT_FROM_DFU (0xa5a5a5a5)
|
||||
@@ -187,8 +172,8 @@
|
||||
|
||||
#define MAX_VOL (0x20000000)
|
||||
|
||||
#define NUM_EP_OUT 3 /* Max number of device endpoints used */
|
||||
#define NUM_EP_IN 5
|
||||
#define NUM_EP_OUT 4 /* Max number of device endpoints used */
|
||||
#define NUM_EP_IN 7
|
||||
/* Length of clock unit/clock-selector units */
|
||||
#if defined(SPDIF_RX) && defined(ADAT_RX)
|
||||
#define NUM_CLOCKS 3
|
||||
@@ -200,7 +185,7 @@
|
||||
|
||||
|
||||
/* Total number of USB interfaces this device implements (+1 for required control interface) */
|
||||
#define NUM_INTERFACES INPUT_INTERFACES + OUTPUT_INTERFACES + DFU_INTERFACES + MIDI_INTERFACES + 1
|
||||
#define NUM_INTERFACES INPUT_INTERFACES + OUTPUT_INTERFACES + DFU_INTERFACES + MIDI_INTERFACES + IAP_INTERFACES + 1
|
||||
/* Audio Unit ID defines */
|
||||
#define FU_USBIN 11 /* Feature Unit: USB Audio device -> host */
|
||||
#define FU_USBOUT 10 /* Feature Unit: USB Audio host -> device*/
|
||||
@@ -214,18 +199,18 @@
|
||||
#define ID_CLKSRC_EXT 42 /* Clock source ID (external) */
|
||||
#define ID_CLKSRC_ADAT 43 /* Clock source ID (external) */
|
||||
|
||||
#define ID_XU_MIXSEL 50
|
||||
#define ID_XU_OUT 51
|
||||
#define ID_XU_IN 52
|
||||
#define ID_XU_MIXSEL 50
|
||||
#define ID_XU_OUT 51
|
||||
#define ID_XU_IN 52
|
||||
|
||||
#define ID_MIXER_1 60
|
||||
#define ID_MIXER_1 60
|
||||
|
||||
#ifndef SERIAL_STR
|
||||
#define SERIAL_STR "0000" /* Serial number string */
|
||||
#define SERIAL_STR "0000" /* Serial number string */
|
||||
#endif
|
||||
|
||||
#define SERIAL_STR_INDEX 0x03
|
||||
#define MANUFACTURER_STR_INDEX 0x01
|
||||
#define SERIAL_STR_INDEX 0x03
|
||||
#define MANUFACTURER_STR_INDEX 0x01
|
||||
#define PRODUCT_STR_INDEX 0x02
|
||||
|
||||
/* Mixer defines */
|
||||
|
||||
Reference in New Issue
Block a user