;------------------------------------------------------------------------
; 
;  Copyright and Disclaimer: 
;   
;     All rights reserved. 
;
;------------------------------------------------------------------------

[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Company%
DriverVer=09/13/2010,1.5.0913.0
CatalogFile=cydtv.cat

[Manufacturer]
%Company%=MyCompany,NTamd64

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

[SourceDisksFiles]
cydtv.sys=1


[MyCompany.NTamd64]
%D680_DMB.DeviceDesc%    = D680_DMB,  USB\VID_0572&PID_86D6
%D320_DMB.DeviceDesc%    = D320_DMB,  USB\VID_0572&PID_D320
%D685_DMB.DeviceDesc%    = D685_DMB,  USB\VID_0572&PID_D685
%D688_DMB.DeviceDesc%    = D688_DMB,  USB\VID_0572&PID_D688
%TC680_DVB.DeviceDesc%   = TC680_DVB, USB\VID_0572&PID_C680
%D687_DMB.DeviceDesc%    = D687_DMB,  USB\VID_0572&PID_D687
%SU2000.DeviceDesc%      = SU2000,    USB\VID_1F4D&PID_2000
%SU3100.DeviceDesc%      = SU3000,    USB\VID_1F4D&PID_3100
%SU3000.DeviceDesc%      = SU3000,    USB\VID_1F4D&PID_3000
%SU8000.DeviceDesc%      = SU8000,    USB\VID_1F4D&PID_8000

[MyCompany]
%D680_DMB.DeviceDesc%    = D680_DMB,  USB\VID_0572&PID_86D6
%D320_DMB.DeviceDesc%    = D320_DMB,  USB\VID_0572&PID_D320
%D685_DMB.DeviceDesc%    = D685_DMB,  USB\VID_0572&PID_D685
%D688_DMB.DeviceDesc%    = D688_DMB,  USB\VID_0572&PID_D688
%TC680_DVB.DeviceDesc%   = TC680_DVB, USB\VID_0572&PID_C680
%D687_DMB.DeviceDesc%    = D687_DMB,  USB\VID_0572&PID_D687
%SU2000.DeviceDesc%      = SU2000,    USB\VID_1F4D&PID_2000
%SU3100.DeviceDesc%      = SU3000,    USB\VID_1F4D&PID_3100
%SU3000.DeviceDesc%      = SU3000,    USB\VID_1F4D&PID_3000
%SU8000.DeviceDesc%      = SU8000,    USB\VID_1F4D&PID_8000

[D680_DMB.NT]
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=     LwireDev.AddReg,D680.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[D320_DMB.NT]
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=     LwireDev.AddReg,D320.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[D685_DMB.NT]
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=     LwireDev.AddReg,D685.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[D688_DMB.NT]
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=     LwireDev.AddReg,D688.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[TC680_DVB.NT]
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=     LwireDev.AddReg,TC680.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[D687_DMB.NT]
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=     LwireDev.AddReg,D687.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[SU2000.NT]
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=     LwireDev.AddReg,SU2000.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[SU3000.NT]
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=     LwireDev.AddReg,SU3000.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[SU8000.NT]
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=     LwireDev.AddReg,SU8000.AddReg,NullTuner.AddReg,LWTS.AddReg
CopyFiles=  CXLWIRE.CopyDrivers  

[DestinationDirs]
CXLWIRE.CopyDrivers=10,system32\drivers


[CXLWIRE.CopyDrivers]
cydtv.sys

[LwireDev.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,cydtv.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

[LWTS.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


[D680.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x10,0x00,0x00,0x00
HKR,"DriverData","UseFreqOffsetDVBT",0x00010001, 0x7D, 0x00, 0x00, 0x00
HKR,"DriverData","DemodType",0x00010001, 0x02, 0x00, 0x00, 0x00
HKR,"DriverData","SoftFilter",0x00010001, 0x01, 0x00, 0x00, 0x00

[D320.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x11,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

[D685.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x12,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","RefClk",0x00010001, 0x06, 0x00, 0x00, 0x00

[D687.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x15,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","RefClk",0x00010001, 0x01, 0x00, 0x00, 0x00

[D688.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x13,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","RefClk",0x00010001, 0x06, 0x00, 0x00, 0x00
HKR,"DriverData","RSSI",0x00010001, 0x64, 0x00, 0x00, 0x00

[TC680.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x14,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","RefClk",0x00010001, 0x06, 0x00, 0x00, 0x00

[SU2000.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x18,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","RefClk",0x00010001, 0x01, 0x00, 0x00, 0x00

[SU3000.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x19,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","RefClk",0x00010001, 0x01, 0x00, 0x00, 0x00

[SU8000.AddReg]
;------------------------------
HKR,"DriverData","BoardType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x17,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","RefClk",0x00010001, 0x01, 0x00, 0x00, 0x00

;
; Interfaces installation
;

[D680_DMB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[D320_DMB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[D685_DMB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[D687_DMB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[D688_DMB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[TC680_DVB.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[SU2000.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[SU3000.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

[SU8000.NT.Interfaces]
AddInterface =%KSCATEGORY_BDATUNER%,%KSSTRING_BdaLWireSWTunerFilter%,CXBDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%KsTSNameFilter%,TS_Interface

;
[CXBDATUNE_Interface]
AddReg = CXBDATUNE_Interface.AddReg

[CXBDATUNE_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%BdaTunerFriendlyName%


[TS_Interface]
AddReg=TS_Interface.AddReg

[TS_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%TSFriendlyName%


;
; Services installation
;

[D680_DMB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[D320_DMB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[D685_DMB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[D687_DMB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[D688_DMB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[TC680_DVB.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[SU2000.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[SU3000.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[SU8000.NT.Services]
AddService = CYDTV_SRV,2,LwireDevice.ServiceInstall

[LwireDevice.ServiceInstall]
DisplayName   = %LWIREService.DeviceDesc%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\cydtv.sys

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

[Strings]
Company		 		= "China"
DriverDisk			= "cydtv Drivers"
LWIREService.DeviceDesc         = "cydtv Driver"
D680_DMB.DeviceDesc             = "DMB-TH Stick"
D320_DMB.DeviceDesc             = "DMB-TH USB Stick"
D685_DMB.DeviceDesc             = "DMB-TH USB Stick"
D687_DMB.DeviceDesc             = "DMB-TH USB Stick"
D688_DMB.DeviceDesc             = "DMB-TH USB Stick"
TC680_DVB.DeviceDesc            = "DVB-T/C USB Stick"
SU2000.DeviceDesc               = "DVB-S USB Box"
SU3100.DeviceDesc               = "PCI DVB-S/S2 TV Card"
SU3000.DeviceDesc               = "DVB-S/S2 USB Box"
SU8000.DeviceDesc               = "DVB-S2 USB Box"

BdaTunerFriendlyName		= "Digital TV"

Proxy.CLSID                  = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

ActiveMovieCategories        = "CLSID\{da4e3da0-d07d-11d0-bd50-00a0c911ce86}\Instance"
MediaCategories              = "SYSTEM\CurrentControlSet\Control\MediaCategories"
MediaSets                    = "System\CurrentControlSet\Control\MediaSets"
MediaInterfaces              = "System\CurrentControlSet\Control\MediaInterfaces"

; Specify the GUID for the BDA Source Filters category in GraphEdit.
;
KSCATEGORY_BDATUNER="{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSSTRING_BdaLWireSWTunerFilter="{972B7BB1-8149-4a72-B891-83E3C7DFE596}"
BdaSWTuner.DeviceId =   "{828B00F0-9A04-4692-8573-535B05DFF3F4}"
TSPinID             =   "{5237C937-0A21-4f7e-B338-DE0D0793D03F}"
TSPinName           =   "TS Out"
TSFriendlyName      = 	"AVStream TS Capture"
KsTSNameFilter      =   "{452660BD-3B39-4e34-9B97-3D3BC054AF5D}"
