;------------------------------------------------------------------------------
;
; Ngene WDM / BDA Driver Installation Script
; Copyright (c) 2006, Compro Technology, Inc.
;
;------------------------------------------------------------------------------
[Version]
signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4D36E96C-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
DriverVer=09/15/2007,1.0.4.2
CatalogFile=VME700.cat

[Manufacturer]
%MFGNAME%=Models,NTx86.5.1,NTamd64

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DriverCopyFiles.NTx86.5.1=10,System32\Drivers
DriverCopyFiles.NTamd64=10,System32\Drivers

[SourceDisksNames]
1=%INSTDISK%,,,

[SourceDisksFiles]
VMENgBas.sys=1
VMENgCap.sys=1
VMENgTun.sys=1
VMENgBas64.sys=1
VMENgCap64.sys=1
VMENgTun64.sys=1

; No support for Windows 9x/NT4/2000
[Models.NTx86.5.1]
%BASE_F000%=VMENgBasF000.NTx86.5.1,PCI\VEN_18C3&DEV_0720&SUBSYS_F000185B
%CAPTURE_F000%=VMENgCapF000.NTx86.5.1,Ngene\VEN_18C3&DEV_0720&SUBSYS_F000185B&Capture
%TUNER_F000%=VMENgTunF000.NTx86.5.1,Ngene\VEN_18C3&DEV_0720&SUBSYS_F000185B&Tuner

[Models.NTamd64]
%BASE_F000%=VMENgBasF000.NTamd64,PCI\VEN_18C3&DEV_0720&SUBSYS_F000185B
%CAPTURE_F000%=VMENgCapF000.NTamd64,Ngene\VEN_18C3&DEV_0720&SUBSYS_F000185B&Capture
%TUNER_F000%=VMENgTunF000.NTamd64,Ngene\VEN_18C3&DEV_0720&SUBSYS_F000185B&Tuner

;------------------------------------------------------------------------------
;  Base driver install sections
;------------------------------------------------------------------------------
[VMENgBasF000.NTx86.5.1]
Include=ks.inf,kscaptur.inf,bda.inf
Needs=KS.Registration.NT,KSCAPTUR.Registration.NT,BDA.Registration.NT,bda.Installation.NT,bdacap.Installation.NT
AddReg=VMENgBasF000.NTx86.5.1.AddReg
CopyFiles=DriverCopyFiles.NTx86.5.1

[VMENgBasF000.NTx86.5.1.HW]
AddReg=VMENgBasF000.NTx86.5.1.AddReg

[VMENgBasF000.NTamd64]
Include=ks.inf,kscaptur.inf,bda.inf
Needs=KS.Registration,KSCAPTUR.Registration.NT,BDA.Registration.NT,bda.Installation.NT,bdacap.Installation.NT
AddReg=VMENgBasF000.NTamd64.AddReg
CopyFiles=DriverCopyFiles.NTamd64

[VMENgBasF000.NTamd64.HW]
AddReg=VMENgBasF000.NTamd64.AddReg

[DriverCopyFiles.NTx86.5.1]
VMENgBas.sys
VMENgCap.sys
VMENgTun.sys

[DriverCopyFiles.NTamd64]
VMENgBas64.sys
VMENgCap64.sys
VMENgTun64.sys

[VMENgBasF000.NTx86.5.1.Services]
AddService=%VMENgBasSver32%,0x00000002,VMENgBas32.Service.NTx86.5.1

[VMENgBasF000.NTamd64.Services]
AddService=%VMENgBasSver64%,0x00000002,VMENgBas64.Service.NTamd64

[VMENgBas32.Service.NTx86.5.1]
DisplayName=%VMENgBas.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgBas.sys

[VMENgBas64.Service.NTamd64]
DisplayName=%VMENgBas.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgBas64.sys

[VMENgBasF000.NTx86.5.1.AddReg]
HKR,,"TSFeatureDecoder",0x00000001,42,00,00,02,02,BC,00,00

[VMENgBasF000.NTamd64.AddReg]
HKR,,"TSFeatureDecoder",0x00000001,42,00,00,02,02,BC,00,00

;------------------------------------------------------------------------------
; Capture driver install sections
;------------------------------------------------------------------------------
[VMENgCapF000.NTx86.5.1]
AddReg=VMENgCap.AddReg,VMENgCapF000.AddReg

[VMENgCapF000.NTamd64]
AddReg=VMENgCap.AddReg,VMENgCapF000.AddReg

[VMENgCapF000.NTx86.5.1.Services]
AddService=%VMENgCapSver32%,0x00000002,VMENgCap32.Service.NTx86.5.1

[VMENgCapF000.NTamd64.Services]
AddService=%VMENgCapSver64%,0x00000002,VMENgCap64.Service.NTamd64

[VMENgCap32.Service.NTx86.5.1]
DisplayName=%VMENgCap.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgCap.sys

[VMENgCap64.Service.NTamd64]
DisplayName=%VMENgCap.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgCap64.sys

[VMENgCapF000.AddReg]
HKR,"Config","Filter",0x00010001,0x0C

[VMENgCap.AddReg]
; Pin names
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{2745a791-e8ca-11d8-a988-004030005452},"Name",,%AnalogAudioInputPinName%
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{2745a792-e8ca-11d8-a988-004030005452},"Name",,%AudioCapturePinName%

[VMENgCapF000.NTx86.5.1.Interfaces]
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},{2745a796-e8ca-11d8-a988-004030005452},VMENgCapF000DigitalCapture.Filter1
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},{2745a797-e8ca-11d8-a988-004030005452},VMENgCapF000DigitalCapture.Filter2

[VMENgCapF000.NTamd64.Interfaces]
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},{2745a796-e8ca-11d8-a988-004030005452},VMENgCapF000DigitalCapture.Filter1
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},{2745a797-e8ca-11d8-a988-004030005452},VMENgCapF000DigitalCapture.Filter2

[VMENgCapF000DigitalCapture.Filter1]
AddReg=VMENgCapF000DigitalCapture.Filter1.AddReg

[VMENgCapF000DigitalCapture.Filter1.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%VMENgCapF000DigitalCapture.Filter1Desc%

[VMENgCapF000DigitalCapture.Filter2]
AddReg=VMENgCapF000DigitalCapture.Filter2.AddReg

[VMENgCapF000DigitalCapture.Filter2.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%VMENgCapF000DigitalCapture.Filter2Desc%

;------------------------------------------------------------------------------
; Tuner driver install sections
;------------------------------------------------------------------------------
[VMENgTunF000.NTx86.5.1]
AddReg=VMENgTunF000.AddReg

[VMENgTunF000.NTamd64]
AddReg=VMENgTunF000.AddReg

[VMENgTunF000.NTx86.5.1.Services]
AddService=%VMENgTunSver32%,0x00000002,VMENgTun32.Service.NTx86.5.1

[VMENgTunF000.NTamd64.Services]
AddService=%VMENgTunSver64%,0x00000002,VMENgTun64.Service.NTamd64

[VMENgTun32.Service.NTx86.5.1]
DisplayName=%VMENgTun.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgTun.sys

[VMENgTun64.Service.NTamd64]
DisplayName=%VMENgTun.ServiceDesc%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\VMENgTun64.sys

[VMENgTunF000.AddReg]
HKR,"Config1","Filter",0x00010001,0x02
HKR,"Config1","Tuner",0x00000001,E0,C0,82,02,03
HKR,"Config2","Filter",0x00010001,0x02
HKR,"Config2","Tuner",0x00000001,E0,C2,8A,02,04
HKR,"Digital","BandwidthSelect",0x00010001,299000000
HKR,"Config1","DigitalInput",0x00010001,1
HKR,"Config2","DigitalInput",0x00010001,1

HKR,"DRXD","Clock",0x00010001,16000
HKR,"DRXD","RFAgcMode",0x00010001,0
HKR,"DRXD","RFAgcR1",0x00010001,820
HKR,"DRXD","RFAgcR2",0x00010001,2200
HKR,"DRXD","RFAgcR3",0x00010001,150
HKR,"DRXD","IFAgcR1",0x00010001,820
HKR,"DRXD","IFAgcR2",0x00010001,2200
HKR,"DRXD","IFAgcR3",0x00010001,150


HKR,"MT2060_1","XDIVE",0x00010001,3
HKR,"MT2060_1","RFAgcSwitch",0x00010001,2
HKR,"MT2060_1","InputSwitch",0x00010001,0x101
HKR,"MT2060_1","GPO",0x00010001,3

HKR,"MT2060_2","XDIVE",0x00010001,3
HKR,"MT2060_2","RFAgcSwitch",0x00010001,2
HKR,"MT2060_2","InputSwitch",0x00010001,0x101
HKR,"MT2060_2","GPO",0x00010001,3

[VMENgTunF000.NTx86.5.1.Interfaces]
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},{2745a7ad-e8ca-11d8-a988-004030004d56},VMENgTunF000DVBTTuner.Filter1
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},{2745a7ae-e8ca-11d8-a988-004030004d56},VMENgTunF000DVBTTuner.Filter2

[VMENgTunF000.NTamd64.Interfaces]
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},{2745a7ad-e8ca-11d8-a988-004030004d56},VMENgTunF000DVBTTuner.Filter1
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},{2745a7ae-e8ca-11d8-a988-004030004d56},VMENgTunF000DVBTTuner.Filter2

[VMENgTunF000DVBTTuner.Filter1]
AddReg=VMENgTunF000DVBTTuner.Filter1.AddReg

[VMENgTunF000DVBTTuner.Filter1.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%VMENgTunF000DVBTTuner.Filter1Desc%

[VMENgTunF000DVBTTuner.Filter2]
AddReg=VMENgTunF000DVBTTuner.Filter2.AddReg

[VMENgTunF000DVBTTuner.Filter2.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%VMENgTunF000DVBTTuner.Filter2Desc%

;------------------------------------------------------------------------------
; Strings section (localizable strings)
;------------------------------------------------------------------------------
[Strings]
INSTDISK="Compro VideoMate Installation Disc"
MFGNAME="Compro Technology, Inc."

; Device descriptions (Device Manager)
BASE_F000="Compro VideoMate E700 DVB-T Audio/Video Bridge"
CAPTURE_F000="Compro VideoMate E700 DVB-T Video Capture"
TUNER_F000="Compro VideoMate E700 DVB-T Tuner"

VMENgBasSver32="VMENgBas32"
VMENgBasSver64="VMENgBas64"
VMENgCapSver32="VMENgCap32"
VMENgCapSver64="VMENgCap64"
VMENgTunSver32="VMENgTun32"
VMENgTunSver64="VMENgTun64"

; Service display names
VMENgBas.ServiceDesc="Compro VideoMate E700 Base Driver"
VMENgCap.ServiceDesc="Compro VideoMate E700 Audio/Video Capture Driver"
VMENgTun.ServiceDesc="Compro VideoMate E700 Tuner Driver"

; Pin names
; AnalogAudioInputPinName="Analog Audio Input"
; AudioCapturePinName="Audio Capture"

; FriendlyNames (DirectShow filter names)
VMENgCapF000DigitalCapture.Filter1Desc="Compro VideoMate E700 DVB-T Video Capture 1"
VMENgCapF000DigitalCapture.Filter2Desc="Compro VideoMate E700 DVB-T Video Capture 2"
VMENgTunF000DVBTTuner.Filter1Desc="Compro VideoMate E700 DVB-T Tuner 1"
VMENgTunF000DVBTTuner.Filter2Desc="Compro VideoMate E700 DVB-T Tuner 2"
