forked from PAWPAW-Mirror/lib_xua
Added seperate channel count and freq defines for UAC1
This commit is contained in:
@@ -30,6 +30,25 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (MAX_FREQ > 96000)
|
||||||
|
#define MAX_FREQ_A1 96000
|
||||||
|
#else
|
||||||
|
#define MAX_FREQ_A1 MAX_FREQ
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* For Audio Class 1.0 we always have at most 2 channels */
|
||||||
|
#if (NUM_USB_CHAN_OUT > 2)
|
||||||
|
#define NUM_USB_CHAN_OUT_A1 (2)
|
||||||
|
#else
|
||||||
|
#define NUM_USB_CHAN_OUT_A1 (NUM_USB_CHAN_OUT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (NUM_USB_CHAN_IN > 2)
|
||||||
|
#define NUM_USB_CHAN_IN_A1 (2)
|
||||||
|
#else
|
||||||
|
#define NUM_USB_CHAN_IN_A1 (NUM_USB_CHAN_IN)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(IO_EXPANSION) && (IO_EXPANSION == 0)
|
#if defined(IO_EXPANSION) && (IO_EXPANSION == 0)
|
||||||
#undef IO_EXPANSION
|
#undef IO_EXPANSION
|
||||||
#endif
|
#endif
|
||||||
@@ -87,6 +106,8 @@
|
|||||||
#define AUDIO_CLASS 2
|
#define AUDIO_CLASS 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Number of IS2 chans to DAC */
|
/* Number of IS2 chans to DAC */
|
||||||
#ifndef I2S_CHANS_DAC
|
#ifndef I2S_CHANS_DAC
|
||||||
#error I2S_CHANS_DAC not defined
|
#error I2S_CHANS_DAC not defined
|
||||||
|
|||||||
Reference in New Issue
Block a user