From a97666892a7b83e37b6c889a2020c56ed4a4390f Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 19 Feb 2014 17:06:16 +0000 Subject: [PATCH] Removed setting of g_iap_reset. Previously was used to signal decouple to reset iAP on a SetConfig event. No longer used --- module_usb_audio/endpoint0/endpoint0.xc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/module_usb_audio/endpoint0/endpoint0.xc b/module_usb_audio/endpoint0/endpoint0.xc index 9fb0af6b..94c9aa61 100755 --- a/module_usb_audio/endpoint0/endpoint0.xc +++ b/module_usb_audio/endpoint0/endpoint0.xc @@ -94,12 +94,6 @@ extern unsigned char g_interfaceAlt[]; /* Global variable for current USB bus speed (i.e. FS/HS) */ unsigned g_curUsbSpeed = 0; - -/* Global used for signalling reset to decouple */ -#ifdef IAP -extern unsigned g_iap_reset; -#endif - #ifdef NATIVE_DSD /* We remember if we are in DSD mode to avoid Configuring the DAC too often - thus avoiding pops and clicks */ unsigned g_dsdMode = 0; @@ -441,18 +435,11 @@ void Endpoint0( chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl, /* Consider host active with valid driver at this point */ UserHostActive(1); } -#ifdef IAP - { - int iap_reset = 1; - SET_SHARED_GLOBAL(g_iap_reset, iap_reset); - } -#endif + ///* No data stage for this request, just do status stage */ //result = XUD_DoSetRequestStatus(ep0_in); - // /* We want to run USB_StandardsRequests() implementation also */ - //if(result == 0) - // result = 1; + /* We want to run USB_StandardsRequests() implementation also. Don't modify result */ break; default: