From 5812ce752b5931113210919140d6fd18fb54b824 Mon Sep 17 00:00:00 2001 From: Daniel Pieczko Date: Mon, 5 Sep 2022 16:04:32 +0100 Subject: [PATCH] Fix build when CHAN_BUFF_CTRL is defined --- lib_xua/src/core/buffer/ep/ep_buffer.xc | 1 + lib_xua/src/core/main.xc | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib_xua/src/core/buffer/ep/ep_buffer.xc b/lib_xua/src/core/buffer/ep/ep_buffer.xc index 73ee2768..26c80d8f 100644 --- a/lib_xua/src/core/buffer/ep/ep_buffer.xc +++ b/lib_xua/src/core/buffer/ep/ep_buffer.xc @@ -119,6 +119,7 @@ void XUA_Buffer( ) { #ifdef CHAN_BUFF_CTRL +#warning Using channel to control buffering - this may reduce performance but improve power consumption chan c_buff_ctrl; #endif diff --git a/lib_xua/src/core/main.xc b/lib_xua/src/core/main.xc index 54138154..3bb7fadc 100755 --- a/lib_xua/src/core/main.xc +++ b/lib_xua/src/core/main.xc @@ -298,10 +298,6 @@ VENDOR_REQUESTS_PARAMS_DEC_ chan c_xud_out[ENDPOINT_COUNT_OUT]; /* Endpoint channels for XUD */ chan c_xud_in[ENDPOINT_COUNT_IN]; chan c_aud_ctl; -#ifdef CHAN_BUFF_CTRL -#warning Using channel to control buffering - this may reduce performance but improve power consumption - chan c_buff_ctrl; -#endif #ifndef MIXER #define c_mix_ctl null @@ -367,9 +363,6 @@ VENDOR_REQUESTS_PARAMS_DEC_ c_sof, c_aud_ctl, p_for_mclk_count #if (HID_CONTROLS) , c_xud_in[ENDPOINT_NUMBER_IN_HID] -#endif -#ifdef CHAN_BUFF_CTRL - , c_buff_ctrl #endif , c_mix_out #if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC)