;
; Copyright (c) 2013-2014
; This file installs BDA driver for the TechnoTrend TT-TVStick CT2-4400
;

[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Company%
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%PackageName%
DriverVer=07/26/2014,4.3.0.0
CatalogFile=ttTVStick4400.cat

[Manufacturer]
%Company%=TechnoTrend,NTx86,NTamd64

[SourceDisksNames]
1=%DriverDisk%,,,""

[SourceDisksFiles]
ttTVStick4400.sys=1
ttTVStick4400_64.sys=1

[TechnoTrend.NTamd64]
%TT4400.DeviceDesc%       = TT4400,     USB\VID_0B48&PID_3014     ;dvb-t2/t/c

[TechnoTrend.NTx86]
%TT4400.DeviceDesc%       = TT4400,     USB\VID_0B48&PID_3014     ;dvb-t2/t/c

[TT4400.NTamd64]
Include=    ks.inf, kscaptur.inf,ksfilter.inf, wdmaudio.inf, bda.inf
Needs=      KS.Registration, KSCAPTUR.Registration.NT,MSPCLOCK.Installation, WDMAUDIO.Registration, BDA.Registration, bda.Installation.NT
AddReg=     BTDTV.AddReg.NTamd64,TT4400.AddReg,NullTuner.AddReg,BSTS.AddReg
CopyFiles=  BTDTV.CopyDrivers.NTamd64

[TT4400.NTx86]
Include=    ks.inf, kscaptur.inf,ksfilter.inf, wdmaudio.inf, bda.inf
Needs=      KS.Registration, KSCAPTUR.Registration.NT,MSPCLOCK.Installation, WDMAUDIO.Registration, BDA.Registration, bda.Installation.NT
AddReg=     BTDTV.AddReg.NTx86,TT4400.AddReg,NullTuner.AddReg,BSTS.AddReg
CopyFiles=  BTDTV.CopyDrivers.NTx86

[DestinationDirs]
BTDTV.CopyDrivers.NTamd64=10,system32\drivers
BTDTV.CopyDrivers.NTx86=10,system32\drivers

[BTDTV.CopyDrivers.NTamd64]
ttTVStick4400_64.sys

[BTDTV.CopyDrivers.NTx86]
ttTVStick4400.sys

[BTDTV.AddReg.NTamd64]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ttTVStick4400_64.sys
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01

[BTDTV.AddReg.NTx86]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ttTVStick4400.sys
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01


[NullTuner.AddReg]
;---Tuner registry values------
HKR,"DriverData","TunerType",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xC2, 0x00, 0x00, 0x00
HKR,"DriverData","Tuner2IFAddress",0x00010001, 0x86, 0x00, 0x00, 0x00

[BSTS.AddReg]
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Name,,%TSPinName%
; TS filter parameters
HKR,"DriverData","dwTS_GEN_CNTRL",0x00010001,     0x04,0x00,0x00,0x00
HKR,"DriverData","dwIsTSStream",0x00010001,       0x00,0x00,0x00,0x00
HKR,"DriverData","dwTP_PACKET_SIZE",0x00010001,   0xBC,0x00,0x00,0x00
HKR,"DriverData","FriendlyName",, %BdaTunerFriendlyName%

[TT4400.AddReg]
;------------------------------
HKR,"DriverData","BoardID",0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","BoardType",0x00010001, 0x03, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x1B,0x00,0x00,0x00
HKR,"DriverData","UseFreqOffsetDVBT",0x00010001, 0x7D, 0x00, 0x00, 0x00
HKR,"DriverData","DemodType",0x00010001, 0x02, 0x00, 0x00, 0x00
HKR,"DriverData","SoftFilter",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","MultiDevice",0x00010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TsClk",0x00010001, 0x20, 0x1c, 0x00, 0x00
HKR,"DriverData","ClkMode",0x00010001, 0x01, 0x00, 0x00, 0x00

;
; Services installation
;
[TT4400.NTamd64.Services]
AddService = TT4400_SRV_64,2,BTDTVDevice.ServiceInstall.NTamd64

[TT4400.NTx86.Services]
AddService = TT4400_SRV,2,BTDTVDevice.ServiceInstall.NTx86

[BTDTVDevice.ServiceInstall.NTamd64]
DisplayName   = %BTService.DeviceDesc%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\ttTVStick4400_64.sys

[BTDTVDevice.ServiceInstall.NTx86]
DisplayName   = %BTService.DeviceDesc%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\ttTVStick4400.sys

;---------------------------------------------------------------
;                S t r i n g s
;---------------------------------------------------------------

[Strings]
Company		 		= "CityCom GmbH"
PackageName 			= "TT-TVStick CT2-4400 Drivers"
DriverDisk			= "TT-TVStick CT2-4400 Drivers"
BTService.DeviceDesc         	= "TT-TVStick CT2-4400 Service"
SERVICE_DESCRIPTION	        = "TT-TVStick CT2-4400 (BDA) Driver"
MediaCategories                 = "SYSTEM\CurrentControlSet\Control\MediaCategories"
TSPinID                         = "{5237C937-0A21-4f7e-B338-DE0D0793D03F}"
TSPinName                       = "TS Out"
TT4400.DeviceDesc               = "TT-TVStick CT2-4400 (BDA)"
BdaTunerFriendlyName		= "TT-TVStick CT2-4400"
