Added seperate channel count and freq defines for UAC1

This commit is contained in:
Ross Owen
2013-02-07 17:16:10 +00:00
parent d921f04cd5
commit 8b0b9bc85e

View File

@@ -30,6 +30,25 @@
#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)
#undef IO_EXPANSION
#endif
@@ -87,6 +106,8 @@
#define AUDIO_CLASS 2
#endif
/* Number of IS2 chans to DAC */
#ifndef I2S_CHANS_DAC
#error I2S_CHANS_DAC not defined