;-----------------------------------------------------
; 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.cat
DriverVer=04/28/2015,1.54.0.169

[Manufacturer]
%AVerMedia%=Trident

[Trident]
%TRIDCap.DeviceDesc%=TRIDCap,PCI\VEN_1A0A&DEV_6202&SUBSYS_62161461
[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.sys=1
cpnotify_TM.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_TM.ax

[TRIDCap.CopyFiles]
AVerTM62.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.NT,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.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.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]...]

[TRIDCap.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AVerTM62.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



; 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"

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

; VIDEO Decoder setting (two channel)
HKR, "Decoder\VideoDecoder1", "Preferred Video Standard",      0x00010001, 1
                                                               
; AUDIO Decoder setting (two channel)
HKR, "Decoder\AudioDecoder1", "Audio Decoder",                 0x00000000, "TAD"
                                                               
; 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 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, "NO TUNER"                                                    
HKR, "BoardSetting\AnalogSrc2",  "Tuner Type",                 0x00000000, "NO TUNER"
                                                               
HKR, "BoardSetting\DigitalSrc1",  "Tuner Type",                0x00000000, "MAXLINEAR601"
HKR, "BoardSetting\DigitalSrc1",  "Demodulator Type",          0x00000000, "MN88472"
HKR, "BoardSetting\DigitalSrc1",  "Demodulator Type DVBC",     0x00000000, "MN88472"
HKR, "BoardSetting\DigitalSrc1",  "Tuner I2C Address",         0x00010001, 0xc0
HKR, "BoardSetting\DigitalSrc1",  "IF I2C Address",            0x00010001, 0x35
HKR, "BoardSetting\DigitalSrc1",  "Demodulator Reset Type",    0x00010001, 1
HKR, "BoardSetting\DigitalSrc1",  "GPIO Reset Demodulator",    0x00010001, 4
HKR, "BoardSetting\DigitalSrc1",  "DTV Source Type",           0x00010001, 1

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

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

[TRIDCap.RegFilter]
11,,acpinfo.ax,1
11,,cpnotify_TM.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_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,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

[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_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,TRIDCap.AnlgXBar,0
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,TRIDCap.DgtlCapture,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

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

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

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

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

[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.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

;
;*** 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}"

; 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}"


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 A757 PCIe Hybrid DVB-T/T2"
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.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"


