;------------------------------------------------------------------------
; 
;  Copyright and Disclaimer: 
;  
;     --------------------------------------------------------------- 
;     This software is provided "AS IS" without warranty of any kind, 
;     either expressed or implied, including but not limited to the 
;     implied warranties of noninfringement, merchantability and/or 
;     fitness for a particular purpose.
;     --------------------------------------------------------------- 
;   
;     Copyright (c) 2007 GoTView. 
;     All rights reserved. 
;
;------------------------------------------------------------------------

[Version]
signature	= "$CHICAGO$"
Class		= Media
ClassGUID	= {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider	= %GOTVIEW%
DriverVer	= 08/20/2008,1.0.5.6
CatalogFile 	= gtvstick.cat

[Manufacturer]
%MfgName% = GOTVIEW

[GOTVIEW]
%GTV6010.DeviceDesc%	= GTV6010.Device,USB\VID_5654&PID_5254
%GTV6010.DeviceDesc%	= GTV6010.Device,USB\VID_5654&PID_5354

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

[SourceDisksNames]
1 = %INSTALLATION_DISK%, gtvstick.inf, ,

[SourceDisksFiles]
gtvstick.sys = 1

[ControlFlags]
ExcludeFromSelect	= *
ExcludeFromSelect.NT	= *

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

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

[GTV6010.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_BDATUNER%,	%KSSTRING_ABdaFilter%, GTV6010.AInterfaces,
AddInterface=%KSCATEGORY_BDARECEIVER%,	%KSSTRING_ABdaFilter%, GTV6010.AInterfaces,

AddInterface=%KSCATEGORY_BDATUNER%,	%KSSTRING_CBdaFilter%, GTV6010.CInterfaces,
AddInterface=%KSCATEGORY_BDARECEIVER%,	%KSSTRING_CBdaFilter%, GTV6010.CInterfaces,

AddInterface=%KSCATEGORY_BDATUNER%,	%KSSTRING_TBdaFilter%, GTV6010.TInterfaces1,
AddInterface=%KSCATEGORY_BDARECEIVER%,	%KSSTRING_TBdaReceiverFilter%, GTV6010.TInterfaces,

AddInterface=%KSCATEGORY_CROSSBAR%,%GUID_XBAR%,VideoCrossbar,0
AddInterface=%KSCATEGORY_TVTUNER%,%GUID_ANALOGTVTUNER%,VideoTvTuner,0
AddInterface=%KSCATEGORY_TVAUDIO%,%GUID_TVAUDIO%,VideoTvAudio,0
AddInterface=%KSCATEGORY_CAPTURE%,%GUID_STREAMCAPTURE%,VideoCapture,0
AddInterface=%KSCATEGORY_VIDEO%,%GUID_STREAMCAPTURE%,VideoCapture,0
AddInterface=%KSCATEGORY_AUDIO%,%GUID_STREAMCAPTURE%,AudioCapture,0

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

[GTV6010.CopyDrivers]
gtvstick.sys

[GTV6010.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,gtvstick.sys
HKR,,PageOutWhenUnopened,3,01

HKLM,System\CurrentControlSet\Control\MediaCategories\{B7F90CC0-07AB-4453-8A16-653062908FE5}
HKLM,System\CurrentControlSet\Control\MediaCategories\{B7F90CC0-07AB-4453-8A16-653062908FE5},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{B7F90CC0-07AB-4453-8A16-653062908FE5},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{77B64FAB-E1CE-4c34-80EB-6702B9CFB2AA}
HKLM,System\CurrentControlSet\Control\MediaCategories\{77B64FAB-E1CE-4c34-80EB-6702B9CFB2AA},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{77B64FAB-E1CE-4c34-80EB-6702B9CFB2AA},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{9A977655-0989-4e41-BCD2-35CF701D3E26}
HKLM,System\CurrentControlSet\Control\MediaCategories\{9A977655-0989-4e41-BCD2-35CF701D3E26},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{9A977655-0989-4e41-BCD2-35CF701D3E26},Name,,"Antenna In Pin"

HKLM,System\CurrentControlSet\Control\MediaCategories\{5BC7D0C9-417E-4689-B6E6-7D9C37A78C78}
HKLM,System\CurrentControlSet\Control\MediaCategories\{5BC7D0C9-417E-4689-B6E6-7D9C37A78C78},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{5BC7D0C9-417E-4689-B6E6-7D9C37A78C78},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{51F4850F-0142-4099-B813-ADEFEF5D2858}
HKLM,System\CurrentControlSet\Control\MediaCategories\{51F4850F-0142-4099-B813-ADEFEF5D2858},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{51F4850F-0142-4099-B813-ADEFEF5D2858},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{C37AEC39-9ACA-4109-A1A0-46F43971A3B4}
HKLM,System\CurrentControlSet\Control\MediaCategories\{C37AEC39-9ACA-4109-A1A0-46F43971A3B4},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{C37AEC39-9ACA-4109-A1A0-46F43971A3B4},Name,,"Antenna In Pin"

HKLM,System\CurrentControlSet\Control\MediaCategories\{A57E5B2E-AA15-4ec4-8609-B91A360AA6B3}
HKLM,System\CurrentControlSet\Control\MediaCategories\{A57E5B2E-AA15-4ec4-8609-B91A360AA6B3},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{A57E5B2E-AA15-4ec4-8609-B91A360AA6B3},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{84226A18-8E5D-4259-BA30-F5A2BE5DF404}
HKLM,System\CurrentControlSet\Control\MediaCategories\{84226A18-8E5D-4259-BA30-F5A2BE5DF404},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{84226A18-8E5D-4259-BA30-F5A2BE5DF404},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{4676309C-ADF9-4361-9571-C42615DA77DF}
HKLM,System\CurrentControlSet\Control\MediaCategories\{4676309C-ADF9-4361-9571-C42615DA77DF},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{4676309C-ADF9-4361-9571-C42615DA77DF},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  
;HKR,"DriverData","RC_Configuration",0x00010001, 0x00,0x00,0x00,0x00 ;Mapping RC table for DTV-DVB
;HKR,"DriverData","RC_Configuration",0x00010001, 0x01,0x00,0x00,0x00 ;Mapping RC table for Cyberlink
;HKR,"DriverData","RC_Configuration",0x00010001, 0x02,0x00,0x00,0x00 ;Mapping RC table for IVI
HKR,"DriverData","RC_Configuration",0x00010001, 0x03,0x00,0x00,0x00 ;Mapping RC table for MCE
;HKR,"DriverData","RC_Configuration",0x00010001, 0x04,0x00,0x00,0x00 ;Mapping RC table for NEW TH HID RC
;HKR,"DriverData","RC_Configuration",0x00010001, 0x05,0x00,0x00,0x00 ;Mapping RC table for Custom
;HKR,"DriverData","RC_Configuration",0x00010001, 0x10,0x00,0x00,0x00 ;Mapping RC table for DNTVLive HID RC
;HKR,"DriverData","RC_Configuration",0x00010001, 0xFF,0xFF,0x00,0x00 ;Disable RC
; 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
HKR,"DriverData","bDLSpeed",0x00010001, 0x01,0x00,0x00,0x00

HKR,"DriverData","SecamNicamPreferred",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","PalNicamPreferred",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","EnableLED",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","RemoteVendorCode1",0x00010001, 0x80,0x00,0x00,0x00
HKR,"DriverData","RemoteVendorCode2",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","RemoteVendorCode3",0x00010001, 0x20,0x00,0x00,0x00
HKR,"DriverData","RemoteVendorCode4",0x00010001, 0x86,0x00,0x00,0x00

;Wave in audio device registration
HKR,Drivers,SubClasses,,"wave"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%GTV6010.AudioName%

[GTV6010.AInterfaces]
AddReg = GTV6010.AInterface.AddReg

[GTV6010.CInterfaces]
AddReg = GTV6010.CInterface.AddReg

[GTV6010.TInterfaces]
AddReg = GTV6010.TInterface.AddReg

[GTV6010.TInterfaces1]
AddReg = GTV6010.TInterface.AddReg1

[GTV6010.AInterface.AddReg]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%GTV6010.AFriendlyName%

[GTV6010.CInterface.AddReg]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%GTV6010.CFriendlyName%

[GTV6010.TInterface.AddReg]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%GTV6010.TFriendlyName%

[GTV6010.TInterface.AddReg1]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%GTV6010.TFriendlyName1%

[VideoCrossbar]
AddReg=VideoXBar.AddReg

[VideoXBar.AddReg]
HKR,,CLSID,,%KSXBar.CLSID%
HKR,,FriendlyName,,%GTV6010.Crossbar%

[VideoTvTuner]
AddReg=VideoTvTuner.AddReg

[VideoTvTuner.AddReg]
HKR,,CLSID,,%KSTvTune.CLSID%
HKR,,FriendlyName,,%GTV6010.TvTuner%

[VideoTvAudio]
AddReg=VideoTvAudio.AddReg

[VideoTvAudio.AddReg]
HKR,,CLSID,,%KSTVAudio.CLSID%
HKR,,FriendlyName,,%GTV6010.TvAudio%

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoCapture.AddReg]
HKR,,CLSID,,%KSPROXY.CLSID%
HKR,,FriendlyName,,%GTV6010.Capture%

[AudioCapture]
AddReg=AudioCapture.AddReg

[AudioCapture.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%GTV6010.AudioName%
HKLM,System\CurrentControlSet\Control\MediaCategories\%GUID_AUDIOOUT%,Name,,%Audio.Name%

[Strings]
GOTVIEW				= "GOTVIEW"
MfgName				= "GOTVIEW"

KSPROXY.CLSID			= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED
KSXBar.CLSID                    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
KSTvTune.CLSID                  = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
KSTVAudio.CLSID                 = "{71F96462-78F3-11d0-A18C-00A0C9118956}"

GTV6010.DeviceDesc		= "GOTVIEW USB2.0 HYBRID MasterStick"

GTV6010.FriendlyName       	= "GOTVIEW USB Hybrid Receiver"
GTV6010.AFriendlyName        	= "GOTVIEW USB Hybrid ATSC Receiver"
GTV6010.CFriendlyName		= "GOTVIEW USB Hybrid DVBC Receiver"
GTV6010.TFriendlyName		= "GOTVIEW USB Hybrid DVBT Receiver"
GTV6010.TFriendlyName1		= "GOTVIEW USB Hybrid DVBT Tuner"


INSTALLATION_DISK 		= "GOTVIEW USB Hybrid Installation Disk"

KSSTRING_ABdaFilter             = "{C30242DA-6063-4d76-A0F1-A5E0B09F6ACD}"
KSSTRING_CBdaFilter             = "{F2F5D5A5-F937-41b7-9BFF-0AA6C4B9B054}"
KSSTRING_TBdaFilter             = "{2598A28C-6899-4d04-918F-93310ED069D5}"
KSSTRING_TBdaReceiverFilter     = "{5BB3DBD0-9E1E-424c-9281-6B5E7109F111}"

GUID_ANALOGTVTUNER              = "{72E8D281-6A3B-4757-89C5-E6E3EFBA24DD}"
GTV6010.TvTuner              = "GOTVIEW USB TvTuner"

GUID_TVAUDIO                    = "{579364E7-6D64-4e01-82EE-3C212B31299A}"
GTV6010.TvAudio              = "GOTVIEW USB TvAudio"

GUID_XBAR                       = "{A23D0FC9-8982-4fa8-AD49-636F29DD73FF}"
GTV6010.Crossbar             = "GOTVIEW USB Crossbar"

GUID_STREAMCAPTURE              = "{D8257770-561A-4c8f-B055-969398D34E0B}"
GTV6010.Capture              = "GOTVIEW USB Capture"

GUID_AUDIOOUT                   = "{8AFBBCCD-DFBC-4dfd-B6BF-63EFF1EC5100}"
GTV6010.AudioName            = "GOTVIEW USB Audio"
Audio.Name                      = "Audio"

;
; The following items should be moved to KS_registration - TCP
;
KSCATEGORY_BDATUNER     = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSCATEGORY_BDARECEIVER	= "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"	
KSCATEGORY_CROSSBAR     = "{a799a801-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVTUNER      = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVAUDIO      = "{a799a802-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_CAPTURE      = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO        = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO        = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"

MediaCategories         = "SYSTEM\CurrentControlSet\Control\MediaCategories"
    
