; Copyright (c) AVerMedia All rights reserved.
;
; Installation inf file for AVerMedia A816 USB Hybrid DVB-S series
;

[Version]
signature           ="$CHICAGO$"
Class               =Media
ClassGUID           ={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            =%ProviderName%
DriverVer           =01/28/2011,2.1.64.150
CatalogFile.NTamd64 =AVerFx2hbtv64.cat

[Manufacturer]
%ProviderName% = AVerMedia, NTamd64, NTamd64.6

[SourceDisksNames]
1="AVerMedia USB Hybrid Drivers",,,""

[SourceDisksFiles]
AVerFx2hbtv64.sys = 1
MVDetection64.ax  = 1


[AVerMedia.NTamd64]
%AVerHybrid.DeviceDesc01% = HYBRID,  USB\VID_07ca&PID_a816

[AVerMedia.NTamd64.6]
%AVerHybrid.DeviceDesc01% = HYBRID_VISTA,  USB\VID_07ca&PID_a816

[HYBRID]
Include      = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration, WDMAUDIO.Registration, BDA.Registration, bda.Installation
AddReg       = HybridVID.AddReg, AVerDVBT.AddReg, MCEIRXP.AddReg
CopyFiles    = AVerHybrid.CopyDrivers, DSFilters.CopyFiles
RegisterDlls = DSFilters.RegDLL    

[HYBRID.NT]
Include      = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration, BDA.Registration, bda.Installation.NT
AddReg       = HybridVID.AddReg, AVerDVBT.AddReg, MCEIRXP.AddReg
CopyFiles    = AVerHybrid.CopyDrivers, DSFilters.CopyFiles
RegisterDlls = DSFilters.RegDLL    

; Vista Model --------------------Vista Model-----------------------Vista Model-------------------------------Vista Model
[HYBRID_VISTA.NT]
Include      = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration, BDA.Registration, bda.Installation.NT
AddReg       = HybridVID.AddReg, AVerDVBT.AddReg, MCEIRVista.AddReg
CopyFiles    = AVerHybrid.CopyDrivers, DSFilters.CopyFiles
RegisterDlls = DSFilters.RegDLL 

[HYBRID_VISTA.NT.CoInstallers]
CopyFiles    = MCEIR.CopyCoInst
AddReg       = MCEIR.CoInstaller_AddReg


[DestinationDirs]
AVerHybrid.CopyDrivers = 10,system32\drivers
DSFilters.CopyFiles    = 10,SysWOW64

[AVerHybrid.CopyDrivers]
AVerFx2hbtv64.sys

[DSFilters.CopyFiles]
MVDetection64.ax

[MCEIR.CopyCoInst]

[MCEIR.CoInstaller_AddReg]
; MR_001+s
; Add for MCE IR
HKR,,CoInstallers32,0x00010008,"CIRCoInst.dll,IRCoInstaller"
; MR_001+e

[DSFilters.RegDLL]
10,SysWOW64,MVDetection64.ax,1


[HybridVID.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,AVerFx2hbtv64.sys
HKR, "ENUM\Device1",pnpid,,"AVerMedia.EtherNet"		  ; Virtual Network driver for data service.

; Disable driver page out
HKR,,PageOutWhenUnopened,3,0

HKLM,%MediaInterfaces%\{d2185a40-0398-11d3-a53e-00a0c9ef506a},,,"AVerMedia Macrovision Detection Property"
HKLM,%MediaInterfaces%\{d2185a40-0398-11d3-a53e-00a0c9ef506a},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

; n245
HKR,"DriverData","MVDetectEnable",       0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","CGMSADetectEnable",    0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SampleSleepTime",      0x00010001, 0x06, 0x00, 0x00, 0x00
HKR,"DriverData","CGMSASampleCount",     0x00010001, 0x0a, 0x00, 0x00, 0x00
HKR,"DriverData","MVSampleCount",        0x00010001, 0x03, 0x00, 0x00, 0x00
HKR,"DriverData","AutoCPScreenControl",  0x00010001, 0x01, 0x00, 0x00, 0x00

;------------------------------

;---Tuner registry values------

;For Country Code Default value
HKR,"DriverData","TunerCountryCode",     0x00010001, 0x31, 0x00, 0x00, 0x00
HKR,"DriverData","TunerVideoStandard",   0x00010001, 0x00, 0x01, 0x00, 0x00
HKR,"DriverData","DecoderVideoStandard", 0x00010001, 0x00, 0x01, 0x00, 0x00
HKR,"DriverData\LpFreqTab","0",          0x00010001, 0x70, 0xAD, 0x52, 0x03
HKR,"DriverData\LpFreqTab","1",          0x00010001, 0x20, 0x28, 0x9B, 0x03
HKR,"DriverData\LpFreqTab","2",          0x00010001, 0x70, 0xBF, 0xCC, 0x03
HKR,"DriverData\LpFreqTab","3",          0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","NoTunerFeature1",      0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","IfLockLevelFM",        0x00010001, 0x45, 0x00, 0x00, 0x00

;Color and Volume, 1 - NTSC, 2 - PAL, 3 - SECAM
HKR,"DriverData","TBrightness_1",        0x00010001, 0x9f, 0xFF, 0xFF, 0xFF
HKR,"DriverData","TContrast_1",          0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","THue_1",               0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","TSaturation_1",        0x00010001, 0xfc, 0xff, 0xff, 0xff
HKR,"DriverData","TSharpness_1",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CBrightness_1",        0x00010001, 0x9c, 0xff, 0xff, 0xff
HKR,"DriverData","CContrast_1",          0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","CHue_1",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CSaturation_1",        0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CSharpness_1",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SBrightness_1",        0x00010001, 0x9c, 0xFF, 0xFF, 0xFF
HKR,"DriverData","SContrast_1",          0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","SHue_1",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SSaturation_1",        0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SSharpness_1",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TBrightness_2",        0x00010001, 0xa0, 0xFF, 0xFF, 0xFF
HKR,"DriverData","TContrast_2",          0x00010001, 0xf9, 0xff, 0xff, 0xff
HKR,"DriverData","THue_2",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TSaturation_2",        0x00010001, 0xdc, 0xff, 0xff, 0xff
HKR,"DriverData","TSharpness_2",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CBrightness_2",        0x00010001, 0x9b, 0xFF, 0xFF, 0xFF
HKR,"DriverData","CContrast_2",          0x00010001, 0x03, 0x00, 0x00, 0x00
HKR,"DriverData","CHue_2",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CSaturation_2",        0x00010001, 0x17, 0x00, 0x00, 0x00
HKR,"DriverData","CSharpness_2",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SBrightness_2",        0x00010001, 0x9b, 0xFF, 0xFF, 0xFF
HKR,"DriverData","SContrast_2",          0x00010001, 0x03, 0x00, 0x00, 0x00
HKR,"DriverData","SHue_2",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SSaturation_2",        0x00010001, 0xf4, 0xff, 0xff, 0xff
HKR,"DriverData","SSharpness_2",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TBrightness_3",        0x00010001, 0x9e, 0xFF, 0xFF, 0xFF
HKR,"DriverData","TContrast_3",          0x00010001, 0xf3, 0xff, 0xff, 0xff
HKR,"DriverData","THue_3",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TSaturation_3",        0x00010001, 0x0f, 0x00, 0x00, 0x00
HKR,"DriverData","TSharpness_3",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CBrightness_3",        0x00010001, 0x9b, 0xFF, 0xFF, 0xFF
HKR,"DriverData","CContrast_3",          0x00010001, 0x08, 0x00, 0x00, 0x00
HKR,"DriverData","CHue_3",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CSaturation_3",        0x00010001, 0x08, 0x00, 0x00, 0x00
HKR,"DriverData","CSharpness_3",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SBrightness_3",        0x00010001, 0x9b, 0xFF, 0xFF, 0xFF
HKR,"DriverData","SContrast_3",          0x00010001, 0x08, 0x00, 0x00, 0x00
HKR,"DriverData","SHue_3",               0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","SSaturation_3",        0x00010001, 0x08, 0x00, 0x00, 0x00
HKR,"DriverData","SSharpness_3",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TVol",                 0x00010001, 0xf8, 0xff, 0xff, 0xff
HKR,"DriverData","FVol",                 0x00010001, 0xee, 0xff, 0xff, 0xff
HKR,"DriverData","LVol",                 0x00010001, 0x11, 0x00, 0x00, 0x00

;------------------------------
HKR,"DriverData","GpioI2CEnable",        0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TunerGpioI2c",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","DecoderGpioI2c",       0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","DemodGpioI2c",         0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","Tuner2GpioI2c",        0x00010001, 0x01, 0x00, 0x00, 0x00

HKR,"DriverData","IREnable",             0x00010001, 0x01, 0x00, 0x00, 0x00

;For TV standard detection
HKR,"DriverData","StandardDetectEnable", 0x00010001, 0x00, 0x00, 0x00, 0x00
;For Sync
HKR,"DriverData","SyncEnable",           0x00010001, 0x01, 0x00, 0x00, 0x00
;For Audio Muting if TV signal is not locked.
HKR,"DriverData","AudioMuteEnable",      0x00010001, 0x01, 0x00, 0x00, 0x00

;Tuner input is the default
HKR,"DriverData","VideoInputPin",        0x00010001, 0x00, 0x00, 0x00, 0x00

HKR,"DriverData","DelayPowerDownSec",    0x00010001, 0x14, 0x00, 0x00, 0x00
HKR,"DriverData","SSEnable",             0x00010001, 0x00, 0x00, 0x00, 0x00

HKR,"DriverData","dwTP_PACKET_SIZE",                0x00010001, 0xbc, 0x00, 0x00, 0x00
HKR,"DriverData","DgPktNum",                        0x00010001, 0x20, 0x00, 0x00, 0x00
HKR,"DriverData","AnAVPktNum",                      0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","AnNotAVPktNum",                   0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","I2CBusDelayMs",                   0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","ForceAudioWithVideo",             0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","DecoderVideoStandardCaps",        0x00010001, 0xf3, 0xf7, 0x1f, 0x00
HKR,"DriverData","TunerVideoStandardCaps",          0x00010001, 0xf3, 0xf7, 0x1f, 0x00

HKR,"DriverData","DeviceSupportedMode",             0x00010001, 0x11, 0x00, 0x00, 0x00
HKR,"DriverData","DrvProcType",                     0x00010001, 0x09, 0x00, 0x00, 0x00



[AVerDVBT.AddReg]
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Name,,%TSPinName%

[MCEIRVista.AddReg]
HKR,"DriverData","AVerIRSupported",      0x00010001, 0x01, 0x00, 0x00, 0x00

[MCEIRXP.AddReg]
HKR,"DriverData","AVerIRSupported",      0x00010001, 0x00, 0x00, 0x00, 0x00

;
; Interfaces installation
;

;
; Video
;

[HYBRID.Interfaces]
AddInterface = {a799a800-a46d-11d0-a18c-00a02401dcd4}, {445FCB45-78A6-4fb1-A988-D9CC1E5AC909}, AVer_TvTunerInterface,
AddInterface = {a799a802-a46d-11d0-a18c-00a02401dcd4}, {F239CF92-FFEF-4556-B0F9-C7321B633480}, AVer_TvAudioInterface,
AddInterface = {a799a801-a46d-11d0-a18c-00a02401dcd4}, {FEB5C989-C7BD-46e6-ACF8-927C245BD623}, AVer_XbarInterface,
AddInterface = {65e8773d-8f56-11d0-a3b9-00a0c9223196}, {9B365890-165F-11D0-A195-0020AFD156E4}, AVer_VideoCaptureInterface,
;DVB-T Tuner and Capture filter
AddInterface = {71985F48-1CA1-11d3-9CC8-00C04F7971E0}, {21558E19-D336-49ca-BE62-8B7E5BA45B8B}, AVer_BdaTunerInterface,
AddInterface = {FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}, {4C837DE1-71FA-4ed5-A19E-5925E35B4BA8}, AVer_BdaCaptureInterface

[HYBRID.NT.Interfaces]
AddInterface = {a799a800-a46d-11d0-a18c-00a02401dcd4}, {445FCB45-78A6-4fb1-A988-D9CC1E5AC909}, AVer_TvTunerInterface,
AddInterface = {a799a802-a46d-11d0-a18c-00a02401dcd4}, {F239CF92-FFEF-4556-B0F9-C7321B633480}, AVer_TvAudioInterface,
AddInterface = {a799a801-a46d-11d0-a18c-00a02401dcd4}, {FEB5C989-C7BD-46e6-ACF8-927C245BD623}, AVer_XbarInterface,
AddInterface = {65e8773d-8f56-11d0-a3b9-00a0c9223196}, {9B365890-165F-11D0-A195-0020AFD156E4}, AVer_VideoCaptureInterface,
;DVB-T Tuner and Capture filter
AddInterface = {71985F48-1CA1-11d3-9CC8-00C04F7971E0}, {21558E19-D336-49ca-BE62-8B7E5BA45B8B}, AVer_BdaTunerInterface,
AddInterface = {FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}, {4C837DE1-71FA-4ed5-A19E-5925E35B4BA8}, AVer_BdaCaptureInterface

[HYBRID_VISTA.NT.Interfaces]
AddInterface = {a799a800-a46d-11d0-a18c-00a02401dcd4}, {445FCB45-78A6-4fb1-A988-D9CC1E5AC909}, AVer_TvTunerInterface,
AddInterface = {a799a802-a46d-11d0-a18c-00a02401dcd4}, {F239CF92-FFEF-4556-B0F9-C7321B633480}, AVer_TvAudioInterface,
AddInterface = {a799a801-a46d-11d0-a18c-00a02401dcd4}, {FEB5C989-C7BD-46e6-ACF8-927C245BD623}, AVer_XbarInterface,
AddInterface = {65e8773d-8f56-11d0-a3b9-00a0c9223196}, {9B365890-165F-11D0-A195-0020AFD156E4}, AVer_VideoCaptureInterface,
;DVB-T Tuner and Capture filter
AddInterface = {71985F48-1CA1-11d3-9CC8-00C04F7971E0}, {21558E19-D336-49ca-BE62-8B7E5BA45B8B}, AVer_BdaTunerInterface,
AddInterface = {FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}, {4C837DE1-71FA-4ed5-A19E-5925E35B4BA8}, AVer_BdaCaptureInterface


;
; Analog Interface
;
[AVer_TvTunerInterface]
AddReg = AVer_TvTunerInterface.AddReg

[AVer_TvTunerInterface.AddReg]
HKR,,CLSID,,%CLSID_CTVTunerFilter%
HKR,,FriendlyName,,%HybridTunerFriendlyName%
;add tunerInstanceID entry
HKR,,TunerInstanceID,0x00010001,10

[AVer_TvAudioInterface]
AddReg=AVer_TvAudioInterface.AddReg

[AVer_TvAudioInterface.AddReg]
HKR,,CLSID,,%CLSID_TVAudioFilter%
HKR,,FriendlyName,,%HybridTVAudioFriendlyName%

[AVer_XbarInterface]
AddReg=AVer_XbarInterface.AddReg

[AVer_XbarInterface.AddReg]
HKR,,CLSID,,%CLSID_CrossbarFilter%
HKR,,FriendlyName,,%HybridXBARFriendlyName%

[AVer_VideoCaptureInterface]
AddReg=AVer_VideoCaptureInterface.AddReg

[AVer_VideoCaptureInterface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%HybridVIDFriendlyName%


;
; Digital interface
;
[AVer_BdaTunerInterface]
AddReg = AVer_BdaTunerInterface.AddReg

[AVer_BdaTunerInterface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%BdaTunerFriendlyName%
;add tunerInstanceID entry
HKR,,TunerInstanceID,0x00010001,10

[AVer_BdaCaptureInterface]
AddReg = AVer_BdaCaptureInterface.AddReg

[AVer_BdaCaptureInterface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%TSFriendlyName%


;
; Services installation
;

[HYBRID.Services]
AddService = AVerFx2hbtv64,2,HybridVID.ServiceInstall

[HYBRID.NT.Services]
AddService = AVerFx2hbtv64,2,HybridVID.ServiceInstall

[HYBRID_VISTA.NT.Services]
AddService = AVerFx2hbtv64,2,HybridVID.ServiceInstall


[HybridVID.ServiceInstall]
DisplayName   = %AVerHybrid.ServiceName%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\AVerFx2hbtv64.sys

;---------------------------------------------------------------
;                S t r i n g s
;---------------------------------------------------------------

[Strings]

;
; Device Names
;
AVerHybrid.DeviceDesc01                = "AVerMedia A816 USB Hybrid DVB-S"
AVerHybrid.ServiceName                 = "AVerMedia USB SW Hybrid Tuner"
;
; Friendly Names
;
HybridVIDFriendlyName              = "AVerMedia USBSW TV Video Capture"
HybridTVAudioFriendlyName          = "AVerMedia USBSW TV Audio"
HybridTunerFriendlyName            = "AVerMedia USBSW TV Tuner"
HybridAudioFriendlyName            = "AVerMedia USBSW TV Audio Capture"
HybridXBARFriendlyName             = "AVerMedia USBSW TV Crossbar"
BdaTunerFriendlyName               = "AVerMedia BDA DVBS Tuner"
TSFriendlyName                     = "AVerMedia BDA Digital Capture"

;
; Pin Name GUIDS
;
PINNAME_ANALOG_AUDIO_IN = "{77990C6E-86E2-4ba2-9DC2-E04FD37FF427}"
PINNAME_AUDIO_OUT       = "{D4CA64B2-8AB7-474d-946A-123CE5B2E08A}"

;
; Pin Names
;
PinName.AnalogAudioOut            = "Audio Out"
Pin.p2AnalogAudioIn               = "Audio In"

;
; Other Strings
;

CLSID_TVAudioFilter          = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
CLSID_CrossbarFilter         = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
CLSID_CTVTunerFilter         = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"


Proxy.CLSID                  = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

MediaCategories              = "SYSTEM\CurrentControlSet\Control\MediaCategories"
MediaSets                    = "System\CurrentControlSet\Control\MediaSets"
MediaInterfaces              = "System\CurrentControlSet\Control\MediaInterfaces"



; Specify the GUID for the digital tuner Filter.
;
; NOTE!  This must match the reference guid specified in the driver's filter
;        descriptor.
;
KSSTRING_BdaHybridSWDVBSTunerFilter="{21558E19-D336-49ca-BE62-8B7E5BA45B8B}"
;
; Specify the GUID for the tuner device's SW PnP ID
;
BdaSWTuner.DeviceId =   "{828B00F0-9A04-4692-8573-535B05DFF3F4}"

TSPinID             =   "{5237C937-0A21-4f7e-B338-DE0D0793D03F}"
TSPinName           =   "TransportStream"

; Our strings

AVerMedia                    = "AVerMedia TECHNOLOGIES, Inc."
ProviderName                 = "AVerMedia TECHNOLOGIES, Inc."
