;
; Copyright (c) 2013-2014
; This file installs BDA driver for the TechnoTrend TT-connect CT2-4650 CI
;

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

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

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

[SourceDisksFiles]
ttConnect4650.sys=1
ttConnect4650_64.sys=1

[TechnoTrend.NTamd64]
%TT4650.DeviceDesc%       = TT4650,     USB\VID_0B48&PID_3012     ;dvb-t2/t/c with CI

[TechnoTrend.NTx86]
%TT4650.DeviceDesc%       = TT4650,     USB\VID_0B48&PID_3012     ;dvb-t2/t/c with CI

[TT4650.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,TT4650.AddReg,NullTuner.AddReg,BSTS.AddReg
CopyFiles=  BTDTV.CopyDrivers.NTamd64

[TT4650.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,TT4650.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]
ttConnect4650_64.sys

[BTDTV.CopyDrivers.NTx86]
ttConnect4650.sys

[BTDTV.AddReg.NTamd64]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ttConnect4650_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,,ttConnect4650.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%

[TT4650.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
;
[TT4650.NTamd64.Services]
AddService = TT4650_SRV_64,2,BTDTVDevice.ServiceInstall.NTamd64

[TT4650.NTx86.Services]
AddService = TT4650_SRV,2,BTDTVDevice.ServiceInstall.NTx86

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

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

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

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