;
; Installation inf file for DVB-T USB adapter BDA driver
;

[Version]
signature	= "$CHICAGO$"
Class		= Media
ClassGUID	= {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider	= %DTV-DVB%
LayoutFile	= Layout.inf
DriverVer	= 05/29/2006,1.0.5.9
CatalogFile = UDTT2BDA.cat
CatalogFile.NTAMD64 = AMD64\UDTT2BDA.cat
CatalogFile.NTIA64  = IA64\UDTT2BDA.cat


[Manufacturer]
%MfgName% = DTV-DVB, NTAMD64, NTIA64

[ControlFlags]
ExcludeFromSelect		= *
ExcludeFromSelect.NT	= *

[DTV-DVB]
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3205
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3206

[DTV-DVB.NTAMD64]
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3205
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3206

[DTV-DVB.NTIA64]
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3205
%VP704x.DeviceDesc%	= VP704x.Device,USB\VID_13d3&PID_3206

[DestinationDirs]
VP704x.CopyDrivers	= 10,System32\Drivers 

[SourceDisksNames]
1 = %INSTALLATION_DISK%,,

[SourceDisksNames.AMD64]
1 = %INSTALLATION_DISK%, UDTT2BDA.inf, , \AMD64

[SourceDisksNames.IA64]
1 = %INSTALLATION_DISK%, UDTT2BDA.inf, , \IAD64

[SourceDisksFiles]
UDTT2BDA.sys = 1

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

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

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

[VP704x.AddService]
DisplayName    = %VP704x.FriendlyName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\UDTT2BDA.sys
LoadOrderGroup = Base

[VP704x.CopyDrivers]
UDTT2BDA.sys

[VP704x.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,UDTT2BDA.sys
HKR,,PageOutWhenUnopened,3,01

;Disabe HID driver install
HKR,"ENUM\Device1",pnpid,,"UDTT2HID.VIRTUAL"

HKLM,System\CurrentControlSet\Control\MediaCategories\{2700E515-7868-4e6f-A57E-0D55A850EC7D}
HKLM,System\CurrentControlSet\Control\MediaCategories\{2700E515-7868-4e6f-A57E-0D55A850EC7D},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{2700E515-7868-4e6f-A57E-0D55A850EC7D},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{142DC0CE-6F84-451f-B359-EF15BBA30088}
HKLM,System\CurrentControlSet\Control\MediaCategories\{142DC0CE-6F84-451f-B359-EF15BBA30088},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{142DC0CE-6F84-451f-B359-EF15BBA30088},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{CA00E3F6-190E-40c0-BD9E-69CB46145A39}
HKLM,System\CurrentControlSet\Control\MediaCategories\{CA00E3F6-190E-40c0-BD9E-69CB46145A39},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{CA00E3F6-190E-40c0-BD9E-69CB46145A39},Name,,"Antenna In Pin"

; //As it is, no change
HKR,"DriverData","MCE_FreqTranslate",0x00010001, 0x00,0x00,0x00,0x00
; //Fixed 6 MHz Freq table
;HKR,"DriverData","MCE_FreqTranslate",0x00010001, 0x06,0x00,0x00,0x00
; //Fixed 7 MHz Freq table
;HKR,"DriverData","MCE_FreqTranslate",0x00010001, 0x07,0x00,0x00,0x00
; //Fixed 8 MHz Freq table
;HKR,"DriverData","MCE_FreqTranslate",0x00010001, 0x08,0x00,0x00,0x00

; //As it is, no change
HKR,"DriverData","FixedBandwidth",0x00010001, 0x00,0x00,0x00,0x00
; //VHF in 7 MHz, UHF in 8 MHz
;HKR,"DriverData","FixedBandwidth",0x00010001, 0x01,0x00,0x00,0x00
; //Fixed 6 MHz
;HKR,"DriverData","FixedBandwidth",0x00010001, 0x06,0x00,0x00,0x00
; //Fixed 7 MHz
;HKR,"DriverData","FixedBandwidth",0x00010001, 0x07,0x00,0x00,0x00
; //Fixed 8 MHz
;HKR,"DriverData","FixedBandwidth",0x00010001, 0x08,0x00,0x00,0x00

; //167KHz will be scanned
HKR,"DriverData","ShiftFreqScan",0x00010001, 0x00,0x00,0x00,0x00
; //Don't scan +-167KHz, just return lock failure
;HKR,"DriverData","ShiftFreqScan",0x00010001, 0x01,0x00,0x00,0x00

; //IR system code checklist1 (NEC:0x00FF)
HKR,"DriverData","IRSYSCODECHECK1",0x00010001, 0xFF,0x00,0x00,0x00
; //IR system code checklist2 (Other:0x01AA)
;HKR,"DriverData","IRSYSCODECHECK2",0x00010001, 0xAA,0x01,0x00,0x00

; TSGenSimulator
; 0:Disabled, 1:DVB-S, 2:DVB-T, 4:DVB-C, 8:ATSC
HKR,"DriverData","TSGenSimulator",0x00010001, 0x00,0x00,0x00,0x00

; SupportHWInfo (MAX 32 bytes)
HKR,"DriverData","SupportHWInfo",0x00010000, "7045/7046 USB-Ter"

; Device_Name (MAX 32 bytes)
HKR,"DriverData","Device_Name",0x00010000, "7045/7046 USB-Ter"

; HID Enable
HKR,"DriverData","HID_Enable",0x00010001, 0x01,0x00,0x00,0x00

; //Mapping RC table for DTV-DVB
HKR,"DriverData","RC_Configuration",0x00010001, 0x00,0x00,0x00,0x00
; //Mapping RC table for Cyberlink
;HKR,"DriverData","RC_Configuration",0x00010001, 0x01,0x00,0x00,0x00
; //Mapping RC table for IVI
;HKR,"DriverData","RC_Configuration",0x00010001, 0x02,0x00,0x00,0x00
; //Mapping RC table for MCE
;HKR,"DriverData","RC_Configuration",0x00010001, 0x03,0x00,0x00,0x00
; //Mapping RC table for NEW TH HID RC
;HKR,"DriverData","RC_Configuration",0x00010001, 0x04,0x00,0x00,0x00
; //Mapping RC table for Custom
;HKR,"DriverData","RC_Configuration",0x00010001, 0x05,0x00,0x00,0x00
; //Mapping RC table for DNTVLive HID RC
;HKR,"DriverData","RC_Configuration",0x00010001, 0x10,0x00,0x00,0x00
; //Disable RC
;HKR,"DriverData","RC_Configuration",0x00010001, 0xFF,0xFF,0x00,0x00


[VP704x.Device.Interfaces]
AddInterface	= %KSCATEGORY_BDATUNER%,	%KSSTRING_BdaFilter%, VP704x.Interfaces,
AddInterface	= %KSCATEGORY_BDARECEIVER%,	%KSSTRING_BdaFilter%, VP704x.Interfaces,

[VP704x.Device.NT.Interfaces]
AddInterface	= %KSCATEGORY_BDATUNER%,	%KSSTRING_BdaFilter%, VP704x.Interfaces,
AddInterface	= %KSCATEGORY_BDARECEIVER%,	%KSSTRING_BdaFilter%, VP704x.Interfaces,

[VP704x.Interfaces]
AddReg	= VP704x.Interface.AddReg

[VP704x.Interface.AddReg]
HKR,,CLSID,,%VP704x.CLSID%
HKR,,FriendlyName,,%VP704x.FriendlyName%


[Strings]
DTV-DVB					= "DTV-DVB"
MfgName					= "DTV-DVB"
VP704x.CLSID			= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED
VP704x.DeviceDesc		= "DTV-DVB USB2 DVB-T BDA adapter with HID Driver"
VP704x.FriendlyName	        = "DTV-DVB USB2 DVB-T receiver"
INSTALLATION_DISK 		= "DTV-DVB USB2 DVB-T Adapter Installation Disk"
KSSTRING_BdaFilter		= "{A0F9219E-7C58-4a1d-B8E7-7325F0BC4501}"

;
; The following items should be moved to KS_registration - TCP
;
KSCATEGORY_BDATUNER     = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSCATEGORY_BDARECEIVER	= "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"	
MediaCategories         = "SYSTEM\CurrentControlSet\Control\MediaCategories"
    

;
; ServiceType values
SERVICE_KERNEL_DRIVER				= 0x00000001
SERVICE_FILE_SYSTEM_DRIVER			= 0x00000002
SERVICE_ADAPTER						= 0x00000004
SERVICE_RECOGNIZER_DRIVER			= 0x00000008
SERVICE_WIN32_OWN_PROCESS			= 0x00000010
SERVICE_WIN32_SHARE_PROCESS			= 0x00000020
SERVICE_INTERACTIVE_PROCESS			= 0x00000100
SERVICE_INTERACTIVE_SHARE_PROCESS	= 0x00000120

; StartType values
SERVICE_BOOT_START          = 0x00000000
SERVICE_SYSTEM_START        = 0x00000001
SERVICE_AUTO_START          = 0x00000002
SERVICE_DEMAND_START        = 0x00000003
SERVICE_DISABLED            = 0x00000004

; ErrorControl values
SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

; Characteristic flags
NCF_VIRTUAL                 = 0x0001
NCF_WRAPPER                 = 0x0002
NCF_PHYSICAL                = 0x0004
NCF_HIDDEN                  = 0x0008
NCF_NO_SERVICE              = 0x0010
NCF_NOT_USER_REMOVABLE      = 0x0020
NCF_HAS_UI                  = 0x0080
NCF_MODEM                   = 0x0100

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

; Win9x Compatible Types
REG_BINARY                  = 17
REG_SZ                      = 0

; Service install flags
SPSVCINST_TAGTOFRONT        = 0x1
SPSVCINST_ASSOCSERVICE      = 0x2
