c_dig_rx is no longer nullable (helps with timing due to issue with compiler checks)

This commit is contained in:
Ross Owen
2014-09-18 11:50:08 +01:00
parent 8465ae1c5e
commit cc4165e57b
3 changed files with 26 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
#ifndef __audio_h__
#define __audio_h__
#include "devicedefines.h"
/** The audio driver thread.
*
* This function drives I2S ports and handles samples to/from other digital
@@ -13,6 +14,10 @@
* \param c_config An optional channel that will be passed on to the
* CODEC configuration functions.
*/
void audio(chanend c_in, chanend ?c_dig, chanend ?c_config, chanend ?c_adc);
void audio(chanend c_in,
#if (defined(SPDIF_RX) || defined(ADAT_RX))
chanend c_dig,
#endif
chanend ?c_config, chanend ?c_adc);
#endif // __audio_h__