;
; 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]
;%60Hybrid.DeviceDesc% = PhilCap64,PCI\VEN_1131&DEV_7160
;%61Hybrid.DeviceDesc% = PhilCap64,PCI\VEN_1131&DEV_7161
;%62Hybrid.DeviceDesc% = PhilCap64,PCI\VEN_1131&DEV_7162
;%63Hybrid.DeviceDesc% = PhilCap64,PCI\VEN_1131&DEV_7163

;******** AVerMedia HC82U_ATSC ***
%AVer.DeviceDesc05% = AVer_HC82U_ATSC.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_12551461 ; HC82U_ATSC (I)

[AVerMedia.NTamd64.6]

;******** AVerMedia HC82U_ATSC ***
%AVer.DeviceDesc05% = AVer_HC82U_ATSC.NTamd64 , PCI\VEN_1131&DEV_7160&SUBSYS_12551461 ; HC82U_ATSC (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
AverCap64.CopyDll.NTamd64 = 11

[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 HC82U_ATSC x64 ***
[AVer_HC82U_ATSC.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_HC82U_ATSC.AddReg
RegisterDlls  = AverCap64.Register.NTamd64, CoSetup.Register.NTamd64

[AVer_HC82U_ATSC.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
;
;======================================

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

[AverCap64.Register.NTamd64]
11,,MV716x_x64.ax,1

[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.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,%MediaInterfaces%\{1704290E-658E-4818-BBE3-A18A8E4ECD2B},,,"CState Control Filter"
HKLM,%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,,"AVerMedia 716x BDA"

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", "EnableHRC",0x00010001,1	; JohnWang
HKR, "Parameters", "SECAML_EMITune", 0x00010001, 1		; Bob_0024_20080407

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, "VideoDecoder\Tuner\Path1", "DefaultBrightness",0x00010001,126
HKR, "VideoDecoder\Tuner\Path1", "DefaultContrast",0x00010001,67
HKR, "VideoDecoder\Tuner\Path1", "DefaultHue",0x00010001,129
HKR, "VideoDecoder\Tuner\Path1", "DefaultSaturation",0x00010001,63
HKR, "VideoDecoder\Tuner\Path1", "DefaultSharpness",0x00010001,8

HKR, "Parameters", "QAMNode",0x00010001,0x01
;
;******** Board - Specific Registry Entries ***
;

;******** AVerMedia HC82U_ATSC ***
[AVer_HC82U_ATSC.AddReg]
HKR, "Parameters", "PowerSaveMode",0x00010001,1
HKR, "Parameters", "UseDecoderRegistry",0x00010001,1
HKR, "Parameters", "TDA18271_AnalogIFLevel",0x00010001,3
HKR, "Parameters", "AVerParam_1",0x00010001,1

;
;*** 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.DeviceDesc05        = "AVerMedia HC82 Express-Card Hybrid Analog/ATSC"

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