;
; Copyright (c) AVerMedia TECHNOLOGIES, Inc. 
;

[Version]
signature   = "$CHICAGO$" ;all windows os
Class       = MEDIA
ClassGUID   = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    = %AVer%
DriverVer   =06/05/2009,1.3.64.76
CatalogFile = AVerBDA716x_x64.cat

[Manufacturer]
%AVer% = AVerMedia,NTamd64,ntamd64.6

[AVerMedia.NTamd64]
;******** AVerMedia A317 ***
%AVer.DeviceDesc03% = AVer_A317.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_10551461 ; A317 (II)

;******** AVerMedia A316 ***
%AVer.DeviceDesc07% = AVer_A316.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_0a551461 ; A316 (I)

[AVerMedia.NTamd64.6]
;******** AVerMedia A317 ***
%AVer.DeviceDesc03% = AVer_A317.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_10551461 ; A317 (II)

;******** AVerMedia A316 ***
%AVer.DeviceDesc07% = AVer_A316.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_0a551461 ; A316 (I)

[DestinationDirs]
AVerCap64.CopyFiles.NTamd64 = 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]
AVerBDA716x_x64.sys=1
MV716x_x64.ax=1  
CoSetup_x64.ax=1

[AVerCap64.CopyFiles.NTamd64]
AVerBDA716x_x64.sys

[AverCap64.CopyDll.NTamd64]
MV716x_x64.ax

[CoSetup.CopyDll.NTamd64]
CoSetup_x64.ax

;======================================
;
;       Initialization Entries
;
;======================================
;******** AVerMedia A317 x64 ***
[AVer_A317.NTamd64]
Include   = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf, machine.inf
Needs     = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT, PciASPMOptOut
CopyFiles = AVerCap64.CopyFiles.NTamd64, AverCap64.CopyDll.NTamd64, CoSetup.CopyDll.NTamd64
AddReg    = AVerCap64.AddReg.NTamd64, AVer_A317.AddReg
RegisterDlls  = AverCap64.Register.NTamd64, CoSetup.Register.NTamd64

[AVer_A317.NTamd64.Services]
AddService = %SERVICE_NAME_X64% , 0x00000002, AVerCap64.ServiceInstall.NTamd64, AVerCap64.EventInstall.NTamd64


;******** AVerMedia A316 x64 ***
[AVer_A316.NTamd64]
Include   = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf, machine.inf
Needs     = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT, PciASPMOptOut
CopyFiles = AVerCap64.CopyFiles.NTamd64, AverCap64.CopyDll.NTamd64, CoSetup.CopyDll.NTamd64
AddReg    = AVerCap64.AddReg.NTamd64, AVer_A316.AddReg
RegisterDlls  = AverCap64.Register.NTamd64, CoSetup.Register.NTamd64

[AVer_A316.NTamd64.Services]
AddService = %SERVICE_NAME_X64% , 0x00000002, AVerCap64.ServiceInstall.NTamd64, AVerCap64.EventInstall.NTamd64



[AVerCap64.ServiceInstall.NTamd64]
DisplayName  = %DISPLAY_NAME%
Description  = %SERVICE_DESCRIPTION%
ServiceType  = %SERVICE_KERNEL_DRIVER%
StartType    = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
ServiceBinary=%12%\AVerBDA716x_x64.sys

[AVerCap64.EventInstall.NTamd64]
AddReg = PhilCapEvent_AddReg.NTamd64


;======================================
;
;           Registry Entries
;
;======================================

[PhilCapEvent_AddReg.NTamd64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\AVerBDA716x_x64.sys"
HKR,,TypesSupported,0x00010001,7


;
;******** General Driver Registry Entries ***
;
[AverCap64.Register.NTamd64]
11,,MV716x_x64.ax,1

[CoSetup.Register.NTamd64]
11,,CoSetup_x64.ax,1

[AVerCap64.AddReg.NTamd64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AVerBDA716x_x64.sys

; audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AVerBDA716x_x64.sys


; add audio input and output pinnames
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_IN_PIN%,"Name",,"Analog Audioinput"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_ITU_PIN%,"Name",,"Analog ITU Video"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_I2S_PIN%,"Name",,"I2S Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PIN%,"Name",,"Capture"
HKLM,%MediaInterfaces%\{6a2e0650-28e4-11d0-A18C-00A0C9118959},,,"Copy Protect Notification Filter"
HKLM,%MediaInterfaces%\{6a2e0650-28e4-11d0-A18C-00A0C9118959},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{1704290E-658E-4818-BBE3-A18A8E4ECD2B},,,"CState Control Filter"
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{1704290E-658E-4818-BBE3-A18A8E4ECD2B},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

HKR, "Parameters", Prefix,,"HP"

HKR, "AudioDecoder\Path0", "DefaultDecoderLevel",0x00010001,0x00
HKR, "AudioDecoder\Path0", "DefaultMonoLevel",0x00010001,0x07
HKR, "AudioDecoder\Path0", "DefaultSAPLevel",0x00010001,0x07

HKR, "VideoDecoder\Path0", "AutoBlank",0x00010001,0

HKR, "AudioDecoder\Path0", "VolumeTuner",0x00010001,0x04
HKR, "AudioDecoder\Path0", "VolumeExt1",0x00010001,0

HKR, "AudioDecoder", "EnableAudioStdDetectionEx",0x00010001,1

HKR, "Parameters", "QAMNode",0x00010001,0x01
HKR, "Parameters", "SECAML_EMITune", 0x00010001, 1

;
;******** Board - Specific Registry Entries ***
;
;******** AVerMedia A317 ***
[AVer_A317.AddReg]
HKR, "Parameters", "PowerSaveMode",0x00010001,1
HKR, "Parameters", "DStatePowerSaving",0x00010001,1
HKR, "Parameters", "AVerParam_1",0x00010001,1

HKR, "Parameters", "UseDecoderRegistry",0x00010001,1
HKR, "Parameters", "ForceFM",0x00010001,2   ; 0:EEPROM 1:support 2:un-support

HKR, "VideoDecoder\Tuner\Path0", "DefaultBrightness",0x00010001,126
HKR, "VideoDecoder\Tuner\Path0", "DefaultContrast",0x00010001,67
HKR, "VideoDecoder\Tuner\Path0", "DefaultHue",0x00010001,129
HKR, "VideoDecoder\Tuner\Path0", "DefaultSaturation",0x00010001,63
HKR, "VideoDecoder\Tuner\Path0", "DefaultSharpness",0x00010001,8

HKR, "Parameters", "TDA18271_IF_FREQ",0x00010001,6000000
HKR, "Parameters", "TDA18271_ATSC_STD",0x00010001,0x1E
HKR, "Parameters", "Enable_SAW_FILTER",0x00010001,1
HKR, "Parameters", "3304_8VSB_IF_1",0x00010001,0xfe
HKR, "Parameters", "3304_8VSB_IF_2",0x00010001,0x9c
HKR, "Parameters", "3304_8VSB_IF_3",0x00010001,0x08
HKR, "Parameters", "3304_8VSB_IF_4",0x00010001,0xe3

HKR, "Parameters", "IFAGC_TOP",0x00010001,0x0a
HKR, "Parameters", "RFAGC_TOP",0x00010001,0x03

HKR, "Parameters", "REG_0X30E_8VSB",0x00010001,0x4C
HKR, "Parameters", "TDA18271_IFLevel_ATSC",0x00010001,0


;******** AVerMedia A316 ***
[AVer_A316.AddReg]
HKR, "Parameters", "PowerSaveMode",0x00010001,1
HKR, "Parameters", "DStatePowerSaving",0x00010001,1

HKR, "Parameters", "UseDecoderRegistry",0x00010001,1
HKR, "Parameters", "ForceFM",0x00010001,2   ; 0:EEPROM 1:support 2:un-support

HKR, "Parameters", "TDA18271_DigitalIFLevel",0x00010001,1


HKR, "VideoDecoder\Tuner\Path0", "DefaultBrightness",0x00010001,126
HKR, "VideoDecoder\Tuner\Path0", "DefaultContrast",0x00010001,67
HKR, "VideoDecoder\Tuner\Path0", "DefaultHue",0x00010001,129
HKR, "VideoDecoder\Tuner\Path0", "DefaultSaturation",0x00010001,63
;HKR, "VideoDecoder\Tuner\Path0", "DefaultSharpness",0x00010001,8

HKR, "Parameters", "TDA18271_DVBT_FRANCE_IF_FREQ_8M",0x00010001,4000000
HKR, "Parameters", "Afa9013_FRANCE_8M_IF_FREQ",0x00010001,4000000

HKR, "VideoDecoder\Tuner\Path0", "DefaultSharpness",0x00010001,7
HKR, "VideoDecoder\Tuner\Path1", "DefaultSharpness",0x00010001,7

;
;*** strings, GUIDs and names
;

[Strings]

SERVICE_NAME_X64         = "AVerBDA6x_x64"

; 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_MULTIPLEXER   = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"
KSCATEGORY_ENCODER       = "{19689BF6-C384-48fd-AD51-90E58C79F70B}"
KSCATEGORY_CAPTURE       = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO         = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO         = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"

; Our Pin Name GUIDs

AVSTREAM_ANLG_AUDIO_IN_PIN   = "{7BB284B9-714D-493d-A101-B1B028E782BD}"
AVSTREAM_ANLG_AUDIO_OUT_PIN  = "{5582E657-E596-42b5-9DB3-541B27A2355F}"
AVSTREAM_ANLG_VIDEO_ITU_PIN  = "{82631A2E-403C-4581-A4B0-EC173D004410}"
AVSTREAM_ANLG_AUDIO_I2S_PIN  = "{C2E46358-F032-4d88-B802-06B59D162730}"
AVSTREAM_ANLG_VIDEO_PIN      = "{16FFBD0A-F770-4692-A2FF-DD394DFE9564}"
AVSTREAM_ANLG_AUDIO_PIN      = "{BA9E27B1-CF44-490e-8EAB-5F662E5FFE74}"

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

AVer                     = "AVerMedia TECHNOLOGIES, Inc."
60Hybrid.DeviceDesc      = "Philips SAA7160, Hybrid Capture Device"
61Hybrid.DeviceDesc      = "Philips SAA7161, Hybrid Capture Device"
62Hybrid.DeviceDesc      = "Philips SAA7162, Hybrid Capture Device"
63Hybrid.DeviceDesc      = "Philips SAA7163  Hybrid Capture Device"

AVer.DeviceDesc03        = "HP ATSC/Analog TV Tuner"
AVer.DeviceDesc07        = "HP DVB-T/Analog TV Tuner"

AVSTRM_INSTALLATION_DISK = "AVerBDA6x installation disk"
DISPLAY_NAME             = "AVerMedia SAA716x BDA Service"
SERVICE_DESCRIPTION      = "The PCIe capture driver"
MediaInterfaces          = "System\CurrentControlSet\Control\MediaInterfaces"
