bsptemplate/asspandvariant/template_variant/camerasc/camerasc.cpp
changeset 31 56f325a607ea
parent 0 a41df078684a
child 258 880ff05ad710
equal deleted inserted replaced
15:4122176ea935 31:56f325a607ea
    14 // template\template_variant\camerasc\camerasc.cpp
    14 // template\template_variant\camerasc\camerasc.cpp
    15 // Implementation of the template shared chunk camera physical device driver (PDD).
    15 // Implementation of the template shared chunk camera physical device driver (PDD).
    16 // This file is part of the Template Base port
    16 // This file is part of the Template Base port
    17 // 
    17 // 
    18 //
    18 //
    19 
       
    20 #include "camerasc_plat.h"
    19 #include "camerasc_plat.h"
    21 
    20 
    22 _LIT(KCameraScPddName, "CameraSc.TE");
    21 _LIT(KCameraScPddName, "CameraSc.TE");
    23 _LIT(KCameraScDfcQueueName, "CameraSc.TE.DfcQ");
    22 _LIT(KCameraScDfcQueueName, "CameraSc.TE.DfcQ");
    24 
    23 
   456 void DTemplateCameraScPdd::GetChunkCreateInfo(TChunkCreateInfo& aChunkCreateInfo)
   455 void DTemplateCameraScPdd::GetChunkCreateInfo(TChunkCreateInfo& aChunkCreateInfo)
   457 	{
   456 	{
   458 	// Can be opened by any number of user side processes
   457 	// Can be opened by any number of user side processes
   459 	aChunkCreateInfo.iType = TChunkCreateInfo::ESharedKernelMultiple;
   458 	aChunkCreateInfo.iType = TChunkCreateInfo::ESharedKernelMultiple;
   460 	// Use both L1 and L2 cache if available.  LDD will take care of pre and post DMA cache handling
   459 	// Use both L1 and L2 cache if available.  LDD will take care of pre and post DMA cache handling
       
   460 #ifdef __WINS__
       
   461 	aChunkCreateInfo.iMapAttr = 0xFF000;
       
   462 #else
   461 	aChunkCreateInfo.iMapAttr = EMapAttrCachedMax;
   463 	aChunkCreateInfo.iMapAttr = EMapAttrCachedMax;
       
   464 #endif
   462 	// Chunk owns the memory which will be freed when the chunk is destroyed
   465 	// Chunk owns the memory which will be freed when the chunk is destroyed
   463 	aChunkCreateInfo.iOwnsMemory = ETrue;
   466 	aChunkCreateInfo.iOwnsMemory = ETrue;
   464 	// Don't queue the chunk's destruction on an DFC
   467 	// Don't queue the chunk's destruction on an DFC
   465 	aChunkCreateInfo.iDestroyedDfc = NULL;
   468 	aChunkCreateInfo.iDestroyedDfc = NULL;
   466 	}
   469 	}
   513 	__KTRACE_CAM(Kern::Printf("< DTemplateCameraScPdd::NotifyImageCaptureEvent() => Returning %d", r));
   516 	__KTRACE_CAM(Kern::Printf("< DTemplateCameraScPdd::NotifyImageCaptureEvent() => Returning %d", r));
   514 
   517 
   515 	return r;
   518 	return r;
   516 	}
   519 	}
   517 
   520 
   518 
   521 TInt DTemplateCameraScPdd::SetBrightness(TUint /*aBrightness*/)
   519 TInt DTemplateCameraScPdd::SetBrightness(TUint aValue)
   522 	{
   520 	{
   523 	return KErrNone;
   521 	return KErrNotSupported;
   524 	}
   522 	}
   525 
   523 
   526 TInt DTemplateCameraScPdd::SetContrast(TUint /*aContrast*/)
   524 TInt DTemplateCameraScPdd::SetContrast(TUint aValue)
   527 	{
   525 	{
   528 	return KErrNone;
   526 	return KErrNotSupported;
   529 	}
   527 	}
   530 
   528 
   531 TInt DTemplateCameraScPdd::SetColorEffect(TUint /*aColorEffect*/)
   529 TInt DTemplateCameraScPdd::SetColorEffect(TUint aValue)
   532 	{
   530 	{
   533 	return KErrNone;
   531 	return KErrNotSupported;
   534 	}
   532 	}
   535