usbmgmt/usbmgr/usbman/server/SRC/CUsbServer.cpp
changeset 49 93c0009bd947
parent 48 21625e5de155
equal deleted inserted replaced
48:21625e5de155 49:93c0009bd947
   170 #ifndef USE_DUMMY_CLASS_CONTROLLER	
   170 #ifndef USE_DUMMY_CLASS_CONTROLLER	
   171 	iUsbDevice->ReadPersonalitiesL();
   171 	iUsbDevice->ReadPersonalitiesL();
   172 	if (iUsbDevice->isPersonalityCfged())
   172 	if (iUsbDevice->isPersonalityCfged())
   173 		{
   173 		{
   174 #ifndef __OVER_DUMMYUSBDI__
   174 #ifndef __OVER_DUMMYUSBDI__
   175 		iUsbDevice->ValidatePersonalitiesL();
   175 #ifdef _DEBUG
       
   176 		iUsbDevice->ValidatePersonalities();
       
   177 #endif
   176 #endif
   178 #endif
   177 		iUsbDevice->SetDefaultPersonalityL();		
   179 		iUsbDevice->SetDefaultPersonalityL();		
   178 		}
   180 		}
   179 	else  
   181 	else  
   180 		{
   182 		{
   185 	OstTrace0( TRACE_NORMAL, CUSBSERVER_CONSTRUCTL_DUP2, "CUsbServer::ConstructL; Using Dummy Class Controller, so using fallback CCs" );
   187 	OstTrace0( TRACE_NORMAL, CUSBSERVER_CONSTRUCTL_DUP2, "CUsbServer::ConstructL; Using Dummy Class Controller, so using fallback CCs" );
   186 	iUsbDevice->LoadFallbackClassControllersL();
   188 	iUsbDevice->LoadFallbackClassControllersL();
   187 #endif // USE_DUMMY_CLASS_CONTROLLER		
   189 #endif // USE_DUMMY_CLASS_CONTROLLER		
   188 
   190 
   189 #ifdef SYMBIAN_ENABLE_USB_OTG_HOST_PRIV
   191 #ifdef SYMBIAN_ENABLE_USB_OTG_HOST_PRIV
   190 	iUsbHost = CUsbHost::NewL();
   192 	iUsbHost = CUsbHost::NewL(*this);
   191 	//previously this was moved to CUsbSession:StartDeviceL() and similar
   193 	//previously this was moved to CUsbSession:StartDeviceL() and similar
   192 	//But it will cause the loading of personality longer.
   194 	//But it will cause the loading of personality longer.
   193 	//So it is moved back here.
   195 	//So it is moved back here.
   194 	iUsbHost->StartL();
   196 	iUsbHost->StartL();
   195 #endif // SYMBIAN_ENABLE_USB_OTG_HOST_PRIV
   197 #endif // SYMBIAN_ENABLE_USB_OTG_HOST_PRIV