Fixing some build issues when I2S_CHANS_DAC = 0 but DSD_CHANS_DAC != 0

This commit is contained in:
Ross Owen
2015-09-07 16:09:57 +01:00
parent f5da75fa46
commit 5f7d11d2fb
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ void EnableBufferedPort(port p, unsigned transferWidth)
/* C wrapper for ConfigAudioPorts() to handle DSD ports */
void ConfigAudioPortsWrapper(
#if (I2S_CHANS_DAC != 0)
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
port p_dac[], int numPortsDac,
#endif
@@ -46,7 +46,7 @@ void ConfigAudioPortsWrapper(
unsigned int divide, unsigned int dsdMode)
{
ConfigAudioPorts(
#if (I2S_CHANS_DAC != 0)
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
p_dac,
numPortsDac,
#endif

View File

@@ -57,7 +57,7 @@ void ConfigAudioPorts(
#ifdef __XC__
void ConfigAudioPortsWrapper(
#if (I2S_CHANS_DAC != 0)
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
buffered out port:32 p_i2s_dac[], int numPortsDAC,
#endif
@@ -78,7 +78,7 @@ void ConfigAudioPortsWrapper(
#else
void ConfigAudioPortsWrapper(
#if (I2S_CHANS_DAC != 0)
#if (I2S_CHANS_DAC != 0) || (DSD_CHANS_DAC != 0)
port p_i2s_dac[], int numPortsDAC,
#endif