;-----------------------------------------------------
; Installation file (.inf)
;
; Copyright (c) AVerMedia TECHNOLOGIES, Inc.
;-----------------------------------------------------

[Version]
signature="$CHICAGO$" ;all windows os
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%ProviderName%
CatalogFile=AVerTM62_x64.cat
DriverVer=02/18/2013,1.52.64.60

[Manufacturer]
%AVerMedia%=Trident,NTAMD64,NTamd64.6 

[Trident.NTAMD64]
%TRIDCap.DeviceDesc%=TRIDCap,PCI\VEN_1A0A&DEV_6200&SUBSYS_62051461
%TRIDCap.DeviceDesc%=TRIDCap,PCI\VEN_1A0A&DEV_6202&SUBSYS_62051461

[Trident.NTAMD64.6]
%TRIDCap.DeviceDesc%=TRIDCap_Vista,PCI\VEN_1A0A&DEV_6200&SUBSYS_62051461
%TRIDCap.DeviceDesc%=TRIDCap_Vista,PCI\VEN_1A0A&DEV_6202&SUBSYS_62051461

[DestinationDirs]
TRIDCap.CopyCoInst=11
System32.CopyDlls=11
TRIDCap.CopyFiles=10,system32\drivers ; be aware not to use 12 as the drivers directory, 
                                         ; as driver will not work anymore in W98

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
CoInstaller6200.dll=1
VendorCmd6200.dll=1
acpinfo.ax=1
AVerTM62_x64.sys=1
cpnotify_64.ax=1
aver_custom_hdcp_protection.bmp=1
aver_custom_no_signal.bmp=1
aver_custom_out_of_range.bmp=1

[TRIDCap.CopyCoInst]
CoInstaller6200.dll

[System32.CopyDlls]
VendorCmd6200.dll
acpinfo.ax
cpnotify_64.ax

[TRIDCap.CopyFiles]
AVerTM62_x64.sys
aver_custom_hdcp_protection.bmp
aver_custom_no_signal.bmp
aver_custom_out_of_range.bmp

;
;*** initialisation and registry entries
;

[TRIDCap.CoInstallers]
CopyFiles = TRIDCap.CopyCoInst
AddReg = TRIDCap.CoInstaller_AddReg

[TRIDCap.nt.CoInstallers]
CopyFiles = TRIDCap.CopyCoInst
AddReg = TRIDCap.CoInstaller_AddReg

[TRIDCap.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"CoInstaller6200.dll, CoInstallerEntry"


[TRIDCap.nt]
Include=ks.inf, kscaptur.inf, bda.inf, wdmaudio.inf
Needs=KS.Registration,KSCAPTUR.Registration.NT,BDA.Registration.NT,bda.Installation.NT,bdacap.Installation.NT,wdmaudio.Registration.NT
CopyFiles=TRIDCap.CopyFiles,System32.CopyDlls
AddReg=TRIDCap.AddReg
RegisterDlls=TRIDCap.RegFilter    

[TRIDCap_Vista.nt]
Include=ks.inf, kscaptur.inf, bda.inf, wdmaudio.inf
Needs=KS.Registration.NT,KSCAPTUR.Registration.NT,BDA.Registration.NT,bda.Installation.NT,bdacap.Installation.NT,wdmaudio.Registration.NT
CopyFiles=TRIDCap.CopyFiles,System32.CopyDlls
AddReg=TRIDCap.AddReg, AVerIR.AddReg
RegisterDlls=TRIDCap.RegFilter

[TRIDCap.nt.Services]
AddService=TRIDCap, 0x00000002, TRIDCap.ServiceInstall

[TRIDCap_Vista.nt.Services]
AddService=TRIDCap, 0x00000002, TRIDCap.ServiceInstall

[TRIDCap.ServiceInstall]
DisplayName=%DISPLAY_NAME%
Description=%SERVICE_DESCRIPTION%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\AVerTM62_x64.sys
; [StartName=driver-object-name]
; [AddReg=add-registry-section[, add-registry-section] ...]
; [DelReg=del-registry-section[, del-registry-section] ...]
; [BitReg=bit-registry-section[,bit-registry-section] ...]
; [LoadOrderGroup=load-order-group-name]
; [Dependencies=depend-on-item-name[,depend-on-item-name]...]

[AVerIR.AddReg]
HKR, "ENUM\CIR",pnpid,,"AVerIR"

[TRIDCap.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AVerTM62_x64.sys

HKLM,System\CurrentControlSet\Control\MediaInterfaces\%VAMP_ANLG_ACPNOTIFY%,,,"Analog Copy Protection Notifier"
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%VAMP_ANLG_ACPNOTIFY%,IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{0A7AF963-6805-4f99-B284-29B680975542},,,"AVerMedia Macrovision Detection Property"
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{0A7AF963-6805-4f99-B284-29B680975542},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

; audio capture registry entries

HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AVerTM62_x64.sys
HKR,Drivers,SubClasses,,"wave,mixer"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,"AVerMedia audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"AVerMedia audio capture device"

; add audio input and output pinnames

HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_IN_PIN%,"Name",,"Analog Audioinput"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_CAP_IN_PIN%,"Name",,"AVerMedia Audio Capture 1st"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_CAP_IN_PIN2%,"Name",,"AVerMedia Audio Capture 2nd"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_CAP_OUT_PIN%,"Name",,"AVerAudio Capture"

; Driver behaveior
HKR, "Software\Default", "Digital Stream Support",             0x00010001, 1
HKR, "BoardSetting\AnalogSrc2", "XBar Tuner Exist",            0x00010001, 0

; VIDEO Decoder setting (two channel)
HKR, "Decoder\VideoDecoder1", "Preferred Video Standard",      0x00010001, 1
                                                               
HKR, "Decoder\VideoDecoder2", "Preferred Video Standard",      0x00010001, 1
;HKR, "Decoder\VideoDecoder2", "Video Tuner Decoder",           0x00000000, "TI TVP5146"
HKR, "Decoder\VideoDecoder2", "Video Composite Decoder",       0x00000000, "ADI AD9985A"
HKR, "Decoder\VideoDecoder2", "Video S-Video Decoder",         0x00000000, "Silicon Image 9011"
                                                               
;HKR, "Decoder\VideoDecoder2", "TVP5146 I2C Address",           0x00010001, 0xB8
;HKR, "Decoder\VideoDecoder2", "TVP5146 Power Control Type",    0x00010001, 0

HKR, "Decoder\VideoDecoder2", "AD9985A I2C Address",           0x00010001, 0x98
HKR, "Decoder\VideoDecoder2", "AD9985A Default Brightness",    0x00010001, 123
HKR, "Decoder\VideoDecoder2", "AD9985A Default Contrast",      0x00010001, 128

HKR, "Decoder\VideoDecoder2", "SiI9011 I2C Address 1",         0x00010001, 0x60
HKR, "Decoder\VideoDecoder2", "SiI9011 I2C Address 2",         0x00010001, 0x68
HKR, "Decoder\VideoDecoder2", "GPIO SiI9011 Reset",            0x00010001, 7
HKR, "Decoder\VideoDecoder2", "GPIO SiI9011 HotPlug",          0x00010001, 3
HKR, "Decoder\VideoDecoder2", "GPIO SiI9011 Int",              0x00010001, 0

; AUDIO Decoder setting (two channel)
HKR, "Decoder\AudioDecoder1", "Audio Decoder",                 0x00000000, "TAD"
                                                               
HKR, "Decoder\AudioDecoder2", "Audio Decoder Needed",          0x00010001, 1                                                               
HKR, "Decoder\AudioDecoder2", "Audio Decoder",                 0x00000000, "WM8739"
HKR, "Decoder\AudioDecoder2", "Audio Decoder I2C Address",     0x00010001, 0x34

; VIDEO board defaults (two channel)
HKR, "BoardSetting\AnalogSrc1", "Video Tuner",                 0x00010001, 0
HKR, "BoardSetting\AnalogSrc1", "Video Composite",             0x00010001, 1
HKR, "BoardSetting\AnalogSrc1", "Video S-Video",               0x00010001, 2
HKR, "BoardSetting\AnalogSrc2", "Video Tuner",                 0x00010001, 3
HKR, "BoardSetting\AnalogSrc2", "Video Composite",             0x00010001, 4
HKR, "BoardSetting\AnalogSrc2", "Video S-Video",               0x00010001, 5
                                                               
;AUDIO board defaults (two channel)                            
HKR, "BoardSetting\AnalogSrc1", "Audio Tuner",                 0x00010001, 2
HKR, "BoardSetting\AnalogSrc1", "Audio Composite",             0x00010001, 0
HKR, "BoardSetting\AnalogSrc1", "Audio S-Video",               0x00010001, 0
HKR, "BoardSetting\AnalogSrc2", "Audio Tuner",                 0x00010001, 2
HKR, "BoardSetting\AnalogSrc2", "Audio Composite",             0x00010001, 2
HKR, "BoardSetting\AnalogSrc2", "Audio S-Video",               0x00010001, 2

;AUDIO I2S MUX defaults (channel 2)                            
HKR, "BoardSetting\AnalogSrc2", "Audio I2S MUX Type",          0x00000000, "ADI AD1871_A"
HKR, "BoardSetting\AnalogSrc2", "GPIO I2S Switch",             0x00010001, 6
HKR, "BoardSetting\AnalogSrc2", "GPIO Audio Tuner",            0x00010001, 2
HKR, "BoardSetting\AnalogSrc2", "GPIO Audio Composite",        0x00010001, 1
HKR, "BoardSetting\AnalogSrc2", "GPIO Audio S-VIDEO",          0x00010001, 1

;Tuner board defaults
HKR, "BoardSetting\AnalogSrc1",  "Tuner Type",                 0x00000000, "TDA18271"
HKR, "BoardSetting\AnalogSrc1",  "Tuner I2C Address",          0x00010001, 0xc0
HKR, "BoardSetting\AnalogSrc1",  "IF I2C Address",             0x00010001, 0x52
                                                               
HKR, "BoardSetting\AnalogSrc2",  "Tuner Type",                 0x00000000, "NO TUNER"
                                                               
HKR, "BoardSetting\DigitalSrc1",  "Tuner Type",                0x00000000, "TDA18271"
HKR, "BoardSetting\DigitalSrc1",  "Demodulator Type",          0x00000000, "Micronas DRXK"
HKR, "BoardSetting\DigitalSrc1",  "Tuner I2C Address",         0x00010001, 0xc0
HKR, "BoardSetting\DigitalSrc1",  "IF I2C Address",            0x00010001, 0x52
HKR, "BoardSetting\DigitalSrc1",  "Demodulator Reset Type",    0x00010001, 1
HKR, "BoardSetting\DigitalSrc1",  "GPIO Reset Demodulator",    0x00010001, 5
HKR, "BoardSetting\DigitalSrc1",  "DTV Source Type",           0x00010001, 1
;HKR, "BoardSetting\DigitalSrc1",  "DTV Bandwidth",             0x00010001, 8
;HKR, "BoardSetting\DigitalSrc1",  "GPIO Reset Digital Tuner",  0x00010001, 1
;HKR, "BoardSetting\DigitalSrc1",  "GPIO Select AD output",     0x00010001, 4

HKR, "BoardSetting\DigitalSrc2",  "Tuner Type",                0x00000000, "NO TUNER"

;GPIO pin configuration for software I2C Bus
;HKR, "BoardSetting\Default",      "GPIO I2C 0 SCL",            0x00010001, 6
;HKR, "BoardSetting\Default",      "GPIO I2C 0 SDA",            0x00010001, 1
;HKR, "BoardSetting\Default",      "GPIO I2C 1 SCL",            0x00010001, 3
;HKR, "BoardSetting\Default",      "GPIO I2C 1 SDA",            0x00010001, 4

;IR TYPE 
HKR, "BoardSetting\Default",      "IR TYPE",                   0x00010001, 0

[TRIDCap.RegFilter]
11,,acpinfo.ax,1
11,,cpnotify_64.ax,1

[TRIDCap.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER_SND%,TRIDCap.AnlgXBarSnd,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER%,TRIDCap.AnlgTVAudio,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER_SND%,TRIDCap.AnlgTVAudioSnd,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER%,TRIDCap.AnlgTuner,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER_SND%,TRIDCap.AnlgTunerSnd,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER_SND%,TRIDCap.DgtlCapSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER%,TRIDCap.DgtlTuner,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_SND%,TRIDCap.DgtlTunerSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC%,TRIDCap.DgtlTunerATSC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC_SND%,TRIDCap.DgtlTunerATSCSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS%,TRIDCap.DgtlTunerDVBS,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS_SND%,TRIDCap.DgtlTunerDVBSSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC%,TRIDCap.DgtlTunerDVBC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC_SND%,TRIDCap.DgtlTunerDVBCSnd,0

[TRIDCap_Vista.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER_SND%,TRIDCap.AnlgXBarSnd,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER%,TRIDCap.AnlgTVAudio,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER_SND%,TRIDCap.AnlgTVAudioSnd,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER%,TRIDCap.AnlgTuner,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER_SND%,TRIDCap.AnlgTunerSnd,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER_SND%,TRIDCap.DgtlCapSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER%,TRIDCap.DgtlTuner,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_SND%,TRIDCap.DgtlTunerSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC%,TRIDCap.DgtlTunerATSC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC_SND%,TRIDCap.DgtlTunerATSCSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS%,TRIDCap.DgtlTunerDVBS,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS_SND%,TRIDCap.DgtlTunerDVBSSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC%,TRIDCap.DgtlTunerDVBC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC_SND%,TRIDCap.DgtlTunerDVBCSnd,0

[TRIDCap.nt.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER_SND%,TRIDCap.AnlgXBarSnd,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER%,TRIDCap.AnlgTVAudio,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER_SND%,TRIDCap.AnlgTVAudioSnd,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER%,TRIDCap.AnlgTuner,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER_SND%,TRIDCap.AnlgTunerSnd,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER_SND%,TRIDCap.DgtlCapSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER%,TRIDCap.DgtlTuner,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_SND%,TRIDCap.DgtlTunerSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC%,TRIDCap.DgtlTunerATSC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC_SND%,TRIDCap.DgtlTunerATSCSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS%,TRIDCap.DgtlTunerDVBS,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS_SND%,TRIDCap.DgtlTunerDVBSSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC%,TRIDCap.DgtlTunerDVBC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC_SND%,TRIDCap.DgtlTunerDVBCSnd,0

[TRIDCap_Vista.nt.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER%,TRIDCap.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER_SND%,TRIDCap.AnlgCapSnd,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER_SND%,TRIDCap.AnlgXBarSnd,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER%,TRIDCap.AnlgTVAudio,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER_SND%,TRIDCap.AnlgTVAudioSnd,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER%,TRIDCap.AnlgTuner,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER_SND%,TRIDCap.AnlgTunerSnd,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER_SND%,TRIDCap.DgtlCapSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER%,TRIDCap.DgtlTuner,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_SND%,TRIDCap.DgtlTunerSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC%,TRIDCap.DgtlTunerATSC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_ATSC_SND%,TRIDCap.DgtlTunerATSCSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS%,TRIDCap.DgtlTunerDVBS,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBS_SND%,TRIDCap.DgtlTunerDVBSSnd,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC%,TRIDCap.DgtlTunerDVBC,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER_DVBC_SND%,TRIDCap.DgtlTunerDVBCSnd,0

[TRIDCap.AnlgCapture]
AddReg=TRIDCap.AnlgCapture.AddReg

[TRIDCap.AnlgCapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgCaptureName%

;Name AnalogAudioCapture is too long for 98 SE.
[TRIDCap.AnlgACapture]
AddReg=TRIDCap.AnlgACapture.AddReg

[TRIDCap.AnlgACapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgAudioCaptureName%
HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%VAMP_ANLG_AUDIO_CAP_IN_PIN%
HKR,"EP\\0",%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,0x00000305
HKR,"EP\\0",%PKEY_AudioEngine_OEMFormat%,0x00000001, 41,00,00,00,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,EE,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71
HKR,"EP\\0",%PKEY_AudioEndpoint_ControlPanelProvider%,,%AUDIOENDPOINT_EXT_UI_CLSID%

[TRIDCap.AnlgCapSnd]
AddReg=TRIDCap.AnlgCapSnd.AddReg

[TRIDCap.AnlgCapSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgCaptureNameSnd%

[TRIDCap.AnlgACapSnd]
AddReg=TRIDCap.AnlgACapSnd.AddReg

[TRIDCap.AnlgACapSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgAudioCapNameSnd%
HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%VAMP_ANLG_AUDIO_CAP_IN_PIN2%
HKR,"EP\\0",%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,0x00000305
HKR,"EP\\0",%PKEY_AudioEngine_OEMFormat%,0x00000001, 41,00,00,00,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,EE,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71
HKR,"EP\\0",%PKEY_AudioEndpoint_ControlPanelProvider%,,%AUDIOENDPOINT_EXT_UI_CLSID%

[TRIDCap.AnlgXBar]
AddReg=TRIDCap.AnlgXBar.AddReg

[TRIDCap.AnlgXBar.AddReg]
HKR,,CLSID,,%KSXBar.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgXBarName%

[TRIDCap.AnlgXBarSnd]
AddReg=TRIDCap.AnlgXBarSnd.AddReg

[TRIDCap.AnlgXBarSnd.AddReg]
HKR,,CLSID,,%KSXBar.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgXBarNameSnd%

[TRIDCap.AnlgTVAudio]
AddReg=TRIDCap.AnlgTVAudio.AddReg

[TRIDCap.AnlgTVAudio.AddReg]
HKR,,CLSID,,%KSTVAudio.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgTVAudioName%

[TRIDCap.AnlgTVAudioSnd]
AddReg=TRIDCap.AnlgTVAudioSnd.AddReg

[TRIDCap.AnlgTVAudioSnd.AddReg]
HKR,,CLSID,,%KSTVAudio.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgTVAudioNameSnd%

[TRIDCap.AnlgTuner]
AddReg=TRIDCap.AnlgTuner.AddReg

[TRIDCap.AnlgTuner.AddReg]
HKR,,CLSID,,%KSTvTune.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgTunerName%
HKR,,TunerInstanceID,0x00010001,10

[TRIDCap.AnlgTunerSnd]
AddReg=TRIDCap.AnlgTunerSnd.AddReg

[TRIDCap.AnlgTunerSnd.AddReg]
HKR,,CLSID,,%KSTvTune.CLSID%
HKR,,FriendlyName,,%TRIDCap.AnlgTunerNameSnd%
HKR,,TunerInstanceID,0x00010001,20

[TRIDCap.DgtlCapture]
AddReg=TRIDCap.DgtlCapture.AddReg

[TRIDCap.DgtlCapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlCaptureName%

[TRIDCap.DgtlCapSnd]
AddReg=TRIDCap.DgtlCapSnd.AddReg

[TRIDCap.DgtlCapSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlCaptureNameSnd%

[TRIDCap.DgtlTuner]
AddReg=TRIDCap.DgtlTuner.AddReg

[TRIDCap.DgtlTuner.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerName%
HKR,,TunerInstanceID,0x00010001,10

[TRIDCap.DgtlTunerSnd]
AddReg=TRIDCap.DgtlTunerSnd.AddReg

[TRIDCap.DgtlTunerSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameSnd%
HKR,,TunerInstanceID,0x00010001,20

[TRIDCap.DgtlTunerATSC]
AddReg=TRIDCap.DgtlTunerATSC.AddReg

[TRIDCap.DgtlTunerATSC.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameATSC%

[TRIDCap.DgtlTunerATSCSnd]
AddReg=TRIDCap.DgtlTunerATSCSnd.AddReg

[TRIDCap.DgtlTunerATSCSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameATSCSnd%

[TRIDCap.DgtlTunerDVBS]
AddReg=TRIDCap.DgtlTunerDVBS.AddReg

[TRIDCap.DgtlTunerDVBS.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameDVBS%

[TRIDCap.DgtlTunerDVBSSnd]
AddReg=TRIDCap.DgtlTunerDVBSSnd.AddReg

[TRIDCap.DgtlTunerDVBSSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameDVBSSnd%

[TRIDCap.DgtlTunerDVBC]
AddReg=TRIDCap.DgtlTunerDVBC.AddReg

[TRIDCap.DgtlTunerDVBC.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameDVBC%

[TRIDCap.DgtlTunerDVBCSnd]
AddReg=TRIDCap.DgtlTunerDVBCSnd.AddReg

[TRIDCap.DgtlTunerDVBCSnd.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%TRIDCap.DgtlTunerNameDVBCSnd%

;
;*** strings, GUIDs and names
;

[Strings]

; Proxy GUIDs

KSProxy.CLSID   = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
KSTVAudio.CLSID = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
KSTvTune.CLSID  = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"

; Category GUIDs

KSCATEGORY_CAPTURE                = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO                  = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO                  = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_CROSSBAR               = "{a799a801-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVAUDIO                = "{a799a802-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVTUNER                = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_BDA_RECEIVER_COMPONENT = "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"
; DShow category "BDA Sourcefilter":
KSCATEGORY_BDA_NETWORK_TUNER      = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"

; Our Pin GUIDs

VAMP_ANLG_AUDIO_IN_PIN  = "{93F851D6-502F-4fbe-AFA4-64B85C7AAEAA}"
VAMP_ANLG_AUDIO_OUT_PIN = "{A8724073-0158-45ee-AC38-309346B3016A}"
VAMP_ANLG_AUDIO_CAP_IN_PIN  = "{3cf1005e-ac1a-4031-a7f1-6318324e7151}"
VAMP_ANLG_AUDIO_CAP_IN_PIN2  = "{8410b4b3-c6b2-4ba1-96dd-7076d29d2f84}"
VAMP_ANLG_AUDIO_CAP_OUT_PIN = "{ba6e3349-a3d9-4c2c-b365-6a967321524f}"

; Our Filter GUIDs

VAMP_ANLG_CAP_FILTER         = "{CA465100-DEB0-4d59-818F-8C477184ADF6}"
VAMP_ANLG_CAP_FILTER_SND     = "{EDE957B0-EAA5-4bf4-ACF3-6E10CB4836C3}"
VAMP_ANLG_XBAR_FILTER        = "{8A0971B9-778F-40e5-885C-CD2E29C305EF}"
VAMP_ANLG_XBAR_FILTER_SND    = "{C0588636-3ADC-4a9a-9373-E9BB446F1AFB}"
VAMP_ANLG_TVAUDIO_FILTER     = "{18CDE635-5C69-42e9-8804-98FEE378C971}"
VAMP_ANLG_TVAUDIO_FILTER_SND = "{94CAE33A-E4AC-4dce-8E60-806EF48CD3FE}"
VAMP_ANLG_TUNER_FILTER       = "{0BC27F29-05F8-436a-B5ED-4EA228B03DBB}"
VAMP_ANLG_TUNER_FILTER_SND   = "{4623CD31-23C7-43ea-83D5-2C5F75C44583}"
VAMP_DGTL_CAP_FILTER         = "{7B926C54-9BD6-4a49-82F0-D8545B968667}"
VAMP_DGTL_CAP_FILTER_SND     = "{95DCA60B-7EA6-40e2-84A6-677C01663CB2}"
VAMP_DGTL_TUNER_FILTER       = "{A138B8AF-9B11-4591-8632-47E431E3062F}"
VAMP_DGTL_TUNER_FILTER_SND   = "{A4272C48-4FB0-4eb0-AFD9-15BB5CDB7662}"
VAMP_DGTL_TUNER_FILTER_ATSC     = "{5984E076-3D0F-41ee-935C-8F0E125F8F14}"
VAMP_DGTL_TUNER_FILTER_ATSC_SND = "{1F221AE2-7254-493c-B6F8-39349116C9A9}"
VAMP_DGTL_TUNER_FILTER_DVBC     = "{F9980E16-2410-4218-9D90-CA334D0C243C}"
VAMP_DGTL_TUNER_FILTER_DVBC_SND = "{CB73E3EE-6940-418e-8D37-AA7CBDA11C6B}"
VAMP_DGTL_TUNER_FILTER_DVBS     = "{44AE9BC0-9402-47f4-8851-5AC15DFD2F04}"
VAMP_DGTL_TUNER_FILTER_DVBS_SND = "{B01214C2-02F9-4ca8-9A74-0E123A5E31CC}"
VAMP_ANLG_AUDIO_CAP_FILTER      = "{A10648AD-0BFC-411e-B869-37799973B5FF}"
VAMP_ANLG_AUDIO_CAP_FILTER_2ND  = "{767E6B89-17D7-458b-BAA3-C480640B7F0E}"

AUDIOENDPOINT_EXT_UI_CLSID	= "{6C57B2A2-91F5-4B90-93D5-FAB82485ECA6}"
PKEY_AudioEndpoint_ControlPanelProvider = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},1"
PKEY_AudioEndpoint_Association          = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEngine_OEMFormat              = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"
PKEY_AudioDevice_NeverSetAsDefaultEndpoint = "{F3E80BEF-1723-4FF2-BCC4-7F83DC5E46D4},3"

; Our Interface GUIDs

VAMP_ANLG_ACPNOTIFY          = "{E65084D3-29F6-4ac6-9CD3-2B2D58FF6403}"

; system defines

SERVICE_BOOT_START   = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START   = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED     = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2
SERVICE_ERROR_CRITICAL = 0x3 

FLG_REGSVR_DLLREGISTER = 0x00000001

;Our strings

ProviderName="AVerMedia TECHNOLOGIES, Inc."
AVerMedia="AVerMedia TECHNOLOGIES, Inc."
TRIDCap.DeviceDesc       = "AVerMedia H727 PCIe Hybrid DVBT HDMI Capture Device"
AVSTRM_INSTALLATION_DISK = "AVStrm installation disk"
DISPLAY_NAME             = "AVerMedia service"
SERVICE_DESCRIPTION      = "The AVerMedia capture driver"

;Our Friendly Names

TRIDCap.AnlgCaptureName    = "AVerMedia BDA Analog Capture"
TRIDCap.AnlgCaptureNameSnd = "AVerMedia BDA Analog Capture Secondary"
TRIDCap.AnlgXBarName       = "AVerMedia BDA Analog Xbar"
TRIDCap.AnlgXBarNameSnd    = "AVerMedia BDA Analog Xbar Secondary"
TRIDCap.AnlgTVAudioName    = "AVerMedia BDA Analog TV Audio"
TRIDCap.AnlgTVAudioNameSnd = "AVerMedia BDA Analog TV Audio Secondary"
TRIDCap.AnlgTunerName      = "AVerMedia BDA Analog Tuner"
TRIDCap.AnlgTunerNameSnd   = "AVerMedia BDA Analog Tuner Secondary"
TRIDCap.DgtlCaptureName    = "AVerMedia BDA Digital Capture"
TRIDCap.DgtlCaptureNameSnd = "AVerMedia BDA Digital Capture Secondary"
TRIDCap.DgtlTunerName      = "AVerMedia BDA Digital DVBT Tuner"
TRIDCap.DgtlTunerNameSnd   = "AVerMedia BDA Digital DVBT Tuner Secondary"
TRIDCap.DgtlTunerNameATSC      = "AVerMedia BDA Digital ATSC Tuner"
TRIDCap.DgtlTunerNameATSCSnd   = "AVerMedia BDA Digital ATSC Tuner Secondary"
TRIDCap.DgtlTunerNameDVBS      = "AVerMedia BDA Digital DVBS Tuner"
TRIDCap.DgtlTunerNameDVBSSnd   = "AVerMedia BDA Digital DVBS Tuner Secondary"
TRIDCap.DgtlTunerNameDVBC      = "AVerMedia BDA Digital DVBC Tuner"
TRIDCap.DgtlTunerNameDVBCSnd   = "AVerMedia BDA Digital DVBC Tuner Secondary"

TRIDCap.AnlgAudioCaptureName = "AVerMedia Audio Capture 1st"
TRIDCap.AnlgAudioCapNameSnd  = "AVerMedia Audio Capture 2nd"
