; 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           =07/17/2012,2.1.64.159
CatalogFile.NTamd64 =AVerFx2hbtv64.cat

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

[SourceDisksNames]
1=%AVerDVBS2.DiskName%,,,""

[SourceDisksFiles]
AVerFx2hbtv64.sys = 1


[AVerMedia.NTamd64]
%AVerDVBS2.DeviceDesc01% = HYBRID,  USB\VID_07ca&PID_0889

[AVerMedia.NTamd64.6]
%AVerDVBS2.DeviceDesc01% = HYBRID_VISTA,  USB\VID_07ca&PID_0889

[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, NUC100.AddReg, MCEIRXP.AddReg
CopyFiles    = AVerDVBS2.CopyDrivers
   

; 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, NUC100.AddReg, MCEIRVista.AddReg
CopyFiles    = AVerDVBS2.CopyDrivers

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


[DestinationDirs]
AVerDVBS2.CopyDrivers = 10,system32\drivers

[AVerDVBS2.CopyDrivers]
AVerFx2hbtv64.sys

[MCEIR.CopyCoInst]

[MCEIR.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010008,"CIRCoInst.dll,IRCoInstaller"

[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

HKR,"DriverData","DeviceSupportedMode",	0x00010001, 0x10, 0x00, 0x00, 0x00
HKR,"DriverData","DrvProcType",		0x00010001, 0x0c, 0x00, 0x00, 0x00

;define I2C bus 
HKR,"DriverData","GpioI2CEnable",       0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TunerGpioI2c",        0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","DemodGpioI2c",        0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","LnbGpioI2c",          0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","CicaGpioI2c",         0x00010001, 0x01, 0x00, 0x00, 0x00
; n239_01
HKR,"DriverData","XPWWEnable",          0x00010001, 0x01, 0x00, 0x00, 0x00

; n245
HKR,"DriverData","IREnable",             0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","DelayPowerDownSec",    0x00010001, 0x14, 0x00, 0x00, 0x00
HKR,"DriverData","PSEnable",             0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","SSEnable",             0x00010001, 0x00, 0x00, 0x00, 0x00

; f553
HKR,"DriverData","Factory",             0x00010001, 0x00, 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%

[NUC100.AddReg]
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_VER1,	0x00010001, 0x01, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_VER2,	0x00010001, 0x00, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_VER3,	0x00010001, 0x00, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_VER4,	0x00010001, 0x00, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_BUILD_YEAR,	0x00010001, 0x0A, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_BUILD_MON,	0x00010001, 0x0C, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_BUILD_DAY,	0x00010001, 0x0A, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,FW_BUILD_HOUR,	0x00010001, 0x11, 0x00, 0x00, 0x00
HKLM,System\CurrentControlSet\SERVICES\NUC100\Parameters,UPDATE,	0x00010001, 0x00, 0x00, 0x00, 0x00

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

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

;
; Interfaces installation
;

;
; Video
;

[HYBRID.NT.Interfaces]
;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]
;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


;
; 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.NT.Services]
AddService = AVerFx2hbtv64,2,HybridVID.ServiceInstall

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


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

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

[Strings]

;
; Device Names
;
AVerDVBS2.DiskName                    = "AVerMedia USB DVB-S2 Drivers"
AVerDVBS2.DeviceDesc01                = "AVerMedia R889 USB DVB-S2"
AVerDVBS2.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 Audio Capture"
HybridXBARFriendlyName             = "AVerMedia USBSW TV Crossbar"
BdaTunerFriendlyName               = "AVerMedia BDA DVBS Tuner"
TSFriendlyName                     = "AVerMedia BDA TS 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."
