Add DS3 support to I2S output path (USB->DS3->I2S)

This commit is contained in:
Sam Chesney
2017-01-11 17:02:08 +00:00
parent 066905f661
commit 491ec6697e
2 changed files with 57 additions and 19 deletions

View File

@@ -134,6 +134,19 @@
#endif
#endif
/**
* @brief Output I2S (host to device) channels can be downsampled by a factor of 3.
*
* Default: 1 i.e. downsampling is disabled.
*/
#ifndef I2S_DOWNSAMPLE_FACTOR_OUT
#define I2S_DOWNSAMPLE_FACTOR_OUT (1)
#else
#if (I2S_DOWNSAMPLE_FACTOR_OUT != 3) && (I2S_DOWNSAMPLE_FACTOR_OUT != 1)
#error Unsupported I2S output downsampling configuration
#endif
#endif
/**
* @brief Only downsample one channel per input I2S frame.
*
@@ -157,6 +170,13 @@
#define I2S_DOWNSAMPLE_CHANS_IN I2S_CHANS_ADC
#endif
/**
* @brief Number of output (host to device) I2S channels to downsample.
*
* Default: The number of I2S output channels.
*/
#define I2S_DOWNSAMPLE_CHANS_OUT I2S_CHANS_ADC
/**
* @brief Max supported sample frequency for device (Hz). Default: 192000
*/