;/*++
;
;Copyright (c) 2017-2018 Intel Corporation
;
;Module Name:
;
;    ov01a1s.inf
;
;Abstract:
;    INF file for installing OV01A1S camera sensor (ACPI\OVTI01AF) driver
;
;Installation Notes:
;    Using Devcon: Type "devcon update ov01a1s.inf ACPI\OVTI01AF" to install
;
;--*/

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

[DestinationDirs]
DefaultDestDir = 13
CopyCPFFiles=13


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

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

; For XP and later
[Standard.NTamd64.10.0...17134]
%ov01a1s.DeviceDesc%=ov01a1s_Device, ACPI\OVTI01AF
%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_LNL.bin
graph_settings_OV01A1S_YHRN_LNL_2.bin
graph_settings_OV01A1S_YHRN_LNL_MSC-ON.bin

[CopyCPFFiles]
OV01A1S_YHRN_LNL.cpf
OV01A1S_YHRN_LNL.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

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

[SourceDisksFiles]
ov01a1s.sys = 1
OV01A1S_YHRN_LNL.cpf = 1
OV01A1S_YHRN_LNL.aiqb = 1
graph_settings_OV01A1S_YHRN_LNL.bin = 1
graph_settings_OV01A1S_YHRN_LNL_2.bin = 1
graph_settings_OV01A1S_YHRN_LNL_MSC-ON.bin = 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}"
