;------------------------------------------------------------------------------
; PV-143PV.INF (Video)
;------------------------------------------------------------------------------

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Msft%

[Manufacturer]
%MsftMfg%=Provideo

[DestinationDirs]
BT848_0.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
BT848_1.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
BT848_2.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
BT848_3.CopyDrivers=10,system32\drivers   ; would 12 do this? (docs say not for win9x)
CoInstaller_CopyFiles=11 ; System Dir( system32 on NT )

;------------------------------------------------------------------------------
; Device ID List
;------------------------------------------------------------------------------
;
; ID Number     Device
; 0x36E         Bt878 (Video Section)
; 0x878         Bt878 (Audio Section)

[Provideo]
%BT848_0.VideoDeviceDesc%=BT848_0.NoTuner,PCI\VEN_109E&DEV_036E&SUBSYS_1430AA00
%BT848_1.VideoDeviceDesc%=BT848_1.NoTuner,PCI\VEN_109E&DEV_036E&SUBSYS_1431AA01
%BT848_2.VideoDeviceDesc%=BT848_2.NoTuner,PCI\VEN_109E&DEV_036E&SUBSYS_1432AA02
%BT848_3.VideoDeviceDesc%=BT848_3.NoTuner,PCI\VEN_109E&DEV_036E&SUBSYS_1433AA03

;------------------------------------------------------------------------------

[BT848_0.CopyDrivers]
PV878_A0.sys
stream.sys

[BT848_1.CopyDrivers]
PV878_A1.sys
stream.sys

[BT848_2.CopyDrivers]
PV878_A2.sys
stream.sys

[BT848_3.CopyDrivers]
PV878_A3.sys
stream.sys

;------------------------------------------------------------------------------

[BT848_0.KnownFiles]
PV878_A0.sys=safe

[BT848_1.KnownFiles]
PV878_A1.sys=safe

[BT848_2.KnownFiles]
PV878_A2.sys=safe

[BT848_3.KnownFiles]
PV878_A3.sys=safe

;------------------------------------------------------------------------------

[BT848_0.NoTuner]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS878.Registration,KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT848_0.AddReg
CopyFiles=  BT848_0.CopyDrivers
KnownFiles= BT848_0.KnownFiles

[BT848_1.NoTuner]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS878.Registration,KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT848_1.AddReg
CopyFiles=  BT848_1.CopyDrivers
KnownFiles= BT848_1.KnownFiles

[BT848_2.NoTuner]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS878.Registration,KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT848_2.AddReg
CopyFiles=  BT848_2.CopyDrivers
KnownFiles= BT848_2.KnownFiles

[BT848_3.NoTuner]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS878.Registration,KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT848_3.AddReg
CopyFiles=  BT848_3.CopyDrivers
KnownFiles= BT848_3.KnownFiles

;------------------------------------------------------------------------------

[BT848_0.NoTuner.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[BT848_1.NoTuner.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[BT848_2.NoTuner.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[BT848_3.NoTuner.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
DrvCoIns.dll
PVNSetup.exe
PVNSetup.des

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"DrvCoIns.dll,DriverCoInstaller"

;-------------------------------------------------------------------------------

[BT848_0.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PV878_A0.sys
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","PV14X",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x10, 0x00, 0x00, 0x00

[BT848_1.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PV878_A1.sys
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","PV14X",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x10, 0x00, 0x00, 0x00

[BT848_2.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PV878_A2.sys
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","PV14X",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x10, 0x00, 0x00, 0x00

[BT848_3.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,PV878_A3.sys
HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","PV14X",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x10, 0x00, 0x00, 0x00

;------------------------------------------------------------------------------

[VideoCapture_0]
AddReg=VideoCapture_0.AddReg, DriverData.AddReg

[VideoCapture_1]
AddReg=VideoCapture_1.AddReg, DriverData.AddReg

[VideoCapture_2]
AddReg=VideoCapture_2.AddReg, DriverData.AddReg

[VideoCapture_3]
AddReg=VideoCapture_3.AddReg, DriverData.AddReg

;------------------------------------------------------------------------------

[DriverData.AddReg]
HKR,,VideoChNum,, 4
HKR,,AudioChNum,, 1
HKR,,MaxSupportCardsNum,, 4

;;0:disable 1:enable
HKR,,AGC,, 0

;;0:disable 1:enable
HKR,,WatchDog,, 1

;;0:disable 1:enable
HKR,,HARDWARED1,, 0

;;0:internal 1:external
HKR,,AudioADC,, 0

;;internal 0~255 external 0~31
HKR,,AudioMaxVol,, 255
HKR,,AudioMinVol,, 0

;;AnalogVideo_NTSC_M=1
;;AnalogVideo_PAL_B=16
HKR,,VideoStandard,, 1

;;CIF Image size
HKR,,NTSCCIFWidth,, 320
HKR,,NTSCCIFHeight,, 240
HKR,,PALCIFWidth,, 320
HKR,,PALCIFHeight,, 240

;;D1 Image size
HKR,,NTSCD1Width,, 640
HKR,,NTSCD1Height,, 480
HKR,,PALD1Width,, 640
HKR,,PALD1Height,, 480

;;number of 878 chips on board
HKR,,Chips,, 1

;------------------------------------------------------------------------------------

[VideoCapture_0.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%BT848_0.Capture%

[VideoCapture_1.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%BT848_1.Capture%

[VideoCapture_2.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%BT848_2.Capture%

[VideoCapture_3.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%BT848_3.Capture%

;------------------------------------------------------------------------------

[BT848_0.NoTuner.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture_0,

[BT848_1.NoTuner.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture_1,

[BT848_2.NoTuner.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture_2,

[BT848_3.NoTuner.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture_3,

;------------------------------------------------------------------------------

[BT848_0.NoTuner.Services]
AddService = BT848_143P0,0x00000002,BT848_0.ServiceInstall

[BT848_1.NoTuner.Services]
AddService = BT848_143P1,0x00000002,BT848_1.ServiceInstall

[BT848_2.NoTuner.Services]
AddService = BT848_143P2,0x00000002,BT848_2.ServiceInstall

[BT848_3.NoTuner.Services]
AddService = BT848_143P3,0x00000002,BT848_3.ServiceInstall

;------------------------------------------------------------------------------

[BT848_0.ServiceInstall]
DisplayName   = %BT848_0.VideoDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\PV878_A0.sys

[BT848_1.ServiceInstall]
DisplayName   = %BT848_1.VideoDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\PV878_A1.sys

[BT848_2.ServiceInstall]
DisplayName   = %BT848_2.VideoDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\PV878_A2.sys

[BT848_3.ServiceInstall]
DisplayName   = %BT848_3.VideoDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\PV878_A3.sys

;------------------------------------------------------------------------------

[Strings]
Msft=                   "Provideo"
MsftMfg=                "Provideo"
RunOnce=                "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

BT848_0.VideoDeviceDesc=  "BT878, WDM Video Capture 0"
BT848_1.VideoDeviceDesc=  "BT878, WDM Video Capture 1"
BT848_2.VideoDeviceDesc=  "BT878, WDM Video Capture 2"
BT848_3.VideoDeviceDesc=  "BT878, WDM Video Capture 3"

BT848_0.Capture=          "BT878 Capture 0"
BT848_1.Capture=          "BT878 Capture 1"
BT848_2.Capture=          "BT878 Capture 2"
BT848_3.Capture=          "BT878 Capture 3"

SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_ERROR_NORMAL=1