Avoid declaring unneeded channel when digital rx is not enabled

This commit is contained in:
Sam Chesney
2014-08-05 17:06:56 +01:00
parent eea9122373
commit 3f4ba11f26

View File

@@ -364,7 +364,11 @@ chanend ?c_clk_int
chan c_mix_out; chan c_mix_out;
#endif #endif
#if defined(SPDIF_RX) || defined(ADAT_RX)
chan c_dig_rx; chan c_dig_rx;
#else
#define c_dig_rx null
#endif
par par
{ {
@@ -436,7 +440,6 @@ int main()
chan c_clk_ctl; chan c_clk_ctl;
chan c_clk_int; chan c_clk_int;
#else #else
#define c_dig_rx null
#define c_clk_int null #define c_clk_int null
#define c_clk_ctl null #define c_clk_ctl null
#define c_spdif_rx null #define c_spdif_rx null