;-----------------------------------------------------
; Installation file (.inf)
;
; Copyright (c) AVerMedia TECHNOLOGIES, Inc.
;
;-----------------------------------------------------


[Version]
signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%ProviderName%
DriverVer=11/10/2010,1.1.64.56
CatalogFile=AVerAVF2.cat


[Manufacturer]
%AVerMedia%=AVerMedia,NTamd64


[DestinationDirs]
AVerAVF2.CopyDrivers=10,system32\drivers
AVerFilters.CopyFiles=11				;2007-08-03


[ControlFlags]
ExcludeFromSelect=*


[SourceDisksNames]
1=%AVerAVF2.Disk%,,,


[SourceDisksFiles]
AVerAVF2.sys=1
MVDetection64.ax=1						;2007-08-03



[AVerMedia.NTamd64]
%AVerAVF2.DeviceDesc%=AVerAVF2,PCI\VEN_1033&DEV_0165&SUBSYS_652C1461	;H323 DVB-T Hybrid with AV in
%AVerAVF2.DeviceDesc%=AVerAVF2,PCI\VEN_1033&DEV_0163&SUBSYS_652C1461	;H323 DVB-T Hybrid with AV in


[AVerAVF2.NT]
Include=ks.inf,kscaptur.inf,bda.inf
Needs=KS.Registration,KSCAPTUR.Registration.NT,BDA.Registration.NT,bda.Installation.NT,bdacap.Installation.NT		;2007-07-06_01
AddReg=AVerAVF2.AddReg
CopyFiles=AVerAVF2.CopyDrivers,AVerFilters.CopyFiles	;2007-08-03
RegisterDlls=AVerFilters.RegDLL				;2007-08-03

[AVerAVF2.NT.HW]
Include=machine.inf
Needs=PciASPMOptOut


[AVerAVF2.CopyDrivers]
AVerAVF2.sys,,,2

;2007-08-03
[AVerFilters.CopyFiles]
MVDetection64.ax


;2007-08-03
[AVerFilters.RegDLL]
11,,MVDetection64.ax,1



[AVerAVF2.AddReg]

;----------------------------------------------------------------------
; Config\Filter
;	    bit   0 = Analog Capture 1
;                 1 = Analog Capture 2
;                 2 = Digital Capture 1
;                 3 = Digital Capture 2
;                 8 = DVB-T
;                 9 = DVB-C
;                10 = DVB-S
;                11 = ATSC
;                12 - 15  = ISDB-x ???
;                16 - 31  = Reserved for future standards (China)
;                                     or properity US cable standards
;                Note: BDA currently only supports DVB-x and ATSC
;
; Config\Model
;		0 : NONE
;		1 : A313
;		2 : A320
;		3 : A323S
;		4 : A323AT
;		5 : A323DT
;
;  CrossBar,CrossBar1,CrossBar2 : Crossbar configuration
;           byte 0 : Number of input pins
;           byte 1 : default video input pin (normally tuner)
;           byte 2 : default audio input pin (normally tuner)
;           byte 3 : reserved (set to 0)
;       For each pin follow four bytes :
;           byte n+0 : Pin type
;                        0 : Video Tuner
;                        1 : Video Composite
;                        2 : Video SVideo
;                        3 : Video Component (YCrCb,YRYBY)
;                        4 : Audio Tuner
;                        5 : Audio Line in
;                        6 : Audio SPDIF
;           byte n+1 : Input selection
;                      Video pins:
;                         bit 0..3 : Video input (1 = AY1/CVBS1, 2 = AY2/CVBS2, 3 = AY3/CVBS3)
;                         bit 4..7 : Chroma input (1 = AC1, 2 = AC2/SIF)
;                      Audio pins:
;                         0 = SIF (Tuner) input
;                         1..4 : Line input (1 = Audio_Input_CH0, 2 = Audio_Input_CH1)
;                         (not used for SPDIF, set to 0)
;           byte n+2 : related audio/video input pin
;           byte n+3 : reserved (set to 0)
;
; Config\DisablePowerSaving
;	0: Enable Power-Saving functionality
;	1: Disable Power-Saving functionality
;
; Config\EnableCopyProtect
;	bit 0: Enable CopyProtect for Macrovision
;	bit 1: Enable CopyProtect for CGMS-A
;-----------------------------------------------------------------------

HKR,"Config","Model",%REG_DWORD%,0x05
HKR,"Config","Filter",%REG_DWORD%,0x00000105
HKR,"Config","DisablePowerSaving",%REG_DWORD%,0x00
HKR,"Config","EnableCopyProtect",%REG_DWORD%,0x01

; Crossbar settings
;

; Default crossbar setting
HKR,"Config","CrossBar",1, 	05,00,03,00,\
                           	00,21,03,00,\	;pin 0: Video Tuner, AY1/CVBS1 + AC2/SIF
 		  		02,13,04,00,\	;pin 1: EXT-SVideo, AY3 + AC1
 		  		01,03,04,00,\   ;Pin 2: EXT-Composite, AY2 + NA
  				04,00,00,00,\	;pin 3: Audio-TV,
                           	05,01,FF,00	;pin 4: EXT-LineIn,

; Crossbar1 setting                            
HKR,"Config","CrossBar1",1, 	05,00,03,00,\
                            	00,21,03,00,\	;pin 0: Video Tuner, AY1/CVBS1 + AC2/SIF
 		  		02,13,04,00,\	;pin 1: EXT-SVideo, AY3 + AC1
 		  		01,03,04,00,\ 	;Pin 2: EXT-Composite, AY2 + NA
  				04,00,00,00,\	;pin 3: Audio-TV,
                            	05,01,FF,00	;pin 4: EXT-LineIn,

; Crossbar2 setting 
HKR,"Config","CrossBar2",1, 	05,00,03,00,\
                            	00,21,03,00,\	;pin 0: Video Tuner, AY1/CVBS1 + AC2/SIF
 		  		02,13,04,00,\	;pin 1: EXT-SVideo, AY3 + AC1
 		  		01,03,04,00,\ 	;Pin 2: EXT-Composite, AY2 + NA
  				04,00,00,00,\	;pin 3: Audio-TV,
                            	05,01,FF,00	;pin 4: EXT-LineIn,
                            
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%GUID.PINNAME_I2S_OUT%,"Name",,%PINNAME_I2S_OUT%
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%GUID.PINNAME_ITU_OUT%,"Name",,%PINNAME_ITU_OUT%
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%GUID.PINNAME_AUDIO_OUT%,"Name",,%PINNAME_AUDIO_OUT%
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%GUID.PINNAME_AUDIO_IN%,"Name",,%PINNAME_AUDIO_IN%
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%GUID.PINNAME_MPEG2_PS%,"Name",,%PINNAME_MPEG2_PS%

; 2007-08-03 --> MVDetection64.ax filter interface
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{7E5F8269-3B7E-48e8-A92B-AA5A3149248B},,,"AVerMedia Macrovision Detection Property"
HKLM,SYSTEM\CurrentControlSet\Control\MediaInterfaces\{7E5F8269-3B7E-48e8-A92B-AA5A3149248B},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[AVerAVF2.NT.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%, %KSSTRING_AVer_AnalogCaptureFilter1%, AVer.AnalogCapture.Filter1
AddInterface = %KSCATEGORY_CAPTURE%, %KSSTRING_AVer_AnalogCaptureFilter2%, AVer.AnalogCapture.Filter2
AddInterface = %KSCATEGORY_VIDEO%, %KSSTRING_AVer_AnalogCaptureFilter1%, AVer.AnalogCapture.Filter1
AddInterface = %KSCATEGORY_VIDEO%, %KSSTRING_AVer_AnalogCaptureFilter2%, AVer.AnalogCapture.Filter2
AddInterface = %KSCATEGORY_TVAUDIO%, %KSSTRING_AVer_TvAudioFilter1%, AVer.TvAudio.Filter1
AddInterface = %KSCATEGORY_TVAUDIO%, %KSSTRING_AVer_TvAudioFilter2%, AVer.TvAudio.Filter2
AddInterface = %KSCATEGORY_CROSSBAR%, %KSSTRING_AVer_CrossBarFilter1%, AVer.CrossBar.Filter1
AddInterface = %KSCATEGORY_CROSSBAR%, %KSSTRING_AVer_CrossBarFilter2%, AVer.CrossBar.Filter2
AddInterface = %KSCATEGORY_ENCODER%, %KSSTRING_AVer_EncoderFilter1%, AVer.Encoder.Filter1
AddInterface = %KSCATEGORY_ENCODER%, %KSSTRING_AVer_EncoderFilter2%, AVer.Encoder.Filter2
AddInterface = %KSCATEGORY_MULTIPLEXER%, %KSSTRING_AVer_EncoderFilter1%, AVer.Encoder.Filter1
AddInterface = %KSCATEGORY_MULTIPLEXER%, %KSSTRING_AVer_EncoderFilter2%, AVer.Encoder.Filter2
AddInterface = %KSCATEGORY_TVTUNER%, %KSSTRING_AVer_TvTunerFilter1%, AVer.AnalogTuner.Filter1
AddInterface = %KSCATEGORY_TVTUNER%, %KSSTRING_AVer_TvTunerFilter2%, AVer.AnalogTuner.Filter2
AddInterface = %KSCATEGORY_BDA_RECEIVER_COMPONENT%, %KSSTRING_AVer_DigitalCaptureFilter1%, AVer.DigitalCapture.Filter1
AddInterface = %KSCATEGORY_BDA_RECEIVER_COMPONENT%, %KSSTRING_AVer_DigitalCaptureFilter2%, AVer.DigitalCapture.Filter2
AddInterface = %KSCATEGORY_BDA_NETWORK_TUNER%, %KSSTRING_AVer_BdaDVBTTunerFilter1%, AVer.DVBTTuner.Filter1
AddInterface = %KSCATEGORY_BDA_NETWORK_TUNER%, %KSSTRING_AVer_BdaDVBTTunerFilter2%, AVer.DVBTTuner.Filter2
AddInterface = %KSCATEGORY_BDA_NETWORK_TUNER%, %KSSTRING_AVer_BdaATSCTunerFilter1%, AVer.ATSCTuner.Filter1
AddInterface = %KSCATEGORY_BDA_NETWORK_TUNER%, %KSSTRING_AVer_BdaATSCTunerFilter2%, AVer.ATSCTuner.Filter2

[AVer.AnalogCapture.Filter1]
AddReg=AVer.AnalogCapture.Filter1.AddReg

[AVer.AnalogCapture.Filter1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.AnalogCapture.Filter1Desc%

[AVer.AnalogCapture.Filter2]
AddReg=AVer.AnalogCapture.Filter2.AddReg

[AVer.AnalogCapture.Filter2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.AnalogCapture.Filter2Desc%

[AVer.TvAudio.Filter1]
AddReg=AVer.TvAudio.Filter1.AddReg

[AVer.TvAudio.Filter1.AddReg]
HKR,,CLSID,,%TVAudio.CLSID%
HKR,,FriendlyName,,%AVer.TvAudio.Filter1Desc%

[AVer.TvAudio.Filter2]
AddReg=AVer.TvAudio.Filter2.AddReg

[AVer.TvAudio.Filter2.AddReg]
HKR,,CLSID,,%TVAudio.CLSID%
HKR,,FriendlyName,,%AVer.TvAudio.Filter2Desc%

[AVer.CrossBar.Filter1]
AddReg=AVer.CrossBar.Filter1.AddReg

[AVer.CrossBar.Filter1.AddReg]
HKR,,CLSID,,%CrossBar.CLSID%
HKR,,FriendlyName,,%AVer.CrossBar.Filter1Desc%

[AVer.CrossBar.Filter2]
AddReg=AVer.CrossBar.Filter2.AddReg

[AVer.CrossBar.Filter2.AddReg]
HKR,,CLSID,,%CrossBar.CLSID%
HKR,,FriendlyName,,%AVer.CrossBar.Filter2Desc%

[AVer.Encoder.Filter1]
AddReg=AVer.Encoder.Filter1.AddReg

[AVer.Encoder.Filter1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.Encoder.Filter1Desc%
HKR,Interfaces\{B43C4EEC-8C32-4791-9102-508ADA5EE8E7},,,				; IVideoEncoder proxy plug-in
HKR,Interfaces\{7ff0997a-1999-4286-a73c-622b8814e7eb},,,				; ICodecAPI proxy plug-in
HKR,Interfaces\{b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c},,,				; ICodecAPI/IVideoEncoder proxy plug-in
HKR,Capabilities,"{BB4FAA02-596C-4129-8FB3-74E75421FA02}",0x00010001,1	; Dynamic data rate change notify

[AVer.Encoder.Filter2]
AddReg=AVer.Encoder.Filter2.AddReg

[AVer.Encoder.Filter2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.Encoder.Filter2Desc%
HKR,Interfaces\{B43C4EEC-8C32-4791-9102-508ADA5EE8E7},,,				; IVideoEncoder proxy plug-in
HKR,Interfaces\{7ff0997a-1999-4286-a73c-622b8814e7eb},,,				; ICodecAPI proxy plug-in
HKR,Interfaces\{b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c},,,				; ICodecAPI/IVideoEncoder proxy plug-in
HKR,Capabilities,"{BB4FAA02-596C-4129-8FB3-74E75421FA02}",0x00010001,1	; Dynamic data rate change notify

[AVer.AnalogTuner.Filter1]
AddReg=AVer.AnalogTuner.Filter1.AddReg

[AVer.AnalogTuner.Filter1.AddReg]
HKR,,CLSID,,%TvTuner.CLSID%
HKR,,FriendlyName,,%AVer.AnalogTuner.Filter1Desc%
HKR,,TunerInstanceID,0x00010001,10

[AVer.AnalogTuner.Filter2]
AddReg=AVer.AnalogTuner.Filter2.AddReg

[AVer.AnalogTuner.Filter2.AddReg]
HKR,,CLSID,,%TvTuner.CLSID%
HKR,,FriendlyName,,%AVer.AnalogTuner.Filter2Desc%
HKR,,TunerInstanceID,0x00010001,20

[AVer.DigitalCapture.Filter1]
AddReg=AVer.DigitalCapture.Filter1.AddReg

[AVer.DigitalCapture.Filter1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.DigitalCapture.Filter1Desc%

[AVer.DigitalCapture.Filter2]
AddReg=AVer.DigitalCapture.Filter2.AddReg

[AVer.DigitalCapture.Filter2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.DigitalCapture.Filter2Desc%

[AVer.DVBTTuner.Filter1]
AddReg=AVer.DVBTTuner.Filter1.AddReg

[AVer.DVBTTuner.Filter1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.DVBTTuner.Filter1Desc%
HKR,,TunerInstanceID,0x00010001,10

[AVer.DVBTTuner.Filter2]
AddReg=AVer.DVBTTuner.Filter2.AddReg

[AVer.DVBTTuner.Filter2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.DVBTTuner.Filter2Desc%
HKR,,TunerInstanceID,0x00010001,20

[AVer.ATSCTuner.Filter1]
AddReg=AVer.ATSCTuner.Filter1.AddReg

[AVer.ATSCTuner.Filter1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.ATSCTuner.Filter1Desc%

[AVer.ATSCTuner.Filter2]
AddReg=AVer.ATSCTuner.Filter2.AddReg

[AVer.ATSCTuner.Filter2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AVer.ATSCTuner.Filter2Desc%

[AVerAVF2.NT.Services]
AddService=AVerAVF2, 0x00000002, AVerAVF2.Service

[AVerAVF2.Service]
DisplayName=%ServiceName%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\AVerAVF2.sys

[Strings]
AVerAVF2.Disk 		="AVerMedia AVF2 Installation Disk"
RunOnce 		="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

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

AVerMedia		="AVerMedia TECHNOLOGIES, Inc."
AVerAVF2.DeviceDesc	="AVerMedia H323 MiniCard Hybrid DVB-T"
ProviderName 		="AVerMedia TECHNOLOGIES, Inc."
ServiceName		="AVerAVF2"
MediaCategories         ="SYSTEM\CurrentControlSet\Control\MediaCategories"
MediaSets               ="System\CurrentControlSet\Control\MediaSets"
ActiveMovieCategories   ="CLSID\{da4e3da0-d07d-11d0-bd50-00a0c911ce86}\Instance"

; PIN NAME & GUID
; -----------------------------------------------------------------------------------
GUID.PINNAME_I2S_OUT	="{49F5F621-E2A9-4DAF-85D7-DE9C74011A32}"
PINNAME_I2S_OUT		="I2S Audio"

GUID.PINNAME_ITU_OUT	="{49F5F620-E2A9-4DAF-85D7-DE9C74011A32}"
PINNAME_ITU_OUT		="ITU Video"

GUID.PINNAME_AUDIO_OUT	="{2745A79B-E8CA-11D8-A988-004030005452}"
PINNAME_AUDIO_OUT	="Audio"

GUID.PINNAME_AUDIO_IN	="{2745A79A-E8CA-11D8-A988-004030005452}"
PINNAME_AUDIO_IN	="Analog Audio In"

GUID.PINNAME_MPEG2_PS	="{49F5F622-E2A9-4DAF-85D7-DE9C74011A32}"
PINNAME_MPEG2_PS	="MPEG2 Program"
; -----------------------------------------------------------------------------------

KSSTRING_AVer_AnalogCaptureFilter1	="{D1D4C4E7-017B-4c2c-936E-1C31C095E293}"
KSSTRING_AVer_AnalogCaptureFilter2	="{D72C3A05-0DD3-4628-86E6-86E2E9130900}"
KSSTRING_AVer_TvAudioFilter1		="{CA85B721-F51B-48e7-AD95-6AA15F29CB74}"
KSSTRING_AVer_TvAudioFilter2		="{6D60884F-F7CA-4aef-B03F-69D40E9DD6EF}"
KSSTRING_AVer_CrossBarFilter1		="{923BC121-822A-4a40-8F00-78EA0870B22C}"
KSSTRING_AVer_CrossBarFilter2		="{6EDB8D1A-0EFD-48c6-B34E-5496BEF4F317}"
KSSTRING_AVer_EncoderFilter1		="{61E72E3D-07FD-41fa-A323-E23061D76C26}"
KSSTRING_AVer_EncoderFilter2		="{E6EFBE81-6CCD-4743-81C3-DA564F03B1F0}"
KSSTRING_AVer_TvTunerFilter1		="{B5209916-784B-4ab2-96CD-CB39F5B8A179}"
KSSTRING_AVer_TvTunerFilter2		="{11687CB3-30F9-4042-8A96-81342D3CCDEA}"

KSSTRING_AVer_DigitalCaptureFilter1	="{5ACAC48C-7E02-41ca-9024-5939808F4AEA}"
KSSTRING_AVer_DigitalCaptureFilter2	="{5ACAC48D-7E02-41ca-9024-5939808F4AEA}"
KSSTRING_AVer_BdaDVBTTunerFilter1	="{B2FF7849-2F71-4673-8480-E38F3609B0B3}"
KSSTRING_AVer_BdaDVBTTunerFilter2	="{B2FF784A-2F71-4673-8480-E38F3609B0B3}"
KSSTRING_AVer_BdaATSCTunerFilter1	="{B2FF784B-2F71-4673-8480-E38F3609B0B3}"
KSSTRING_AVer_BdaATSCTunerFilter2	="{B2FF784C-2F71-4673-8480-E38F3609B0B3}"

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

Proxy.CLSID    ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
CrossBar.CLSID ="{71F96460-78F3-11d0-A18C-00A0C9118956}"
TVAudio.CLSID  ="{71F96462-78F3-11d0-A18C-00A0C9118956}"
TvTuner.CLSID  ="{266EEE40-6C63-11cf-8A03-00AA006ECB65}"

AVer.AnalogCapture.Filter1Desc		="AVerMedia Capture"
AVer.AnalogCapture.Filter2Desc		="AVerMedia Capture"
AVer.TvAudio.Filter1Desc		="AVerMedia TVAudio"
AVer.TvAudio.Filter2Desc		="AVerMedia TVAudio"
AVer.CrossBar.Filter1Desc		="AVerMedia Crossbar"
AVer.CrossBar.Filter2Desc		="AVerMedia Crossbar"
AVer.Encoder.Filter1Desc		="AVerMedia Encoder"
AVer.Encoder.Filter2Desc		="AVerMedia Encoder"
AVer.AnalogTuner.Filter1Desc		="AVerMedia Tuner"
AVer.AnalogTuner.Filter2Desc		="AVerMedia Tuner"
AVer.DVBTTuner.Filter1Desc		="AVerMedia BDA DVB-T Tuner"
AVer.DVBTTuner.Filter2Desc		="AVerMedia BDA DVB-T Tuner"
AVer.ATSCTuner.Filter1Desc		="AVerMedia BDA ATSC Tuner"
AVer.ATSCTuner.Filter2Desc		="AVerMedia BDA ATSC Tuner"

AVer.DigitalCapture.Filter1Desc		="AVerMedia BDA Capture"
AVer.DigitalCapture.Filter2Desc		="AVerMedia BDA Capture"
;===========================================================================================