;;#############################################################################
;;## WFBBVCAP.INF for Windows WDM Drivers                            ##
;;## Copyright @2000-2006 Leadtek Research Inc.                              ##
;;## WinFast PVR2000 WDM Video Capture Driver                                ##
;;#############################################################################
[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Ldtk%
DriverVer=11/28/2006,5.13.22.6115
CatalogFile.ntx86=wfpvrcap.cat

[Manufacturer]
%Ldtk%=Leadtek

[SourceDisksNames]
1=%DiskId%,,0

[SourceDisksFiles]
wfpvrcap.sys=1
wfbbtvra.dll=1

[Leadtek]
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_6630107D
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_6638107D
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_663B107D
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_663C107D
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_6635107D
%WFPVRVIDEO.VideoPAL%=WFPVRVIDEO.PAL,PCI\VEN_14F1&DEV_8800&SUBSYS_6632107D

%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSC,PCI\VEN_14F1&DEV_8800&SUBSYS_6631107D
%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSC,PCI\VEN_14F1&DEV_8800&SUBSYS_6637107D
%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSC,PCI\VEN_14F1&DEV_8800&SUBSYS_663D107D
%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSC,PCI\VEN_14F1&DEV_8800&SUBSYS_6634107D
%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSC,PCI\VEN_14F1&DEV_8800&SUBSYS_6633107D
%WFPVRVIDEO.VideoNTSC%=WFPVRVIDEO.NTSCM5,PCI\VEN_14F1&DEV_8800&SUBSYS_6F1D107D

%WFPVRVIDEO.VideoNTSCJ%=WFPVRVIDEO.NTSCJ,PCI\VEN_14F1&DEV_8800&SUBSYS_6639107D
%WFPVRVIDEO.VideoNTSCJ%=WFPVRVIDEO.NTSCJ,PCI\VEN_14F1&DEV_8800&SUBSYS_663A107D
%WFPVRVIDEO.VideoNTSCJ%=WFPVRVIDEO.NTSCJ,PCI\VEN_14F1&DEV_8800&SUBSYS_663E107D
%WFPVRVIDEO.VideoNTSCJ%=WFPVRVIDEO.NTSCJ,PCI\VEN_14F1&DEV_8800&SUBSYS_6636107D
%WFPVRVIDEO.VideoNTSCJ%=WFPVRVIDEO.NTSCJ,PCI\VEN_14F1&DEV_8800&SUBSYS_663F107D


[DestinationDirs]
WFPVRVIDEO.CopyDrivers=10,system32\drivers
WFPVRVIDEO.CopyFilters=11

[WFPVRVIDEO.CopyDrivers]
wfpvrcap.sys

[WFPVRVIDEO.CopyFilters]
wfbbtvra.dll

[WFPVRVIDEO.PAL]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     WFPVRVIDEO.AddReg,PVR_COMMON.AddReg,PVR2000_PAL.AddReg
CopyFiles=  WFPVRVIDEO.CopyDrivers,WFPVRVIDEO.CopyFilters

[WFPVRVIDEO.NTSC]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     WFPVRVIDEO.AddReg,PVR_COMMON.AddReg,PVR2000_NTSC.AddReg
CopyFiles=  WFPVRVIDEO.CopyDrivers,WFPVRVIDEO.CopyFilters
RegisterDlls=TvRating.RegDLL ; enable TvRating DLL for this device

[WFPVRVIDEO.NTSCM5]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     WFPVRVIDEO.AddReg,PVR_COMMON.AddReg,PVR2000_NTSCM5.AddReg
CopyFiles=  WFPVRVIDEO.CopyDrivers,WFPVRVIDEO.CopyFilters
RegisterDlls=TvRating.RegDLL ; enable TvRating DLL for this device

[WFPVRVIDEO.NTSCJ]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     WFPVRVIDEO.AddReg,PVR_COMMON.AddReg,PVR2000_NTSCJ.AddReg
CopyFiles=  WFPVRVIDEO.CopyDrivers,WFPVRVIDEO.CopyFilters
RegisterDlls=TvRating.RegDLL ; enable TvRating DLL for this device

[TvRating.RegDLL]
11,,wfbbtvra.dll,1

[WFPVRVIDEO.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,wfpvrcap.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XBarInPin0",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData","XBarInPin1",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","XBarInPin2",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData","XBarInPin3",0x00010001, 0x00,0x10,0x00,0x00
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","BobMode",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VolumeLevelNegdB",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","UseExternalVPRES",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","UseI2SAsClock",0x00010001, 0x00, 0x00, 0x00, 0x00
HKLM,%MediaCategories%\%GUID.PINNAME_656_OUT%,Name,,%PinName.656_OUT%
HKLM,%MediaCategories%\%GUID.PINNAME_I2S_OUT%,Name,,%PinName.I2S_OUT%
HKLM,%MediaCategories%\%GUID.PINNAME_ANALOG_AUDIO_IN%,Name,,%Pin.p2AnalogAudioIn%
HKLM,%MediaInterfaces%\{0A7AF963-6805-4f99-B284-29B680975542},,,"Copy Protect Notification Filter"
HKLM,%MediaInterfaces%\{0A7AF963-6805-4f99-B284-29B680975542},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[PVR_COMMON.AddReg]
HKR,"DriverData","VDelayOdd525",  0x00010001, 0x1C, 0x00, 0x00, 0x00
HKR,"DriverData","VDelayEven525", 0x00010001, 0x1C, 0x00, 0x00, 0x00
HKR,"DriverData","VActiveOdd525",  0x00010001, 0xe7, 0x01, 0x00, 0x00
HKR,"DriverData","VActiveEven525", 0x00010001, 0xe7, 0x01, 0x00, 0x00
HKR,"DriverData","Out656VDelayOdd525",  0x00010001, 0x26, 0x00, 0x00, 0x00
HKR,"DriverData","Out656VDelayEven525", 0x00010001, 0x26, 0x00, 0x00, 0x00

HKR,"DriverData","VDelayOdd625",  0x00010001, 0x26, 0x00, 0x00, 0x00
HKR,"DriverData","VDelayEven625", 0x00010001, 0x26, 0x00, 0x00, 0x00
HKR,"DriverData","VActiveOdd625",  0x00010001, 0x40, 0x02, 0x00, 0x00
HKR,"DriverData","VActiveEven625", 0x00010001, 0x40, 0x02, 0x00, 0x00
HKR,"DriverData","Out656VDelayOdd625",  0x00010001, 0x26, 0x00, 0x00, 0x00
HKR,"DriverData","Out656VDelayEven625", 0x00010001, 0x26, 0x00, 0x00, 0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","BlackbirdType",0x00010001, 0x01,0x00,0x00,0x00
;Enable I2S out to encoder
HKR,"DriverData","WWAudioEnableI2SOut",0x00010001, 0x01,0x00,0x00,0x00

;I2S output format is Sony (1) 
HKR,"DriverData","WWAudioI2SOutFormat",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","WWAudioI2SFrequency",0x00010001, 0x80,0xBB,0x00,0x00
HKR,"DriverData","WWAudioMuteDACs"    ,0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","Pll27",0x00010001   , 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","DisableAutoBlueScreen",0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","WCENEnable",0x00010001, 0x01,0x00,0x00,0x00

[PVR2000_PAL.AddReg]
HKR,"DriverData","4in1Tuner",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x10,0x00,0x00,0x00
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x31,0x00,0x00,0x00
HKR,"DriverData","UseCompositeOnSVideo",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","EncoderMVDRM",0x00010001, 0x01,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"wfxbar.xbar"
HKR,"ENUM\Device2",pnpid,,"wftuner.pal"

[PVR2000_NTSC.AddReg]
HKR,"DriverData","4in1Tuner",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","UseCompositeOnSVideo",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","EncoderMVDRM",0x00010001, 0x01,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"wfxbar.xbar"
HKR,"ENUM\Device2",pnpid,,"wftuner.ntsc"

[PVR2000_NTSCM5.AddReg]
HKR,"DriverData","4in1Tuner",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","UseCompositeOnSVideo",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","EncoderMVDRM",0x00010001, 0x01,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"wfxbar.xbar"
HKR,"ENUM\Device2",pnpid,,"wftuner.ntscm5"

[PVR2000_NTSCJ.AddReg]
HKR,"DriverData","4in1Tuner",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","VideoStandard",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x51,0x00,0x00,0x00
HKR,"DriverData","UseCompositeOnSVideo",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","EncoderMVDRM",0x00010001, 0x01,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"wfxbar.xbar"
HKR,"ENUM\Device2",pnpid,,"wftuner.ntscj"

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoTvAudio]
AddReg=VideoTvAudio.AddReg

[VideoCapture.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%WFPVRNAME.friendly%

[VideoTvAudio.AddReg]
HKR,,CLSID,,{71F96462-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%WFPVRNAME.friendly2%

[WFPVRVIDEO.PAL.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[WFPVRVIDEO.NTSC.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[WFPVRVIDEO.NTSCM5.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[WFPVRVIDEO.NTSCJ.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[WFPVRVIDEO.PAL.Services]
AddService = WFPVRVIDEO,0x00000002,WFPVRVIDEO.ServiceInstall

[WFPVRVIDEO.NTSC.Services]
AddService = WFPVRVIDEO,0x00000002,WFPVRVIDEO.ServiceInstall

[WFPVRVIDEO.NTSCM5.Services]
AddService = WFPVRVIDEO,0x00000002,WFPVRVIDEO.ServiceInstall

[WFPVRVIDEO.NTSCJ.Services]
AddService = WFPVRVIDEO,0x00000002,WFPVRVIDEO.ServiceInstall

[WFPVRVIDEO.ServiceInstall]
DisplayName   = %WFPVRVIDEO.Video%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\wfpvrcap.sys

[Strings]
Ldtk                            = "Leadtek Research Inc."
DiskId                          = "WinFast PVR2000 WDM Video Capture"
WFPVRVIDEO.Video                = "WinFast PVR2000 WDM Video Capture"
WFPVRVIDEO.VideoPAL             = "WinFast PVR2000 WDM Video Capture"
WFPVRVIDEO.VideoNTSC            = "WinFast PVR2000 WDM Video Capture"
WFPVRVIDEO.VideoNTSCJ           = "WinFast PVR2000 WDM Video Capture"

WFPVRNAME.friendly              = "WinFast PVR2000 WDM Video Capture"
WFPVRNAME.friendly2             = "WinFast PVR2000 WDM TvAudio"

;RunOnce                        = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SERVICE_KERNEL_DRIVER           = 1
SERVICE_AUTO_START              = 2
SERVICE_ERROR_NORMAL            = 1

MediaCategories                 = "SYSTEM\CurrentControlSet\Control\MediaCategories"
MediaInterfaces                 = "System\CurrentControlSet\Control\MediaInterfaces"

GUID.PINNAME_656_OUT            = "{E2EEB283-EB84-4910-BABE-037FFBB03249}"
GUID.PINNAME_I2S_OUT            = "{71A59578-46D2-4368-BEAF-062B0447565D}"
GUID.PINNAME_ANALOG_AUDIO_IN    = "{04394D28-52A7-4c46-AED0-65D62CC64DA6}"
PinName.656_OUT                 = "656"
PinName.I2S_OUT                 = "I2S"
Pin.p2AnalogAudioIn             = "Analog Audio In"
