;/*++
;
;Copyright (c) 2017-2024 Intel Corporation
;
;Module Name:
;
;    ov01a1s.inf
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer = 11/22/2024,64.26100.13.17675
CatalogFile=ov01a1s.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 13
CopyCPFFiles=13

;*****************************************
; Sensor Device  Install Section
;*****************************************

[Manufacturer]
%OV01A1S%=Standard,NTamd64.10.0...17134

; For XP and later
[Standard.NTamd64.10.0...17134]
%ov01a1s.DeviceDesc%=ov01a1s_Device, ACPI\OVTI01AS


[OV01A1S_Device.NTamd64]
CopyFiles=OV01A1S_Device.NT.Copy
CopyFiles=CopyCPFFiles


[OV01A1S_Device.NTamd64.HW]
AddReg=OV01A1S_Dev.AddReg

[OV01A1S_Dev.AddReg]
HKR,"WDF","WdfDirectedPowerTransitionEnable",0x00010001,1

[OV01A1S_Device.NT.Copy]
ov01a1s.sys
graph_settings_ov01a1s_YHRN_MTL.xml
graph_settings_ov01a1s_YHRN180_MTL.xml

[CopyCPFFiles]
OV01A1S_YHRN_MTL.cpf
OV01A1S_YHRN_MTL.aiqb
OV01A1S_YHRN180_MTL.cpf
OV01A1S_YHRN180_MTL.aiqb



;-------------- Service installation
[OV01A1S_Device.NTamd64.Services]
AddService = ov01a1s, %SPSVCINST_ASSOCSERVICE%, ov01a1s_Service_Inst

[ov01a1s_Service_Inst]
DisplayName    = %ov01a1s.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\ov01a1s.sys
Dependencies   = SpbCx,inteli2c
AddReg         = OV01A1S_Device.AddReg

[OV01A1S_Device.AddReg]
;Use same security checks on relative opens
HKR,Parameters,DeviceCharacteristics,0x10001,0x0100
;Grant access just to built-in administrators, local system, and usermode drivers
HKR,Parameters,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0)(D;;GA;;;WD)"
HKR,Parameters,IRFlashLedIntensity,0x10001, 100
HKR,Parameters,IsSupportCameraMask,0x10001, 1

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
ov01a1s.sys = 1
OV01A1S_YHRN_MTL.cpf = 1
OV01A1S_YHRN_MTL.aiqb = 1
graph_settings_ov01a1s_YHRN_MTL.xml = 1
OV01A1S_YHRN180_MTL.cpf = 1
OV01A1S_YHRN180_MTL.aiqb = 1
graph_settings_ov01a1s_YHRN180_MTL.xml = 1

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
OV01A1S = "OV01A1S Camera Sensor"
DiskId1 = "OV01A1S Camera Installation Disk #1"
ov01a1s.DeviceDesc = "Camera Sensor OV01A1S"
ov01a1s.SVCDESC = "Camera Sensor OV01A1S"
IRSensor = "{CD59E198-F241-4ACD-BB6D-16CB977E5DDC}"
