; Copyright (c) AVerMedia TECHNOLOGIES, Inc.  All rights reserved.
; Installation inf file for AVerMedia Video Capture Device


[Version]
signature="$Chicago$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%AVerMedia%
;LayoutFile=layout.inf,layout1.inf
DriverVer=10/08/2009,1.3.0.83
CatalogFile = USBAVCap.cat

;Modified by Rex 2006-10-27 for M038/M039/HC80/A868/E509
;h001 Implement TunerInstanceID
[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
USBAVCap.CopyFiles=10,system32\drivers

[Manufacturer]
%AVerMedia%=DeviceList

[DeviceList]
%DeviceDescription_M038%		=USBAVCap,USB\Vid_07ca&Pid_1228
%DeviceDescription_E509%		=USBAVCap,USB\Vid_07ca&Pid_e509
%DeviceDescription_M039%		=USBAVCap,USB\Vid_07ca&Pid_0039
%DeviceDescription_M039_ATSC%		=USBAVCap,USB\Vid_07ca&Pid_1039
%DeviceDescription_M039_DVBT%		=USBAVCap,USB\Vid_07ca&Pid_2039
%DeviceDescription_HC80%		=USBAVCap,USB\Vid_07ca&Pid_0c80
%DeviceDescription_A868%		=USBAVCap,USB\Vid_07ca&Pid_a868

;-------------------------------------------------------------------------------
;Device dependent section begin:

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


[USBAVCap]
Include=ks.inf,kscaptur.inf,dshowext.inf,bda.inf,wdmaudio.inf
Needs=KS.Registration,KSCAPTUR.Registration,DSHOWEXT.Registration,BDA.Installation,BDA.Registration
CopyFiles=USBAVCap.CopyFiles,DSFilters.CopyFiles
RegisterDlls=DSFilters.RegDLL
AddReg=USBAVCap.AddReg

[USBAVCap.NT]
Include=ks.inf,kscaptur.inf,dshowext.inf,bda.inf,wdmaudio.inf
Needs=KS.Registration.NT,KSCAPTUR.Registration.NT,DSHOWEXT.Registration.NT,BDA.Installation.NT,BDA.Registration.NT
CopyFiles=USBAVCap.CopyFiles,DSFilters.CopyFiles
RegisterDlls=DSFilters.RegDLL
AddReg=USBAVCap.AddReg

;-------------------------------------------------------------------------------
;Shared

[USBAVCap.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,USBAVCap.sys

HKLM,SYSTEM\CurrentControlSet\Services\AVerMedia\Parameters\USB\SHARE,MakoVolRF,0x00010001,0x28
HKLM,SYSTEM\CurrentControlSet\Services\AVerMedia\Parameters\USB\SHARE,MakoVolEx,0x00010001,0x17

[USBAVCap.CopyFiles]
USBAVCap.sys

[DSFilters.CopyFiles]
MVDetect.ax
AVTVRate.dll

[DSFilters.RegDLL]
11,,MVDetect.ax,1
11,,AVTVRate.dll,1

[SourceDisksNames]
1=%DriverDescription%,,,

[SourceDisksFiles]
USBAVCap.sys=1
MVDetect.ax=1
AVTVRate.dll=1

;-------------------------------------------------------------------------------
;For Other devices

[USBAVCap.NT.Services]
AddService=USBAVCap,0x00000002,USBAVCap.ServiceInstall

;-------------------------------------------------------------------------------
;Shared

[USBAVCap.ServiceInstall]
DisplayName=%USBAVCap.FriendlyName%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%10%\system32\drivers\USBAVCap.sys
LoadOrderGroup=ExtendedBase

;-------------------------------------------------------------------------------
;For Other devices

[USBAVCap.Interfaces]
AddInterface=%KSCATEGORY_TVTUNER%,%AnalogCaptureFilter%,USBAVCap.AnalogTVTuner.Interface
;h001+s
AddInterface=%KSCATEGORY_TVTUNER%,%AnalogCaptureFilter%,USBAVCap.AnalogTVTuner.NTSC_Interface
;h001+e
AddInterface=%KSCATEGORY_TVAUDIO%,%AnalogCaptureFilter%,USBAVCap.AnalogTVAudio.Interface
AddInterface=%KSCATEGORY_CROSSBAR%,%AnalogCaptureFilter%,USBAVCap.AnalogCrossbar.Interface
AddInterface=%KSCATEGORY_CAPTURE%,%AnalogCaptureFilter%,USBAVCap.AnalogCapture.Interface
AddInterface=%KSCATEGORY_ENCODER%,%AnalogEncoderFilter%,USBAVCap.AnalogEncoder.Interface
AddInterface=%KSCATEGORY_MULTIPLEXER%,%AnalogEncoderFilter%,USBAVCap.AnalogEncoder.Interface
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalDVBTTunerFilter%,USBAVCap.DigitalTuner.Interface
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalATSCTunerFilter%,USBAVCap.DigitalTuner.Interface
;h001+s
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalATSCTunerFilter%,USBAVCap.DigitalTuner.BDATUNE_Interface
;h001+e
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%DigitalCaptureFilter%,USBAVCap.DigitalCapture.Interface

[USBAVCap.NT.Interfaces]
AddInterface=%KSCATEGORY_TVTUNER%,%AnalogCaptureFilter%,USBAVCap.AnalogTVTuner.Interface
;h001+s
AddInterface=%KSCATEGORY_TVTUNER%,%AnalogCaptureFilter%,USBAVCap.AnalogTVTuner.NTSC_Interface
;h001+e
AddInterface=%KSCATEGORY_TVAUDIO%,%AnalogCaptureFilter%,USBAVCap.AnalogTVAudio.Interface
AddInterface=%KSCATEGORY_CROSSBAR%,%AnalogCaptureFilter%,USBAVCap.AnalogCrossbar.Interface
AddInterface=%KSCATEGORY_CAPTURE%,%AnalogCaptureFilter%,USBAVCap.AnalogCapture.Interface
AddInterface=%KSCATEGORY_ENCODER%,%AnalogEncoderFilter%,USBAVCap.AnalogEncoder.Interface
AddInterface=%KSCATEGORY_MULTIPLEXER%,%AnalogEncoderFilter%,USBAVCap.AnalogEncoder.Interface
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalDVBTTunerFilter%,USBAVCap.DigitalTuner.Interface
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalATSCTunerFilter%,USBAVCap.DigitalTuner.Interface
;h001+s
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%DigitalATSCTunerFilter%,USBAVCap.DigitalTuner.BDATUNE_Interface
;h001+e
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%DigitalCaptureFilter%,USBAVCap.DigitalCapture.Interface

[USBAVCap.AnalogTVTuner.Interface]
AddReg=USBAVCap.AnalogTVTuner.AddReg
;h001+s
[USBAVCap.AnalogTVTuner.NTSC_Interface]
AddReg=USBAVCap.AnalogTVTuner.NTSC_Interface.AddReg
;h001+e

[USBAVCap.AnalogTVAudio.Interface]
AddReg=USBAVCap.AnalogTVAudio.AddReg

[USBAVCap.AnalogCrossbar.Interface]
AddReg=USBAVCap.AnalogCrossbar.AddReg
         
[USBAVCap.AnalogCapture.Interface]
AddReg=USBAVCap.AnalogCapture.AddReg

[USBAVCap.AnalogEncoder.Interface]
AddReg=USBAVCap.AnalogEncoder.AddReg

[USBAVCap.DigitalTuner.Interface]
AddReg=USBAVCap.DigitalTuner.AddReg

;h001+s
[USBAVCap.DigitalTuner.BDATUNE_Interface]
AddReg=USBAVCap.DigitalTuner.BDATUNE_Interface.AddReg
;h001+e
[USBAVCap.DigitalCapture.Interface]
AddReg=USBAVCap.DigitalCapture.AddReg

[USBAVCap.AnalogTVTuner.AddReg]
HKR,,CLSID,,%ProxyAnalogTVTuner.CLSID%
HKR,,FriendlyName,,%AnalogTVTuner%
;h001+s
[USBAVCap.AnalogTVTuner.NTSC_Interface.AddReg]
HKR,,CLSID,,%ProxyAnalogTVTuner.CLSID%
HKR,,FriendlyName,,%AnalogTVTuner%
;add tunerInstanceID entry
HKR,,TunerInstanceID,0x00010001,10
;h001+e

[USBAVCap.AnalogTVAudio.AddReg]
HKR,,CLSID,,%ProxyAnalogTVAudio.CLSID%
HKR,,FriendlyName,,%AnalogTVAudio%

[USBAVCap.AnalogCrossbar.AddReg]
HKR,,CLSID,,%ProxyAnalogCrossbar.CLSID%
HKR,,FriendlyName,,%AnalogCrossbar%

[USBAVCap.AnalogCapture.AddReg]
HKR,,CLSID,,%ProxyAnalogCapture.CLSID%
HKR,,FriendlyName,,%AnalogCapture%

[USBAVCap.AnalogEncoder.AddReg]
HKR,,CLSID,,%ProxyAnalogEncoder.CLSID%
HKR,,FriendlyName,,%AnalogEncoder%
HKR,Interfaces\{B43C4EEC-8C32-4791-9102-508ADA5EE8E7},,,
HKR,Interfaces\{b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c},,,
HKR,Capabilities,,,
HKR,Capabilities,"{BB4FAA02-596C-4129-8FB3-74E75421FA02}",0x00010001,1
HKR,,Merit,1,00,00,40,00
 
HKCR,%ActiveMovieCategories%\%GUID.Encoder%,CLSID,,%GUID.Encoder%
HKCR,%ActiveMovieCategories%\%GUID.Encoder%,FriendlyName,,%Category_Encoders%
HKCR,%ActiveMovieCategories%\%GUID.Multiplexer%,CLSID,,%GUID.Multiplexer%
HKCR,%ActiveMovieCategories%\%GUID.Multiplexer%,FriendlyName,,%Category_Multiplexers%

HKLM,%MediaCategories%\%GUID.Encoder%,Name,,%Node.Encoder%
HKLM,%MediaCategories%\%GUID.Encoder%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%GUID.Multiplexer%,Name,,%Node.Multiplexer%
HKLM,%MediaCategories%\%GUID.Multiplexer%,Display,1,00,00,00,00

HKLM,%MediaInterfaces%\{0A7AF963-6805-4f99-B284-29B680975542},,,"Copy Protect Notification Filter"
HKLM,%MediaInterfaces%\{0A7AF963-6805-4f99-B284-29B680975542},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[USBAVCap.DigitalTuner.AddReg]
HKR,,CLSID,,%ProxyDigitalCapture.CLSID%
HKR,,FriendlyName,,%DigitalTuner%
;h001+s
[USBAVCap.DigitalTuner.BDATUNE_Interface.AddReg]
HKR,,CLSID,,%ProxyDigitalCapture.CLSID%
HKR,,FriendlyName,,%DigitalTuner%
HKR,,TunerInstanceID,0x00010001,10
;h001+e

[USBAVCap.DigitalCapture.AddReg]
HKR,,CLSID,,%ProxyDigitalCapture.CLSID%
HKR,,FriendlyName,,%DigitalCapture%

;-------------------------------------------------------------------------------
;Multi Language Strings

[Strings]
; non-localizeable
AnalogCaptureFilter="{9B365890-165F-11D0-A195-0020AFD156E4}"
AnalogEncoderFilter="{9B365891-165F-11D0-A195-0020AFD156E4}"
DigitalDVBTTunerFilter="{8613A4CA-EB2F-41CE-804A-41DE61871B3E}"
DigitalATSCTunerFilter="{7CF9956A-DF4A-441F-8F8A-A1D7B66AB59F}"
DigitalCaptureFilter="{E77E0BB8-F473-40EC-8152-E95308BD1DED}"

ProxyAnalogTVTuner.CLSID="{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
ProxyAnalogTVAudio.CLSID="{71F96462-78F3-11d0-A18C-00A0C9118956}"
ProxyAnalogCrossbar.CLSID="{71F96460-78F3-11d0-A18C-00A0C9118956}"
ProxyAnalogCapture.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
ProxyAnalogEncoder.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
ProxyDigitalCapture.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

ActiveMovieCategories="CLSID\{da4e3da0-d07d-11d0-bd50-00a0c911ce86}\Instance"
GUID.Encoder="{19689BF6-C384-48fd-AD51-90E58C79F70B}"
GUID.Multiplexer="{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"

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

KSCATEGORY_TVTUNER="{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVAUDIO="{a799a802-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_CROSSBAR="{a799a801-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_ENCODER="{19689BF6-C384-48fd-AD51-90E58C79F70B}"
KSCATEGORY_MULTIPLEXER="{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"
KSCATEGORY_BDA_NETWORK_TUNER="{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSCATEGORY_BDA_RECEIVER_COMPONENT="{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"

Category_Encoders="WDM Streaming Encoder Devices"
Category_Multiplexers="WDM Streaming Multiplexer Devices"
Node.Encoder="Encoder"
Node.Multiplexer="Multiplexer"

SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
;REG_EXPAND_SZ=0x00020000
;REG_DWORD=0x00010001

;localizeable
AVerMedia="AVerMedia TECHNOLOGIES, Inc."
DriverDescription="AVerMedia USB Video Capture Family Driver (A868/E509/E882/HC80/M038/M039)"

DeviceDescription_M038		="AVerMedia USB MPEG-2 Capture Device (M038)"
DeviceDescription_E509		="AVerMedia E509 ExpressCard Analog Tuner"
DeviceDescription_M039		="AVerMedia USB TV Tuner Device"
DeviceDescription_M039_ATSC	="AVerMedia M039 USB Hybrid ATSC"
DeviceDescription_M039_DVBT	="AVerMedia M039 USB Hybrid DVB-T"
DeviceDescription_HC80		="AVerMedia HC80 ExpressCard Hybrid ATSC"
DeviceDescription_A868		="AVerMedia A868 USB ATSC"

USBAVCap.FriendlyName="AVerMedia USB TV Tuner Device"
AnalogTVTuner="AVerMedia USB Analog TVTuner"
AnalogTVAudio="AVerMedia USB Analog TVAudio"
AnalogCrossbar="AVerMedia USB Analog Crossbar"
AnalogCapture="AVerMedia USB Analog Capture"
AnalogEncoder="AVerMedia USB Analog Encoder"
DigitalTuner="AVerMedia USB Digital Tuner"
DigitalCapture="AVerMedia USB Digital Capture"


