;-------------------------------------------------------------------------------
; Copyright (c) AVerMedia All rights reserved.
;
; Installation inf file for AVerMedia USB3.0 HD Capture series
;-------------------------------------------------------------------------------

[Version]
signature   ="$CHICAGO$"
Class       =Media
ClassGUID   ={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    =%ProviderName%
DriverVer   =05/21/2014,1.0.0.33
CatalogFile =avmu3.cat

[Manufacturer]
%ProviderName% = AVerMedia

[SourceDisksNames]
1="AVerMedia USB3 Drivers",,,""

[SourceDisksFiles]
avmu3.sys = 1
MVDetection.ax = 1
TVRate.dll = 1
aver_custom_hdcp_protection.bmp=1
aver_custom_no_signal.bmp=1
aver_custom_out_of_range.bmp=1
aver_custom_content_protection.bmp=1
PropPage_CV710.ax = 1

[AVerMedia]
%AVMUSB3.DeviceDesc% = USB3INST, USB\VID_07CA&PID_c877
%AVMUSB3.DeviceDesc% = USB3INST, USB\VID_07CA&PID_0710

[USB3INST]
Include      = ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration, WDMAUDIO.Registration, BDA.Registration, bda.Installation
AddReg       = USB3MAIN.AddReg, USB3ANALOG.AddReg
CopyFiles    = AVMUSB3.CopyDrivers, DSFilters.CopyFiles
RegisterDlls = DSFilters.RegDLL    

[USB3INST.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       = USB3MAIN.AddReg, USB3ANALOG.AddReg
CopyFiles    = AVMUSB3.CopyDrivers, DSFilters.CopyFiles
RegisterDlls = DSFilters.RegDLL    


[DestinationDirs]
AVMUSB3.CopyDrivers = 10,system32\drivers
DSFilters.CopyFiles    = 11

[AVMUSB3.CopyDrivers]
avmu3.sys
aver_custom_hdcp_protection.bmp
aver_custom_no_signal.bmp
aver_custom_out_of_range.bmp
aver_custom_content_protection.bmp

[DSFilters.CopyFiles]
MVDetection.ax
PropPage_CV710.ax
TVRate.dll

[DSFilters.RegDLL]
11,,MVDetection.ax,1
11,,PropPage_CV710.ax,1
11,,TVRate.dll,1

[USB3MAIN.AddReg]
HKLM,%MediaCategories%\%PINNAME_ANALOG_AUDIO_IN%,Name,,%PinName.AudioIn%
HKLM,%MediaCategories%\%PINNAME_AUDIO_OUT%,Name,,%PinName.AudioOut%
HKLM,%MediaCategories%\%PINNAME_AUDIO_CAP_AUDIO_IN%,Name,,%PinName.AudioCapAudioIn%

HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,avmu3.sys

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

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

; Device support mode for create filter
; b0 - ATV
; b1 - Video Capture
; b2 - DVB-T
; b3 - ATSC
HKR,"DriverData","DeviceSupportedMode",  0x00010001, 0x02, 0x00, 0x00, 0x00

HKR,"DriverData","DrvProcType",          0x00010001, 0x03, 0x00, 0x00, 0x00

;define I2C bus 
HKR,"DriverData","GpioI2CEnable",       0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","GpioI2CEnable",       0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","DecoderGpioI2c",      0x00010001, 0x00, 0x00, 0x00, 0x00
;
;HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,VGA,0x00010001,0x00000000
;0: RGB24, 1: YUV422, 2:YUV444
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,LTCS,0x00010001,0x0000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,ENABLE_SCALER,0x00010001,0x0000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,GPIO_RESET_FPGA,0x00010001,0x0000000
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,AVIDecompFilter,0x00010001,0x00000001
;RXINDEX 0:6604/7002 1:7604 2:both
;HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,BOARDINDEX,0x00010001,0x00000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,AUDIO_ENDIAN,0x00010001,0x00000000
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,ENABLE_PS,0x00010001,0x00000000
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,VIDEO_IN_QUEUE,0x00010001,0x00000030
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,AUDIO_IN_QUEUE,0x00010001,0x00000019
;StreamingMode 0: default 1:put StreamPtr in Queue
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,STREAMINGMODE,0x00010001,0x00000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,COLOR_ADJ_EN,0x00010001,0x00000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,POWER_DOWN_LEVEL,0x00010001,0x00000001
;0: disable, 1: enable, 2: user control
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,SCALER_OP_MODE,0x00010001,0x00000002
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,ENABLE_AUDIO_CAP,0x00010001,0x00000000
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,STRHEADER_FLAG,0x00010001,0x00000001
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,LATENCY,0x00010001,0x0053EC60
HKLM,System\CurrentControlSet\SERVICES\AVMU3\Parameters\C877,ENABLE_SMART_VIDEO_CAP,0x00010001,0x00000000
;RXINDEX 0:6604/7002 1:7604 2:both
HKR,"DriverData","BoardIndex",			0x00010001, 0x01, 0x00, 0x00, 0x00
;----------------------------------------------------------------------------
;                 Add the Property Pages
;----------------------------------------------------------------------------
HKLM,%MediaSets%\%KSPROPSETID_XTREMECAP_CROSSBAR_PAGE%\PropertyPages\%GUID.Crossbar_Properties%,,,

[USB3ANALOG.AddReg]


;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

;For TV standard detection, 1-Enable, 0-Disable
;HKR,"DriverData","StandardDetectEnable", 0x00010001, 0x00, 0x00, 0x00, 0x00
;For Sync, 1-Enable, 0-Disable
;HKR,"DriverData","SyncEnable",           0x00010001, 0x01, 0x00, 0x00, 0x00

;HDMI input is default 0:HDMI, 1:CMP
HKR,"DriverData","VideoInputPin",        0x00010001, 0x00, 0x00, 0x00, 0x00


;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

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

;HKR,"DriverData","DisableTuner",         0x00010001, 0x01, 0x00, 0x00, 0x00
;HKR,"DriverData","DecoderVideoStandard", 0x00010001, 0x00, 0x01, 0x00, 0x00

;Color and Volume
HKR,"DriverData","HDMI_Brightness",	 	 0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","HDMI_Contrast",        0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","HDMI_Hue",        	 0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","HDMI_Saturation",      0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","CMP_Brightness",	 	 0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CMP_Contrast",         0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","CMP_Hue",        	 	 0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","CMP_Saturation",       0x00010001, 0x80, 0x00, 0x00, 0x00
HKR,"DriverData","ColorRange",       	 0x00010001, 0x02, 0x00, 0x00, 0x00

HKR,"DriverData","TVol",                 0x00010001, 0x05, 0x00, 0x00, 0x00
HKR,"DriverData","FVol",                 0x00010001, 0x05, 0x00, 0x00, 0x00
HKR,"DriverData","LVol",                 0x00010001, 0x05, 0x00, 0x00, 0x00
HKR,"DriverData","Mute",                 0x00010001, 0x00, 0x00, 0x00, 0x00
;Scaler
HKR,"DriverData","UserEnableScaler",     0x00010001, 0x00, 0x00, 0x00, 0x00
;------------------------------
;
; Interfaces installation
;

;
; Video
;

[USB3INST.Interfaces]
AddInterface = {a799a801-a46d-11d0-a18c-00a02401dcd4}, {FEB5C989-C7BD-46e6-ACF8-927C245BD623}, AVer_XbarInterface,0
AddInterface = {65e8773d-8f56-11d0-a3b9-00a0c9223196}, {55F1B730-0079-47c5-A10E-BBF3F294B9EF}, AVer_VideoCaptureInterface,0
AddInterface = {6994AD05-93EF-11D0-A3CC-00A0C9223196}, {55F1B730-0079-47c5-A10E-BBF3F294B9EF}, AVer_VideoCaptureInterface,0

[USB3INST.NT.Interfaces]
AddInterface = {a799a801-a46d-11d0-a18c-00a02401dcd4}, {FEB5C989-C7BD-46e6-ACF8-927C245BD623}, AVer_XbarInterface,0
AddInterface = {65e8773d-8f56-11d0-a3b9-00a0c9223196}, {55F1B730-0079-47c5-A10E-BBF3F294B9EF}, AVer_VideoCaptureInterface,0
AddInterface = {6994AD05-93EF-11D0-A3CC-00A0C9223196}, {55F1B730-0079-47c5-A10E-BBF3F294B9EF}, AVer_VideoCaptureInterface,0
;
; Analog Interface
;


[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%


;
; Services installation
;

[USB3INST.Services]
AddService = AVMU3HC,2,HybridVID.ServiceInstall

[USB3INST.NT.Services]
AddService = AVMU3HC,2,HybridVID.ServiceInstall


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

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

[Strings]
; Property page GUIDS
;
GUID.Crossbar_Properties		= "{74A4F328-BF9F-4adb-AFC3-2A432AC6CAD0}"

; PROPSETIDs in the driver
;
KSPROPSETID_XTREMECAP_CROSSBAR_PAGE = "{4A55148D-2082-4202-99C7-4A7C7B6694B6}"

;
; Device Names
;
AVMUSB3.DeviceDesc                = "AVerMedia ExtremeCap U3"
AVMUSB3.ServiceName                = "AVerMedia ExtremeCap U3"
;
; Friendly Names
;
;
HybridVIDFriendlyName              = "AVerMedia U3 Video Capture"
HybridAudioFriendlyName            = "AVerMedia U3 Audio Capture"
HybridXBARFriendlyName             = "AVerMedia U3 Crossbar"




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

;
; Pin Names
;
PinName.AudioOut            = "Audio Out"
PinName.AudioIn               = "Audio In"
PinName.AudioCapAudioIn       = "AVerMedia Ain"

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


; Our strings

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