;***********************************************************************
; Copyright (C) 2005 Auvitek 
; Descriptions:USB Dongle driver Install Information File For WinXP 64
; Support AU8522 USB Dongle_MT2130
;***********************************************************************

[Version]
signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%DongleVendor%
DriverVer=08/08/2007,1.20222.63.201
;UATV::Version=1.20222.63.202
;UDTV::Version=1.20222.56.201
CatalogFile = AuviDongle64.cat


[SourceDisksNames]
1=%DongleDriverInstallDisk%,,

[SourceDisksFiles]
AuviUDTV64.sys=1
AuviUATV64.sys=1
AuviCoInstaller.dll=1

[DestinationDirs]
AuviUATV.CopyDrivers=12
AuviUATV.CopyCoInst =11
AuviUATV.CopyFiles = 10,SysWow64
AuviUDTV.CopyDrivers=12
AuviUDTV.CopyCoInst =11

[Manufacturer]
%MfgName%=Auvitek,NTamd64

[ControlFlags]
ExcludeFromSelect=*

[Auvitek.NTamd64]
;---------------------------------------------------------------
;
%AuviUATV.DeviceDesc%=AuviUATV.Device,USB\VID_05E1&PID_0400&MI_00
%AuviUDTV.DeviceDesc%=AuviUDTV.Device,USB\VID_05E1&PID_0400&MI_03

[AuviUATV.CopyDrivers]
AuviUATV64.sys
[AuviUATV.CopyCoInst]
AuviCoInstaller.dll
[AuviUATV.CopyFiles]
[AuviUDTV.CopyDrivers]
AuviUDTV64.sys
[AuviUDTV.CopyCoInst]
AuviCoInstaller.dll

[AuviUATV.Device.NT.CoInstallers]
CopyFiles = AuviUATV.CopyCoInst
AddReg = AuviUATV.CoInstaller_AddReg
[AuviUATV.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"AuviCoInstaller.dll, CoInstallerEntry"
[AuviUATV.Params.Reg]
HKR,,TunerType , %REG_DWORD%,2
HKR,,BoardType , %REG_DWORD%,0
HKR,,DemoType,%REG_DWORD%,13
HKR,,IsAutoMode,%REG_DWORD%,0
HKR,,IsSupportFM,%REG_DWORD%,1
HKR,,IsSupportAnlg,%REG_DWORD%,1
HKR,,IsSupportQAM,%REG_DWORD%,1
HKR,,TunerScanTimes, %REG_DWORD%,20

HKR,,IsNeedLEDCtrl,%REG_DWORD%,0
HKR,,IsCS5340Available,%REG_DWORD%,1
HKR,,IsNewMi,%REG_DWORD%,1
HKR,,Reg081h_CVBS,%REG_DWORD%,0x28
HKR,,Reg081h_SVIDEO,%REG_DWORD%,0x23
HKR,,CVBSChannel,%REG_DWORD%,4
HKR,,SVideoChannel,%REG_DWORD%,1
HKR,,Reg083h_AU8502_CVBS,%REG_DWORD%,0x0F
HKR,,Reg083h_AU8502_SVIDEO,%REG_DWORD%,0x0F
HKR,,Reg083h_AU8522_CVBS,%REG_DWORD%,0x03
HKR,,Reg083h_AU8522_SVIDEO,%REG_DWORD%,0x0c

HKR,,NRLevel,%REG_DWORD%,1
HKR,,AudioVolume, %REG_DWORD%,0x7FF

HKR,,VCRReg1, %REG_DWORD%,0x59
HKR,,VCRReg2, %REG_DWORD%,0xA0
HKR,,Reg0D9h,%REG_DWORD%,0x78

HKR,,Reg0B0h_AU8502_ATV,%REG_DWORD%,0x85
HKR,,Reg0A9h_AU8502_ATV,%REG_DWORD%,0x05


[AuviUDTV.Device.NT.CoInstallers]
CopyFiles = AuviUDTV.CopyCoInst
AddReg = AuviUDTV.CoInstaller_AddReg
[AuviUDTV.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"AuviCoInstaller.dll, CoInstallerEntry"
[AuviUDTV.Params.Reg]
HKR,,TunerType , %REG_DWORD%,2
HKR,,BoardType , %REG_DWORD%,0
HKR,,DemoType,%REG_DWORD%,13
HKR,,IsAutoMode,%REG_DWORD%,0
HKR,,IsSupportFM,%REG_DWORD%,1
HKR,,IsSupportAnlg,%REG_DWORD%,1
HKR,,IsSupportQAM,%REG_DWORD%,1
HKR,,TunerScanTimes, %REG_DWORD%,20
HKR,,IsNeedLEDCtrl,%REG_DWORD%,0
HKR,,IsKorea,%REG_DWORD%,0

HKR,,Reg0B0h_AU8502_DTV,%REG_DWORD%,0x5a
HKR,,Reg0A9h_AU8502_DTV,%REG_DWORD%,0x05


[AuviUATV.Device.NT]
Include    = ks.inf, wdmaudio.inf,kscaptur.inf, bda.inf
Needs      = KS.Registration.NT,WDMAUDIO.Registration.NT,KSCAPTUR.Registration.NT,BDA.Registration.NT,BDA.Installation.NT
CopyFiles  = AuviUATV.CopyDrivers,AuviUATV.CopyFiles
AddReg     = AuviUATV.AddReg

[AuviUATV.Device.NT.Services]
Addservice = AuviUATV, 0x00000002, AuviUATV.AddService
;Addservice = TRSA,0x00000000, AuviTAudio.AddService
[AuviUATV.AddService]
DisplayName    = %AuviUATV.FriendlyName%
Description    = %AUVIUATV_SERVICE_DESCRIPTION%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\AuviUATV64.sys
[AuviUATV.Device.NT.HW]
AddReg         = AuviUATV.Params.Reg
[AuviTAudio.AddService]

[AuviUATV.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AuviUATV64.sys
;HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce",TRSA,,"rundll32 %10%\SysWow64\AuviStartSvr.dll,AuviStartSvr"

; audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AuviUATV.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,,"Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Audio Capture Device"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_IN_PIN%,"Name",,"Analog Audio In"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
[AuviUATV.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,AuviUATV.AnlgCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%VAMP_ANLG_CAP_FILTER%,AuviUATV.AnlgCapture,0
AddInterface=%KSCATEGORY_CROSSBAR%,%VAMP_ANLG_XBAR_FILTER%,AuviUATV.AnlgXBar,0
AddInterface=%KSCATEGORY_TVAUDIO%,%VAMP_ANLG_TVAUDIO_FILTER%,AuviUATV.AnlgTVAudio,0
AddInterface=%KSCATEGORY_TVTUNER%,%VAMP_ANLG_TUNER_FILTER%,AuviUATV.AnlgTuner,0
AddInterface=%KSCATEGORY_REMOTECONTROL_FILTER%,%VAMP_ANLG_REMOTECONTROL_FILTER%,AuviUATV.RemoteControl,0

[AuviUATV.AnlgCapture]
AddReg=AuviUATV.AnlgCapture.AddReg

[AuviUATV.AnlgCapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AuviUATV.AnlgCaptureName%
HKR,,VampType,,%AuviUATV.VampType%
[AuviUATV.AnlgXBar]
AddReg=AuviUATV.AnlgXBar.AddReg

[AuviUATV.AnlgXBar.AddReg]
HKR,,CLSID,,%KSXBar.CLSID%
HKR,,FriendlyName,,%AuviUATV.AnlgXBarName%

[AuviUATV.AnlgTVAudio]
AddReg=AuviUATV.AnlgTVAudio.AddReg

[AuviUATV.AnlgTVAudio.AddReg]
HKR,,CLSID,,%KSTVAudio.CLSID%
HKR,,FriendlyName,,%AuviUATV.AnlgTVAudioName%

[AuviUATV.AnlgTuner]
AddReg=AuviUATV.AnlgTuner.AddReg

[AuviUATV.AnlgTuner.AddReg]
HKR,,CLSID,,%KSTvTune.CLSID%
HKR,,FriendlyName,,%AuviUATV.AnlgTunerName%

[AuviUATV.RemoteControl]
AddReg=AuviUATV.RemoteControl.AddReg
AddReg=AuviUATV.RemoteControl.DShow.AddReg

[AuviUATV.RemoteControl.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AuviUATV.RemoteControlName%

[AuviUATV.RemoteControl.DShow.AddReg]
HKCR,CLSID\{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}\Instance\{96d17ec1-161c-4760-b5a2-3a2eb22d61a5},CLSID,,%KSCATEGORY_REMOTECONTROL_FILTER%
HKCR,CLSID\{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}\Instance\{96d17ec1-161c-4760-b5a2-3a2eb22d61a5},FriendlyName,,%AuviUATV.RemoteControlDShowTypeName% 

[AuviUDTV.Device.NT]
Include    = ks.inf, kscaptur.inf, bda.inf
Needs      = KS.Registration.NT,KSCAPTUR.Registration.NT,BDA.Registration.NT,BDA.Installation.NT
CopyFiles  = AuviUDTV.CopyDrivers
AddReg     = AuviUDTV.AddReg


[AuviUDTV.Device.NT.Services]
Addservice = AuviUDTV, 0x00000002, AuviUDTV.AddService

[AuviUDTV.AddService]
DisplayName    = %AuviUDTV.FriendlyName%
Description    = %AUVIUDTV_SERVICE_DESCRIPTION%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\AuviUDTV64.sys
[AuviUDTV.Device.NT.HW]
AddReg         = AuviUDTV.Params.Reg

[AuviUDTV.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,AuviUDTV64.sys
[AuviUDTV.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_BDA_RECEIVER_COMPONENT%,%VAMP_DGTL_CAP_FILTER%,AuviUDTV.DgtlCapture,0
AddInterface=%KSCATEGORY_BDA_NETWORK_TUNER%,%VAMP_DGTL_TUNER_FILTER%,AuviUDTV.DgtlTuner,0
AddInterface=%KSCATEGORY_REMOTECONTROL_FILTER%,%VAMP_DGTL_REMOTECONTROL_FILTER%,AuviUDTV.RemoteControl,0

[AuviUDTV.DgtlCapture]
AddReg=AuviUDTV.DgtlCapture.AddReg

[AuviUDTV.DgtlCapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AuviUDTV.DgtlCaptureName%

[AuviUDTV.DgtlTuner]
AddReg=AuviUDTV.DgtlTuner.AddReg

[AuviUDTV.DgtlTuner.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AuviUDTV.DgtlTunerName%

[AuviUDTV.RemoteControl]
AddReg=AuviUDTV.RemoteControl.AddReg
AddReg=AuviUDTV.RemoteControl.DShow.AddReg

[AuviUDTV.RemoteControl.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%AuviUDTV.RemoteControlName%

[AuviUDTV.RemoteControl.DShow.AddReg]
HKCR,CLSID\{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}\Instance\{96d17ec1-161c-4760-b5a2-3a2eb22d61a5},CLSID,,%KSCATEGORY_REMOTECONTROL_FILTER%
HKCR,CLSID\{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}\Instance\{96d17ec1-161c-4760-b5a2-3a2eb22d61a5},FriendlyName,,%AuviUDTV.RemoteControlDShowTypeName% 




[Strings]

KSProxy.CLSID   = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
KSTVAudio.CLSID = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
KSTvTune.CLSID  = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"

; Category GUIDs
KSCATEGORY_BDA_RECEIVER_COMPONENT = "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"
KSCATEGORY_BDA_NETWORK_TUNER      = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
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_REMOTECONTROL_FILTER   = "{CFA78EFD-6938-4322-854C-1C4C6B5EBB3C}"

; Our Pin GUIDs
VAMP_ANLG_AUDIO_IN_PIN  = "{6D8BD131-FF8E-4c9f-8894-10F240673342}"
VAMP_ANLG_AUDIO_OUT_PIN = "{8B98E36B-8F94-4d43-9151-A095081DCAE3}"
; Our Filter GUIDs
VAMP_ANLG_CAP_FILTER     = "{D553D66A-66A7-45a9-819B-46A14F62E0AF}"
VAMP_ANLG_XBAR_FILTER    = "{617D74D1-1E74-445f-AE6F-0F2C10E5BB7C}"
VAMP_ANLG_TVAUDIO_FILTER = "{B2D1E2E7-224A-4d6a-A91F-90EC215B6859}"
VAMP_ANLG_TUNER_FILTER   = "{C754E23D-CD99-40c4-B38C-66620E8EB76B}"
VAMP_DGTL_CAP_FILTER     = "{AAB15B57-EF8D-40b2-A10C-7694C96598D0}"
VAMP_DGTL_TUNER_FILTER   = "{7F547DCD-CADA-451e-AF10-EEADC94AE3A7}"
VAMP_ANLG_REMOTECONTROL_FILTER= "{0F7EE48D-BDFA-4a46-B73C-16897F7D9FD8}"
VAMP_DGTL_REMOTECONTROL_FILTER= "{44DF32A4-F353-48a4-B3FE-E9094BAD7155}"

; 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

DongleVendor = "Auvitek Technologies Co. Ltd"
DongleDriverInstallDisk = "Auvitek BDA Drivers Release CD"
MfgName  ="Auvitek Corp."
AuviUATV.DeviceDesc = "Auvitek NTSC Capture Device"
AuviUATV.FriendlyName = "Auvitek NTSC Capture Device"
AUVIUATV_SERVICE_DESCRIPTION  = "The Auvitek AVStream Driver"
AuviUDTV.DeviceDesc = "Auvitek ATSC Capture Device"
AuviUDTV.FriendlyName = "Auvitek ATSC Capture"
AUVIUDTV_SERVICE_DESCRIPTION  = "The Auvitek HDTV BDA Driver"

;Our Friendly Names

AuviUDTV.DgtlCaptureName = "Auvitek Dongle Digital Capture"
AuviUDTV.DgtlTunerName   = "Auvitek Dongle Digital Tuner"
AuviUDTV.VampType        = "Auvitek Dongle HDTV Capture"
AuviUDTV.RemoteControlName = "Auvitek Dongle Digital Remote Control"
AuviUDTV.RemoteControlDShowTypeName="Auvitek Dongle Remote Control Component"


AuviUATV.AnlgCaptureName = "Auvitek Dongle Analog Capture"
AuviUATV.AnlgXBarName    = "Auvitek Dongle Analog Xbar"
AuviUATV.AnlgTVAudioName = "Auvitek Dongle Analog TV Audio"
AuviUATV.AnlgTunerName   = "Auvitek Dongle Analog Tuner"
AuviUATV.VampType        = "Auvitek Dongle Analog TV Capture"
AuviUATV.RemoteControlName = "Auvitek Dongle Analog Remote Control"
AuviUATV.RemoteControlDShowTypeName="Auvitek Dongle Remote Control Component"


; Registry types
REG_MULTI_SZ                = 0x10000
REG_EXPAND_SZ               = 0x20000
REG_DWORD                   = 0x10001

