From 76886b50875fae4dd525a316b6ec47e9878e8015 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 28 Aug 2014 12:52:44 +0100 Subject: [PATCH] Build issues fixed for none EAF configs --- module_usb_audio/endpoint0/descriptors.h | 2 +- module_usb_audio/endpoint0/endpoint0.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/endpoint0/descriptors.h b/module_usb_audio/endpoint0/descriptors.h index 381bb3d7..0868fafe 100644 --- a/module_usb_audio/endpoint0/descriptors.h +++ b/module_usb_audio/endpoint0/descriptors.h @@ -930,7 +930,7 @@ enum USBInterfaceNumber #if (NUM_USB_CHAN_OUT > 0) INTERFACE_NUMBER_AUDIO_OUTPUT, #endif -#if (NUM_USB_CHAN_IN > 0) +#if (NUM_USB_CHAN_IN > 0) INTERFACE_NUMBER_AUDIO_INPUT, #endif #if defined(MIDI) && (MIDI != 0) diff --git a/module_usb_audio/endpoint0/endpoint0.c b/module_usb_audio/endpoint0/endpoint0.c index 4221f23e..d6bbd991 100755 --- a/module_usb_audio/endpoint0/endpoint0.c +++ b/module_usb_audio/endpoint0/endpoint0.c @@ -267,6 +267,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, switch (sp.wIndex) { /* Check for audio stream from host start/stop */ +#if (NUM_USB_CHAN_OUT > 0) case INTERFACE_NUMBER_AUDIO_OUTPUT: /* Check the alt is in range */ if(sp.wValue <= OUTPUT_FORMAT_COUNT) @@ -299,7 +300,9 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, } } break; +#endif +#if (NUM_USB_CHAN_IN > 0) case INTERFACE_NUMBER_AUDIO_INPUT: /* Check the alt is in range */ if(sp.wValue <= INPUT_FORMAT_COUNT) @@ -332,6 +335,8 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, } } break; +#endif + #ifdef IAP_EA_NATIVE_TRANS case INTERFACE_NUMBER_IAP_EA_NATIVE_TRANS: /* Check the alt is in range */