From 3f4ba11f26a83e8295fa39c60cdf28e53474d86d Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Tue, 5 Aug 2014 17:06:56 +0100 Subject: [PATCH] Avoid declaring unneeded channel when digital rx is not enabled --- module_usb_audio/main.xc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index 4e271583..e4501c16 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -364,7 +364,11 @@ chanend ?c_clk_int chan c_mix_out; #endif +#if defined(SPDIF_RX) || defined(ADAT_RX) chan c_dig_rx; +#else + #define c_dig_rx null +#endif par { @@ -436,7 +440,6 @@ int main() chan c_clk_ctl; chan c_clk_int; #else -#define c_dig_rx null #define c_clk_int null #define c_clk_ctl null #define c_spdif_rx null