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

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

[DestinationDirs]
System32.CopyBins=10,system32
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]
AVerTM62_x64.sys=1
cpnotify_64.ax=1
customer.bin=1
aver_custom_hdcp_protection.bmp=1
aver_custom_no_signal.bmp=1
aver_custom_out_of_range.bmp=1

[System32.CopyDlls]
cpnotify_64.ax

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

[System32.CopyBins]
customer.bin
;
;*** initialisation and registry entries
;

[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,System32.CopyBins
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_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]...]

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

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, 0

; XBAR board defaults (two channel)
HKR, "BoardSetting\AnalogSrc1", "XBar Tuner Exist",            0x00010001, 0
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 Composite Decoder",       0x00000000, "TVP7002"
HKR, "Decoder\VideoDecoder2", "Video S-Video Decoder",         0x00000000, "ITE IT6603"
                                                               
HKR, "Decoder\VideoDecoder2", "TVP7002 I2C Address",           0x00010001, 0xB8
HKR, "Decoder\VideoDecoder2", "GPIO TVP7002 Reset",            0x00010001, 6
HKR, "Decoder\VideoDecoder2", "GPIO TVP7002 PwrDn",            0x00010001, 7
HKR, "Decoder\VideoDecoder2", "TVP7002 Default Brightness",    0x00010001, 128
HKR, "Decoder\VideoDecoder2", "TVP7002 Default Contrast",      0x00010001, 62

HKR, "Decoder\VideoDecoder2", "IT6603 I2C Address",            0x00010001, 0x90
HKR, "Decoder\VideoDecoder2", "GPIO IT6603 Reset",             0x00010001, 7

; 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, "TI3101"
HKR, "Decoder\AudioDecoder2", "Audio Decoder I2C Address",     0x00010001, 0x30
HKR, "Decoder\AudioDecoder2", "Audio Decoder Left Volume",     0x00010001, 0x06
HKR, "Decoder\AudioDecoder2", "Audio Decoder Right Volume",    0x00010001, 0x06
HKR, "Decoder\AudioDecoder2", "GPIO Reset Audio Decoder",      0x00010001, 5

; 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, "NO TUNER"

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

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

HKR, "BoardSetting\Default",      "GPIO EDID",                 0x00010001, 4

[TRIDCap.RegFilter]
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

[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

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

;
;*** strings, GUIDs and names
;

[Strings]

; Proxy GUIDs

KSProxy.CLSID   = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"

; Category GUIDs

KSCATEGORY_CAPTURE                = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO                  = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_CROSSBAR               = "{a799a801-a46d-11d0-a18c-00a02401dcd4}"

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

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

; 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 C027 PCIe HD 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"
