;==============================================================================
; TerraTec TerraTV WDM Driver Install Script
; TerraTV.INF
; Copyright (c) 2000-02, TerraTec Electronic GmbH
;------------------------------------------------------------------------------
; Notes:
;  a) Driver filenames must be <= 8 characters (8.3 format) !
;  b) Win9x: Section names must be <= 28 characters ! 
;  c) Win9x: [SourceDisksNames] must always come before [SourceDisksFiles]  !!!   
;  d) Win9x: Filenames must be in 8.3 format  !              
;  e) Win9x: Registry pathes must use single slashes
;  f) [xxx.KnownFiles] sections are used by Win9x only
;  g) [xxx.Services] sections are used by WinNT only
;  h) If we have OS specific DDInstall sections we must have 
;     OS specific [xxx.Interfaces] and [.HW] also!
;
; History: 
;   06-Feb-02 (FMB) - added KSCATEGORY_VIDEO interface registration
;                     so that the Capture device is now detected by the VfW-WDM-Wrapper
;                   - also force install of ks.sys,stream.sys amd msyuv.dll
;                   - replaced KSCAPTUR.Registration.NT with KSCAPTUR.Registration
;   30-May-01 (FMB) - TerraTV+ w/o EEPROM had wrong PLL settings
;   26-Apr-01 (FMB) - Added uninstall utility
;                   - Support driver cab file
;   09-Feb-01 (C.L) - Added "Delete" Sections for tttvinit (File and Registry)
;   01-Feb-01 (C.L) - removed entry for tttvinit.sys. Now we can use one inf-file
;                   - for each platform
;   29-Jan-01 (C.L) - added new Id's for TerraTValue (An.) and TerraTValue Radio
;   15-Apr-00 (FMB) - renamed TTVFILTER.SYS -> TTTVINIT.SYS (= 8.3 format)
;   07-Nov-00 (FMB) - different sections for cards with 35 or 28 MHz Xtal
;                   - merged BtXBar.inf and BtTuner.inf into this file
;                   - added two more audio input pins to Crossbar device
;==============================================================================
;------------------------------------------------------------------------------
; Customization for CX drivers
;------------------------------------------------------------------------------
; a) Set Hibernate on (for   3 devices)
;    HKR,,OkToHibernate,3,00
; B) Exchange file names in [Strings] section
;    FILE_VCAP ="CxVCap.sys"
;    FILE_TUNE ="CxTuner.sys" 
;    FILE_XBAR ="CxXBar.sys"
; c) Delete BT driver files in [BT.DelFilter]
; d) Increase the driver version in [Version]
;    DriverVer=02/07/2002,5.0.2000.52
; e) TunerType enumeration differs !!!
;    CX drivers: TunerType = 2
;    BT drivers: TunerType = 3
; f) [TTXBAR.AddReg]
;    The order of number of inputs pins differs!



;------------------------------------------------------------------------------
; SubSystem Vendor ID List
;------------------------------------------------------------------------------
;
; ID Number     Manufacturer
;
; 0x127A        Rockwell Semiconductor Systems 
; 0x109E        Conexant 
; 0x153B        TerraTec Electronic GmbH

;------------------------------------------------------------------------------
; Device ID List
;------------------------------------------------------------------------------
;
; ID Number     Device
;
; 0x350         Bt848
; 0x351         Bt849
; 0x36E         Bt878 (Video Section)
; 0x878         Bt878 (Audio Section)
;------------------------------------------------------------------------------

[Version]
LayoutFile=Layout.inf,Layout1.inf,Layout2.inf
signature="$Chicago$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Msft%
DriverVer=07/23/2002,5.0.2000.51
; for CX driver increase the driver version
;DriverVer=02/07/2002,5.0.2000.52

[SourceDisksNames]
; FMB NOTE:
; Section [SourceDisksNames] must always come before [SourceDisksFiles]  (Windows 98) !!!                 
1=%DiskId%,,,""
;1=%DiskId%,"TerraTV.CAB",

[SourceDisksFiles]
BT848.SYS=1
BTTUNER.SYS=1
BTXBAR.SYS=1
UninstTv.exe=1

[ControlFlags]
;Hide Audio devs, we install no driver anyway
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1123153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1127153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_18521852
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1117153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1118153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1119153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1119153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_111A153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1134153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_1135153B
ExcludeFromSelect=PCI\VEN_109E&DEV_0878&SUBSYS_00000000

ExcludeFromSelect=STREAM\TTXBAR
ExcludeFromSelect=STREAM\BTTUNER.TTPalBG

[DestinationDirs] 
; C.L. very strange behaviour, DefaultDestDir doesn't work. Although all files are 
; copied into the given directory, the crossbar- and tuner filter cannot be instantiated
; 10 -> Windows directory
;DefaultDestDir=10,system32\drivers 
BT.CopyDrivers=10,system32\drivers
BT.CopySystem=10,system32\drivers
BT.CopyCodec=11
BT.CopyUninst=10
BT.DelFilter=10,system32\drivers
BT.DelDriver=10,system
BT.DelUtil=10

[PreCopySection]
HKR,,NoSetupUI,,1

[Manufacturer]
%MsftMfg%=TerraTec

[TerraTec]
;------------------------------------------------------------------------------
; Audio device (BT878 only)
;------------------------------------------------------------------------------
; The audio device is not used with TerraTec cards
; TerraTV Radio+
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1123153B

; TerraTV+ BT878
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1127153B
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_18521852

; TerraTValue
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1117153B
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1118153B
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1119153B
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_111A153B

; TerraValue (new Rev. An.)
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1134153B

; TValue Radio
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_1135153B


; Default BT878
; C.L. Device will appear twice in the driver list if no SubsystemID is given
;%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878
%BT.AudioDeviceDesc%=AudioSection,PCI\VEN_109E&DEV_0878&SUBSYS_00000000

;------------------------------------------------------------------------------
; Video devices for TerraTec cards (BT848 has no audio device)
;------------------------------------------------------------------------------

; TerraTv Radio+ (FM1236)
%BT.VideoDeviceDesc%=BT.PalBG_35MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1123153B

; TerraTv+ V. 1.00 (FM1216, BT848, no EEPROM)
%BT.VideoDeviceDesc%=BT.PalBG_35MHz,PCI\VEN_109E&DEV_0350&SUBSYS_00000000
%BT.VideoDeviceDesc%=BT.PalBG_35MHz,PCI\VEN_109E&DEV_0350&SUBSYS_1127153B
; TerraTv+ V. 1.05 (FM1216, BT878)
%BT.VideoDeviceDesc%=BT.PalBG_35MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1127153B
; TerraTv+ V. 1.10 (FM1216, BT878)
%BT.VideoDeviceDesc%=BT.PalBG_35MHz,PCI\VEN_109E&DEV_036E&SUBSYS_18521852


; TerraTValue Philips PAL B/G (FM1216)
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1117153B
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_0350&SUBSYS_1117153B

; TerraTValue Temic PAL B/G
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1118153B
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_0350&SUBSYS_1118153B

; TerraTValue Philips PAL B/G (new Rev. An.)
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1134153B

; TValue Radio
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E&SUBSYS_1135153B


;------------------------------------------------------------------------------
; Some BT848 or BT878 boards have no SubSystem ID or SubSystem Vendor ID
; -> default to TerraTValue settings (Philips Pal B/G, 28 MHz X'tal)
;------------------------------------------------------------------------------
; C.L. Device will appear twice in the driver list if no SubsystemID is given
;%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E
%BT.VideoDeviceDesc%=BT.PalBG_28MHz,PCI\VEN_109E&DEV_036E&SUBSYS_00000000

;------------------------------------------------------------------------------
; Crossbar device
;------------------------------------------------------------------------------
%TTXBAR.DeviceDesc%=TTXBAR,STREAM\TTXBAR

;------------------------------------------------------------------------------
; Tuner devices
;------------------------------------------------------------------------------
%BTTUNER.DeviceDescPPBG%=BTTUNER.TTPalBG,STREAM\BTTUNER.TTPalBG



;==============================================================================
; Audio device
;==============================================================================
[AudioSection]
;AddReg=
;CopyFiles=

[AudioSection.NT]
;AddReg=
;CopyFiles=

[AudioSection.NT.Services]
AddService = , 2  ; null service install


;==============================================================================
; Video devices
;==============================================================================

;------------------------------------------------------------------------------
; Philips PAL B/G tuner with 35 MHz Xtal
;------------------------------------------------------------------------------

[BT.PalBG_35MHz]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
AddReg=     BT.AddReg,Devices.AddReg,35MHZ_XTAL.AddReg,Uninst.AddReg
CopyFiles=  BT.CopyDrivers,BT.CopySystem,BT.CopyCodec,BT.CopyUninst
DelFiles=   BT.DelFilter,BT.DelDriver,BT.DelUtil
UpdateInis= BT.UpdateIni
KnownFiles= BT.KnownFiles

[BT.PalBG_35MHz.NT]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT.AddReg,Devices.AddReg,35MHZ_XTAL.AddReg,Uninst.AddReg
CopyFiles=  BT.CopyDrivers,BT.CopySystem,BT.CopyCodec,BT.CopyUninst
DelFiles=   BT.DelFilter,BT.DelDriver,BT.DelUtil
UpdateInis= BT.UpdateIni


[BT.PalBG_35MHz.HW]
DelReg=BT.DelRegHW

[BT.PalBG_35MHz.NT.HW]
DelReg=BT.DelRegHW

;------------------------------------------------------------------------------
; Philips PAL B/G tuner with 28 MHz Xtal
;------------------------------------------------------------------------------

[BT.PalBG_28MHz]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
AddReg=     BT.AddReg,Devices.AddReg,28MHZ_XTAL.AddReg,Uninst.AddReg
CopyFiles=  BT.CopyDrivers,BT.CopySystem,BT.CopyCodec,BT.CopyUninst
DelFiles=   BT.DelFilter,BT.DelDriver,BT.DelUtil
UpdateInis= BT.UpdateIni
KnownFiles= BT.KnownFiles

[BT.PalBG_28MHz.NT]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     BT.AddReg,Devices.AddReg,28MHZ_XTAL.AddReg,Uninst.AddReg
CopyFiles=  BT.CopyDrivers,BT.CopySystem,BT.CopyCodec,BT.CopyUninst
DelFiles=   BT.DelFilter,BT.DelDriver,BT.DelUtil
UpdateInis= BT.UpdateIni

[BT.PalBG_28MHz.HW]
DelReg=BT.DelRegHW

[BT.PalBG_28MHz.NT.HW]
DelReg=BT.DelRegHW



;==============================================================================
; CopyFile sections
;==============================================================================

[BT.CopyDrivers]
BT848.SYS,,,
BTTUNER.SYS,,,
BTXBAR.SYS,,,

[BT.CopySystem]
stream.sys,,,
ks.sys,,,

[BT.CopyCodec]
msyuv.dll

[BT.CopyUninst]
UninstTv.exe,,,



;==============================================================================
; DelFile sections
;==============================================================================
; FMB NOTE; the flag 1 at the end forces Win98/ME to remove the file 
; even if it is in use
[BT.DelUtil]
uitv.exe,,,1

;------------------------------------------------------------------------------
; TTVINIT is obsolete
;------------------------------------------------------------------------------
[BT.DelFilter]
TtTvInit.sys,,,1
; FMB NOTE: CX drivers only: drivers have new names, delete the old ones
;Bt848.sys,,,1
;BtXBar.sys,,,1
;BtTuner.sys,,,1  

[BT.DelDriver]
;FMB: These drivers may have been copied to the wrong directory during a driver update
Bt848.sys,,,1
BtXBar.sys,,,1
BtTuner.sys,,,1  
TtTvInit.sys,,,1
stream.sys,,,1

;==============================================================================
; AddReg sections
;==============================================================================


[BT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,BT848.SYS
HKR,,OkToHibernate,3,00
; FMB NOTE: For CX drivers switch Hibernate on!
;HKR,,OkToHibernate,3,01

HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XBarInPin0",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData","XBarInPin1",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","XBarInPin2",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData","XBarInPin3",0x00010001, 0x00,0x10,0x00,0x00
; FMB NEW
HKR,"DriverData","BobMode",0x00010001, 0x00, 0x00, 0x00, 0x00

[28MHZ_XTAL.AddReg]
; use PLL (TerraTValue)
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00

[35MHZ_XTAL.AddReg]
; don't use PLL
HKR,"DriverData","XTal0",0x00010001, 0x23, 0x00, 0x00, 0x00

[Uninst.AddReg]
; FMB NOTE: double slashes work under NT/2K but not under 98/ME !!!
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\TerraTV Drivers","DisplayName",,"TerraTec TerraTV Drivers"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\TerraTV Drivers","DisplayIcon",,"UninstTv.exe"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\TerraTV Drivers","UninstallString",,"UninstTv.exe"


[Devices.AddReg]
;VideoStandard - see enumeration of "AnalogVideoStandard" in STRMIF.H
; 0x00000001 - NTSC, 
; 0x00000010 - PAL B,
; 0x00000040 - PAL G,
; 0x00000100 - Pal I
HKR,"DriverData","VideoStandard",0x00010001, 0x10,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"BTTUNER.TTPalBG"
HKR,"ENUM\Device2",pnpid,,"TTXBAR" 



;==============================================================================
; DelReg sections
;==============================================================================
; Delete entry for Upperfilter, obsolete since this part has been moved to the
; Capture driver
[BT.DelRegHW]
HKR, "UpperFilters",

;==============================================================================
; UpdateInis sections
;==============================================================================
[BT.UpdateIni]
system.ini, drivers32,,"VIDC.UYVY=msyuv.dll"

;==============================================================================
; KnownFiles sections
;==============================================================================
[BT.KnownFiles]
BT848.SYS=safe
BTTUNER.SYS=safe    
BTXBAR.SYS=safe
UninstTv.exe=safe


;------------------------------------------------------------------------------
; Capture interfaces
;------------------------------------------------------------------------------

[BT.PalBG_35MHz.Interfaces]
AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",IF_VideoCapture, 
AddInterface=%KSCATEGORY_TVAUDIO%,"GLOBAL",IF_TvAudio,

[BT.PalBG_35MHz.NT.Interfaces]
AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",IF_VideoCapture, 
AddInterface=%KSCATEGORY_TVAUDIO%,"GLOBAL",IF_TvAudio,

[BT.PalBG_28MHz.Interfaces]
AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_TVAUDIO%,"GLOBAL",IF_TvAudio,

[BT.PalBG_28MHz.NT.Interfaces]
AddInterface=%KSCATEGORY_VIDEO%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",IF_VideoCapture,
AddInterface=%KSCATEGORY_TVAUDIO%,"GLOBAL",IF_TvAudio,

[IF_VideoCapture]
AddReg=IF_VideoCapture.AddReg

[IF_VideoCapture.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%BT.Capture%

[IF_TvAudio]
AddReg=IF_TvAudio.AddReg

[IF_TvAudio.AddReg]
HKR,,CLSID,,%ProxyTvAudio.CLSID%
HKR,,FriendlyName,,%BT.TvAudio%



;------------------------------------------------------------------------------
; Capture Service (NT only)
;------------------------------------------------------------------------------
[BT.PalBG_35MHz.NT.Services]
AddService = BT848,0x00000002,BT.ServiceInstall

[BT.PalBG_28MHz.NT.Services]
AddService = BT848,0x00000002,BT.ServiceInstall

[BT.ServiceInstall]
DisplayName   = %BT.VideoDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\BT848.SYS



;==============================================================================
; Crossbar device
;==============================================================================
[TTXBAR]
AddReg   =  TTXBAR.AddReg
CopyFiles=  TTXBAR.CopyDrivers
KnownFiles= TTXBAR.KnownFiles

[TTXBAR.NT]
AddReg   =  TTXBAR.AddReg
CopyFiles=  TTXBAR.CopyDrivers


[TTXBAR.CopyDrivers]
;BTXBAR.SYS

[TTXBAR.KnownFiles]
BTXBAR.SYS=safe

[TTXBAR.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,BTXBAR.SYS
HKR,,OkToHibernate,3,00
; FMB NOTE: For CX drivers switch Hibernate on!
;HKR,,OkToHibernate,3,01

HKR,,PageOutWhenUnopened,3,01

; FMB LastVideoSource = 0 -> tuner
HKR,"DriverData","LastVideoSource",0x00010001, 0x00,0x00,0x00,0x00
; FMB LastAudioSource = e.g. -1 (0xff,0xff,0xff,0xff) -> mute
HKR,"DriverData","LastAudioSource",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData","AudioType",0x00010001, 0x00,0x00,0x00,0x00

; OUTPUTS
;video video decoder
HKR,"DriverData\OutPin0","PinType",0x00010001, 0x0C,0x00,0x00,0x00
HKR,"DriverData\OutPin0","RelatedPinIndex",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\OutPin0","Medium",,%GUID_4%

;audio audio decoder
HKR,"DriverData\OutPin1","PinType",0x00010001, 0x09,0x10,0x00,0x00
HKR,"DriverData\OutPin1","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\OutPin1","Medium",,%GUID_NULL%
				 
; INPUTS
;video tuner
HKR,"DriverData\InPin0","PinType",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\InPin0","RelatedPinIndex",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\InPin0","Medium",,%GUID_0%

;audio tuner
HKR,"DriverData\InPin1","PinType",0x00010001, 0x00,0x10,0x00,0x00
HKR,"DriverData\InPin1","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\InPin1","Medium",,%GUID_3%

; FMB: the following pins are relevant only for TerraTV+/Radio+

;video SVideo
HKR,"DriverData\InPin2","PinType",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData\InPin2","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\InPin2","Medium",,%GUID_NULL%


;video composite
HKR,"DriverData\InPin3","PinType",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\InPin3","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\InPin3","Medium",,%GUID_NULL%

;audio line
HKR,"DriverData\InPin4","PinType",0x00010001, 0x01,0x10,0x00,0x00
HKR,"DriverData\InPin4","RelatedPinIndex",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\InPin4","Medium",,%GUID_5%

;audio CD ( -> AUX)
HKR,"DriverData\InPin5","PinType",0x00010001, 0x06,0x10,0x00,0x00
HKR,"DriverData\InPin5","RelatedPinIndex",0x00010001, 0xFF,0xFF,0xFF,0xFF
HKR,"DriverData\InPin5","Medium",,%GUID_NULL%

;audio radio ( -> AUX)
HKR,"DriverData\InPin6","PinType",0x00010001, 0x06,0x10,0x00,0x00
HKR,"DriverData\InPin6","RelatedPinIndex",0x00010001, 0xFF,0xFF,0xFF,0xFF
HKR,"DriverData\InPin6","Medium",,%GUID_NULL%


;------------------------------------------------------------------------------
; Crossbar Interface
;------------------------------------------------------------------------------
[TTXBAR.Interfaces]
AddInterface=%KSCATEGORY_CROSSBAR%,"GLOBAL",IF_Crossbar,

[TTXBAR.NT.Interfaces]
AddInterface=%KSCATEGORY_CROSSBAR%,"GLOBAL",IF_Crossbar,

[IF_Crossbar]
AddReg=IF_Crossbar.AddReg

[IF_Crossbar.AddReg]
HKR,,CLSID,,%ProxyXBar.CLSID%
HKR,,FriendlyName,,%TTXBAR.Crossbar%

;------------------------------------------------------------------------------
; Crossbar Service
;------------------------------------------------------------------------------
[TTXBAR.NT.Services]
AddService = BTXBAR,0x00000002,TTXBAR.ServiceInstall

[TTXBAR.ServiceInstall]
DisplayName   = %TTXBAR.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\BTXBAR.SYS


;==============================================================================
; Tuner devices
;==============================================================================
[BTTUNER.TTPalBG]
AddReg   =  BTTUNER.AddReg,PhilipsPalBG.AddReg
CopyFiles=  BTTUNER.CopyDrivers
KnownFiles= BTTUNER.KnownFiles

[BTTUNER.TTPalBG.NT]
AddReg   =  BTTUNER.AddReg,PhilipsPalBG.AddReg
CopyFiles=  BTTUNER.CopyDrivers

[BTTUNER.CopyDrivers]
;BTTUNER.SYS,,,

[BTTUNER.KnownFiles]
BTTUNER.SYS=safe

;------------------------------------------------------------------------------
; Tuner AddReg
;------------------------------------------------------------------------------
; TunerBrand 1- Temic (NTSC), 2- Philips/Temic (PAlB/G), 3- Alps
; TunerType  1- NTSC-M,  2- NTSC-J, 3- PAL B/G, 4-PAL-I
; TunerMode  1- TV, 2- FM, 3- ATSC
; TunerI2CAddress 0xC0 for Philips tuner

[BTTUNER.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,BTTUNER.SYS
HKR,,OkToHibernate,3,00                                
; FMB NOTE: For CX drivers switch Hibernate on!
;HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,01

[PhilipsPalBG.AddReg]
HKR,"DriverData","TunerBrand",0x00010001, 0x02, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xc0, 0x00, 0x00, 0x00
HKR,"DriverData","TunerType",0x00010001, 0x03, 0x00, 0x00, 0x00
HKR,"DriverData","TunerMode",0x0010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TunerInput",0x00010001, 0x00, 0x00, 0x00, 0x00

;------------------------------------------------------------------------------
; Tuner Interface
;------------------------------------------------------------------------------
[BTTUNER.TTPalBG.Interfaces]
AddInterface=%KSCATEGORY_TVTUNER%,"GLOBAL",IF_TvTuner,

[BTTUNER.TTPalBG.NT.Interfaces]
AddInterface=%KSCATEGORY_TVTUNER%,"GLOBAL",IF_TvTuner,

[IF_TvTuner]
AddReg=IF_TvTuner.AddReg

[IF_TvTuner.AddReg]
HKR,,CLSID,,%ProxyTuner.CLSID%
HKR,,FriendlyName,,%BTTUNER.TUNER%


;------------------------------------------------------------------------------
; Tuner Services
;------------------------------------------------------------------------------
[BTTUNER.TTPalBG.NT.Services]
AddService = BTTUNER,0x00000002,BTTUNER.ServiceInstall

[BTTUNER.ServiceInstall]
DisplayName   = %BTTUNER.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_AUTO_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\BTTUNER.SYS


;==============================================================================
; Strings
;==============================================================================

[Strings]

; Non-Localizable Strings

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

SERVICEROOT= "System\CurrentControlSet\Services"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

MediaClassName="Sound, video and game controllers"

ProxyVCap.CLSID    = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
ProxyTuner.CLSID   = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
ProxyXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
ProxyTvAudio.CLSID = "{71F96462-78F3-11d0-A18C-00A0C9118956}"

KSCATEGORY_VIDEO   = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_CAPTURE = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_TVTUNER = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_CROSSBAR= "{a799a801-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_TVAUDIO = "{a799a802-a46d-11d0-a18c-00a02401dcd4}"
KSCATEGORY_VBICODEC= "{07dad660-22f1-11d1-a9f4-00c04fbbde8f}"


GUID_NULL="{00000000-0000-0000-0000-000000000000}"
GUID_0="{A19DC0E0-3B39-11D1-905F-0000C0CC16BA}"
GUID_3="{A19DC0E3-3B39-11D1-905F-0000C0CC16BA}"
GUID_5="{A19DC0E5-3B39-11D1-905F-0000C0CC16BA}"
GUID_4="{A19DC0E4-3B39-11D1-905F-0000C0CC16BA}"

; FMB NOTE: For CX drivers comment these strings out
FILE_VCAP="BT848.sys"
FILE_TUNE="BtTuner.sys" 
FILE_XBAR="BtXBar.sys"

; FMB NOTE: For CX drivers uncomment these strings
;FILE_VCAP="CxVCap.sys"
;FILE_TUNE="CxTuner.sys" 
;FILE_XBAR="CxXBar.sys"


;------------------------------------------------------------------------------
; Localizable Strings
;------------------------------------------------------------------------------

Msft=                   "TerraTec "
MsftMfg=                "TerraTec "
DiskId =                "TerraTV Driver CD"
;FMB NOTE: Take care: The TerraTV App relies on the deevice names below!
; (at least the first substring)
BT.AudioDeviceDesc =    "TerraTV WDM Audio Capture"
BT.VideoDeviceDesc=     "TerraTV WDM Video Capture"
TTXBAR.DeviceDesc=      "TerraTV WDM Crossbar"

BTTUNER.DeviceDescPPBG= "TerraTV Tuner (Philips PAL B/G)"
BTTUNER.DeviceDescPPI=  "TerraTV Tuner (Philips PAL I)"
BTTUNER.DeviceDescP=    "TerraTV Tuner (Philips NTSC)"
BTTUNER.DeviceDescT=    "TerraTV Tuner (Temic PAL B/G)"
BTTUNER.DeviceDescA=    "TerraTV Tuner (Alps NTSC)"

; BTTUNER.DeviceDesc is the name of the service
BTTUNER.DeviceDesc=     "TerraTV Tuner"

; Filter names
BT.TvAudio=             "TerraTV Audio"
BT.Capture=             "TerraTV Capture"
TTXBAR.Crossbar=        "TerraTV Crossbar"
BTTUNER.Tuner=          "TerraTV Tuner"
;Filter.VideoDeviceDesc="TerraTV Custom"




