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

[Version]
signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%ProviderName%
CatalogFile=AVerFA.cat
DriverVer=02/22/2013,1.1.0.26

[Manufacturer]
%AVerMedia%=AVerFA

[AVerFA]
%AVerFACap.DeviceDesc%=AVerFACap,PCI\VEN_1797&DEV_6869

[DestinationDirs]
System32.CopyBins=10,system32
AVerFACap.CopyFiles=10,system32\drivers ; be aware not to use 12 as the drivers directory, 
                                         ; as driver will not work anymore in W98

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
AVerFA.sys=1

[AVerFACap.CopyFiles]
AVerFA.sys

[System32.CopyBins]

;
;*** initialisation and registry entries
;

[AVerFACap.nt]
Include=ks.inf, kscaptur.inf, wdmaudio.inf
Needs=KS.Registration.NT,KSCAPTUR.Registration.NT,wdmaudio.Registration.NT
CopyFiles=AVerFACap.CopyFiles,System32.CopyBins
AddReg=AVerFACap.AddReg

[AVerFACap.nt.Services]
AddService=AVerFACap, 0x00000002, AVerFACap.ServiceInstall

[AVerFACap.ServiceInstall]
DisplayName=%DISPLAY_NAME%
Description=%SERVICE_DESCRIPTION%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\AVerFA.sys
; [StartName=driver-object-name]
; [AddReg=add-registry-section[, add-registry-section] ...]
; [DelReg=del-registry-section[, del-registry-section] ...]
; [BitReg=bit-registry-section[,bit-registry-section] ...]
; [LoadOrderGroup=load-order-group-name]
; [Dependencies=depend-on-item-name[,depend-on-item-name]...]

[AVerFACap.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AVerFA.sys

; audio capture registry entries

HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AVerFA.sys
HKR,Drivers,SubClasses,,"wave,mixer"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,"AVerMedia audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"AVerMedia audio capture device"

; add audio input and output pinnames

HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVER_ANLG_AUDIO_IN_PIN%,"Name",,"Analog Audioinput"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVER_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVER_ANLG_AUDIO_CAP_IN_PIN%,"Name",,%AVerFACap.AnlgAudioCapName%
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVER_ANLG_AUDIO_CAP_OUT_PIN%,"Name",,"AVerAudio Capture"

; Driver behaveior
HKR, "Software\Default", "Digital Stream Support",             0x00010001, 0

[AVerFACap.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER1%,AVerFACap.AnlgCap1,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER1%,AVerFACap.AnlgCap1,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER2%,AVerFACap.AnlgCap2,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER2%,AVerFACap.AnlgCap2,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER3%,AVerFACap.AnlgCap3,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER3%,AVerFACap.AnlgCap3,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER4%,AVerFACap.AnlgCap4,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER4%,AVerFACap.AnlgCap4,0

AddInterface=%KSCATEGORY_AUDIO%,%AVER_ANLG_AUDIO_CAP_FILTER%,AVerFACap.AnlgACap,0

[AVerFACap.nt.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER1%,AVerFACap.AnlgCap1,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER1%,AVerFACap.AnlgCap1,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER2%,AVerFACap.AnlgCap2,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER2%,AVerFACap.AnlgCap2,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER3%,AVerFACap.AnlgCap3,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER3%,AVerFACap.AnlgCap3,0
AddInterface=%KSCATEGORY_CAPTURE%,%AVER_ANLG_CAP_FILTER4%,AVerFACap.AnlgCap4,0
AddInterface=%KSCATEGORY_VIDEO%,%AVER_ANLG_CAP_FILTER4%,AVerFACap.AnlgCap4,0

AddInterface=%KSCATEGORY_AUDIO%,%AVER_ANLG_AUDIO_CAP_FILTER%,AVerFACap.AnlgACap,0

[AVerFACap.AnlgCap1]
AddReg=AVerFACap.AnlgCap1.AddReg

[AVerFACap.AnlgCap1.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AVerFACap.AnlgCaptureName1%

[AVerFACap.AnlgCap2]
AddReg=AVerFACap.AnlgCap2.AddReg

[AVerFACap.AnlgCap2.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AVerFACap.AnlgCaptureName2%

[AVerFACap.AnlgCap3]
AddReg=AVerFACap.AnlgCap3.AddReg

[AVerFACap.AnlgCap3.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AVerFACap.AnlgCaptureName3%

[AVerFACap.AnlgCap4]
AddReg=AVerFACap.AnlgCap4.AddReg

[AVerFACap.AnlgCap4.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AVerFACap.AnlgCaptureName4%

[AVerFACap.AnlgACap.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AVerFACap.AnlgAudioCapName%
HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%AVER_ANLG_AUDIO_CAP_IN_PIN%
HKR,"EP\\0",%PKEY_AudioDevice_NeverSetAsDefaultEndpoint%,0x00010001,NeverSetAsDefaultEndpointMaskValue
HKR,"EP\\0",%PKEY_AudioEngine_OEMFormat%,0x00000001, 41,00,00,00,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,EE,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71
HKR,"EP\\0",%PKEY_AudioEndpoint_ControlPanelProvider%,,%AUDIOENDPOINT_EXT_UI_CLSID%

;
;*** strings, GUIDs and names
;

[Strings]

; Proxy GUIDs

KSProxy.CLSID   = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"

; Category GUIDs

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

; Our Pin GUIDs

AVER_ANLG_AUDIO_IN_PIN  = "{09C97F71-FB6E-44C8-9831-CC2FADCAB2BC}"
AVER_ANLG_AUDIO_OUT_PIN = "{486EF378-4174-4802-9755-F203BADA7493}"
AVER_ANLG_AUDIO_CAP_IN_PIN  = "{AD670DFF-2B9D-4543-8A4E-C22635C4F87E}"
AVER_ANLG_AUDIO_CAP_OUT_PIN = "{85DDCB05-9F3B-4A85-8505-4D4F7794B2F7}"

; Our Filter GUIDs

AVER_ANLG_CAP_FILTER1	  = "{36968B0D-604E-4BF9-9E6A-F40024F6B1E1}"
AVER_ANLG_CAP_FILTER2     = "{EC433512-0E06-4AC3-83A0-E481877D2623}"
AVER_ANLG_CAP_FILTER3     = "{23A1A348-0ED3-46FF-A06B-A4A8358CC0C8}"
AVER_ANLG_CAP_FILTER4     = "{4A719559-11FE-439F-8C2D-1E0E2DFAF525}"
;AVER_ANLG_XBAR_FILTER    = "{D978F16E-73EC-44F8-859B-BA11527CE458}"
;AVER_ANLG_AUDIO_CAP_FILTER   = "{9C3B7094-4D01-46AC-98A2-D3C3B4CE3A24}"

; Our Interface GUIDs

AUDIOENDPOINT_EXT_UI_CLSID	= "{6C57B2A2-91F5-4B90-93D5-FAB82485ECA6}"
PKEY_AudioEndpoint_ControlPanelProvider = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},1"
PKEY_AudioEndpoint_Association          = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEngine_OEMFormat              = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"
PKEY_AudioDevice_NeverSetAsDefaultEndpoint = "{F3E80BEF-1723-4FF2-BCC4-7F83DC5E46D4},3"

; system defines

SERVICE_BOOT_START   = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START   = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED     = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2
SERVICE_ERROR_CRITICAL = 0x3 

FLG_REGSVR_DLLREGISTER = 0x00000001

;Our strings

ProviderName="AVerMedia TECHNOLOGIES, Inc."
AVerMedia="AVerMedia TECHNOLOGIES, Inc."
AVerFACap.DeviceDesc       = "AVerMedia C968 PCIe SD Capture Device"
AVSTRM_INSTALLATION_DISK = "AVStrm installation disk"
DISPLAY_NAME             = "AVerMedia AVerFA service"
SERVICE_DESCRIPTION      = "The AVerMedia capture driver"

;Our Friendly Names
AVerFACap.AnlgCaptureName1 = "AVerMedia SD 1 Capture"
AVerFACap.AnlgCaptureName2 = "AVerMedia SD 2 Capture"
AVerFACap.AnlgCaptureName3 = "AVerMedia SD 3 Capture"
AVerFACap.AnlgCaptureName4 = "AVerMedia SD 4 Capture"

AVerFACap.AnlgXBarName    = "AVerMedia HD Xbar"
AVerFACap.AnlgAudioCapName  = "AVerMedia HD Audio Cap"
