; 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           =11/10/2010,2.1.64.129
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


HKR,"DriverData","bFixPos",       0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","dwBoard",       0x00010001, 0x01, 0x00, 0x00, 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."
