; Copyright 2007 NXP Semiconductors
; JohnWang 20070323 modify from PAverCap.inf

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


[Manufacturer]
%AVer% = AVerMedia,NT.6

;---> 32 BIT SUPPORT <---
[AVerMedia]
;******** AVerMedia A317 ***
%AVer.DeviceDesc03% = AVer_A317.NTx86 , PCI\VEN_1131&DEV_7160&SUBSYS_10551461 ; A317 (II)

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

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

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

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll  =  1
;NXPMV32.dll          =  1
AVerBDA716x.sys        =  1
MV716x.ax       =1
CoSetup.ax=1

[DestinationDirs]
PAverCap.CopyCoInst.NTx86   = 11
PAverCap.CopyDll.NTx86      = 11
CoSetup.CopyDll.NTx86	    = 11
PAverCap.CopyFiles.NTx86    = 10,system32\drivers


[PAverCap.CopyCoInst.NTx86]
716xCoInstaller.dll

[PAverCap.CopyFiles.NTx86]
AVerBDA716x.sys

[PAverCap.CopyDll.NTx86]
;NXPMV32.dll
MV716x.ax

[CoSetup.CopyDll.NTx86]
CoSetup.ax

;======================================
;
;       Initialization Entries
;
;======================================
;******** AVerMedia A317 ***
[AVer_A317.ntx86.CoInstallers]
CopyFiles = PAverCap.CopyCoInst.NTx86
AddReg    = PAverCap.CoInstaller_AddReg.NTx86

[AVer_A317.NTx86]
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     = PAverCap.CopyFiles.NTx86, PAverCap.CopyDll.NTx86, CoSetup.CopyDll.NTx86
AddReg        = PAverCap.AddReg.NTx86, AVer_A317.AddReg
RegisterDlls  = PAverCap.Register.NTx86, CoSetup.Register.NTx86

[AVer_A317.NTx86.Services]
AddService = %SERVICE_NAME_X32%, 0x00000002, PAverCap.ServiceInstall.NTx86, PAverCap.EventInstall.NTx86

;******** AVerMedia A316 ***
[AVer_A316.ntx86.CoInstallers]
CopyFiles = PAverCap.CopyCoInst.NTx86
AddReg    = PAverCap.CoInstaller_AddReg.NTx86

[AVer_A316.NTx86]
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     = PAverCap.CopyFiles.NTx86, PAverCap.CopyDll.NTx86, CoSetup.CopyDll.NTx86
AddReg        = PAverCap.AddReg.NTx86, AVer_A316.AddReg
RegisterDlls  = PAverCap.Register.NTx86, CoSetup.Register.NTx86

[AVer_A316.NTx86.Services]
AddService = %SERVICE_NAME_X32%, 0x00000002, PAverCap.ServiceInstall.NTx86, PAverCap.EventInstall.NTx86


;---------------------------------------------------------------
[PAverCap.ServiceInstall.NTx86]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\AVerBDA716x.sys

[PAverCap.EventInstall.NTx86]
AddReg = PAverCapEvent_AddReg.NTx86

;======================================
;
;           Registry Entries
;
;======================================
; [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]...]
;
;******** General DLL Registry Entries ***
;
[PAverCap.CoInstaller_AddReg.NTx86]
HKR,,CoInstallers32,0x00010000,"716xCoInstaller.dll, CoInstallerEntry"

[PAverCap.Register.NTx86]
;11,,NXPMV32.dll,1 ;FLG_REGSVR_DLLREGISTER
11,,MV716x.ax,1

[CoSetup.Register.NTx86]
11,,CoSetup.ax,1

[PAverCapEvent_AddReg.NTx86]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\AVerBDA716x.sys"
HKR,,TypesSupported,0x00010001,7

;
;******** General Driver Registry Entries ***
;
[PAverCap.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AVerBDA716x.sys

; Audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AVerBDA716x.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_X32         = "AVerBDA6x"

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

; 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      = "NXP SAA7160, Hybrid Capture Device"
61Hybrid.DeviceDesc      = "NXP SAA7161, Hybrid Capture Device"
62Hybrid.DeviceDesc      = "NXP SAA7162, Hybrid Capture Device"
63Hybrid.DeviceDesc      = "NXP 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             = "AVerBDA6x service"
SERVICE_DESCRIPTION      = "The PCIe capture driver"
MediaInterfaces          = "System\CurrentControlSet\Control\MediaInterfaces"
