;
; Installation inf file for ATSC USB adapter driver
; Copyright 2007, DTV-DVB

[Version]
signature	="$CHICAGO$"
Class		= Media
ClassGUID	= {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider	= %DTV-DVB%
DriverVer	= 07/17/2007,1.0.0.1
CatalogFile 	= 7243BDA.cat
CatalogFile.NTAMD64 = AMD64\7243BDA.cat
CatalogFile.NTIA64  = IA64\7243BDA.cat

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

[DTV-DVB]
%7243BDA.DeviceDesc%	= 7243BDA.Device,USB\VID_13D3&PID_3227
%7243BDA1.DeviceDesc%	= 7243BDA.Device1,USB\VID_13D3&PID_3227

[DTV-DVB.NTAMD64]
%7243BDA.DeviceDesc%	= 7243BDA.Device,USB\VID_13D3&PID_3227
%7243BDA1.DeviceDesc%	= 7243BDA.Device1,USB\VID_13D3&PID_3227

[DTV-DVB.NTIA64]
%7243BDA.DeviceDesc%	= 7243BDA.Device,USB\VID_13D3&PID_3227
%7243BDA1.DeviceDesc%	= 7243BDA.Device1,USB\VID_13D3&PID_3227

[DestinationDirs]
7243BDA.CopyDrivers	= 10,System32\Drivers 

[SourceDisksNames]
1 = %INSTALLATION_DISK%, 7243BDA.inf, ,

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

[SourceDisksNames.IA64]
1 = %INSTALLATION_DISK%, 7243BDA.inf, , \IA64

[SourceDisksFiles]
7243BDA.sys = 1

[ControlFlags]
ExcludeFromSelect	= *
ExcludeFromSelect.NT	= *


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


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

[7243BDA.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_BDATUNER%,	%KSSTRING_BdaFilter%, 7243BDA.Interfaces,
AddInterface=%KSCATEGORY_BDARECEIVER%,	%KSSTRING_BdaCapFilter%, 7243BDA.Interfaces,


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



[7243BDA.Device1.NT.Services]
Addservice = 7243BDA, 0x00000002, 7243BDA.AddService

[7243BDA.Device1.NT.Interfaces]
AddInterface=%KSCATEGORY_BDATUNER%,	%KSSTRING_BdaFilter%, 7243BDA.Interfaces,
AddInterface=%KSCATEGORY_BDARECEIVER%,	%KSSTRING_BdaCapFilter%, 7243BDA.Interfaces,


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

[7243BDA.CopyDrivers]
7243BDA.sys

[7243BDA.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,7243BDA.sys
HKR,,PageOutWhenUnopened,3,01


HKR,"ENUM\Device1",pnpid,,"7243HID.VIRTUAL"

HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E}
HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4}
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D}
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D},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
; 00 00 00 00 : Enable all
; FF FF 00 00 : Filter All
HKR,"DriverData","IRSYSCODECHECK1",0x00010001, 0xFF,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

; Tuner Power off timeout setting 0: Disable n: n Sec
HKR,"DriverData","TunerOffTimeOut",0x00010001, 0xB4,0x00,0x00,0x00

; Tuner Firmware download speed 0: Normal speed, others: Speed Up Rate
HKR,"DriverData","bDLSpeed",0x00010001, 0x00,0x00,0x00,0x00

; Special AP mode 0:Normal 1:MCE 2:PCM4
HKR,"DriverData","MCEMode",0x00010001, 0x00,0x00,0x00,0x00

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

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


[7243BDA.AddReg1]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,7243BDA.sys
HKR,,PageOutWhenUnopened,3,01

HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E}
HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{F284E409-674F-4259-AB7C-CEF46D80790E},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4}
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{41572C29-12B3-4f29-9AE0-04EEBC380CD4},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D}
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{82ED86F8-1263-481b-A4F1-A44FDDF2389D},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

; Tuner Power off timeout setting 0: Disable n: n Sec
HKR,"DriverData","TunerOffTimeOut",0x00010001, 0xB4,0x00,0x00,0x00

; Tuner Firmware download speed 0: Normal speed, others: Speed Up Rate
HKR,"DriverData","bDLSpeed",0x00010001, 0x00,0x00,0x00,0x00

; Special AP mode 0:Normal 1:MCE 2:PCM4
HKR,"DriverData","MCEMode",0x00010001, 0x00,0x00,0x00,0x00

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

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


[7243BDA.Interfaces]
AddReg = 7243BDA.Interface.AddReg

[7243BDA.Interface.AddReg]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%7243BDA.AFriendlyName%





;[VideoCapture]
;AddReg=VideoCapture.AddReg

;[VideoCapture.AddReg]
;HKR,,CLSID,,%KSPROXY.CLSID%
;HKR,,FriendlyName,,%7243BDA.Capture%



[Strings]
DTV-DVB			     = "DTV-DVB"
MfgName		             = "DTV-DVB"

KSPROXY.CLSID		     = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED

7243BDA.DeviceDesc           = "DTV-DVB 7243 - USB 2.0 ATSC Driver"
7243BDA1.DeviceDesc	     = "DTV-DVB 7243 - USB 2.0 ATSC Driver(Without HID)"
 
INSTALLATION_DISK 	     = "DTV-DVB 7243 - USB 2.0 Installation Disk"
7243BDA.FriendlyName         = "DTV-DVB 7243 - USB 2.0 Receiver"
7243BDA.AFriendlyName        = "DTV-DVB 7243 - USB 2.0 ATSC Receiver"

KSSTRING_BdaFilter           = "{45D7274B-AE3F-47d5-96FF-775CFCE49E01}"
KSSTRING_BdaCapFilter        = "{5BB3DBD0-9E1E-424c-9281-6B5E7109F111}"
;
; 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
