;////////////////////////////////////////////////////////////////////////////////
;//
;//                           (C) AVID Development GmbH 2007
;//      All rights are reserved.  Reproduction in whole or in part is prohibited
;//      without the written consent of the copyright owner.
;//
;//      AVID Development GmbH reserves the right to make changes without notice at any time.
;//      AVID Development GmbH makes no warranty, expressed, implied or statutory, including
;//      but not limited to any implied warranty of merchantibility of fitness
;//      for any particular purpose, or that the use will not infringe any
;//      third party patent, copyright or trademark. 
;//      AVID Development GmbH must not be liable for any loss or damage arising from its use.
;//
;////////////////////////////////////////////////////////////////////////////////

;----------------------------------------------------------------------------------------------------
; Stargate.INF  -- This file contains installation information for
;                  "Pinnacle Systems PCTV DVB-S series" (450i,4000i) Project "Stargate"
;
; Copyright(c) 2006-2007 AVID Development GmbH, Braunschweig, Germany
;
; Support for Windows Media Center DVB-T emulation -> hints see @MCE
; Support for ProgDVB                              -> hints see @ProgDVB
;----------------------------------------------------------------------------------------------------

[Version]
Signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%RoyalTS.Provider%
CatalogFile=Stargate.cat 
DriverPackageType=PlugAndPlay
DriverPackageDisplayName="PCTV DVB-S series"
DriverVer=03/16/2007,4.2.1.0

[ControlFlags]
;;ExcludeFromSelect=*

[Manufacturer]
%RoyalTS.Provider%=Pinnacle

[SourceDisksNames]
1=%RoyalTS_INSTALLATION_DISK%,,

[SourceDisksFiles]
Stargate.sys=1

[DestinationDirs]
DefaultDestDir=11
BDADevice.CopyDrivers=10,system32\drivers

;------------------------------------------------------------------------------
; List of supported devices
;------------------------------------------------------------------------------
[Pinnacle]
%RoyalTS_S0.DeviceDesc%=BDADevice,PCI\VEN_11BD&DEV_0040&SUBSYS_004511BD     ; dual DVBS
%RoyalTS_S1.DeviceDesc%=BDADevice,PCI\VEN_11BD&DEV_0041&SUBSYS_004511BD     ; dual DVBS
%RoyalTS_CO.DeviceDesc%=BDADevice,PCI\VEN_11BD&DEV_0042&SUBSYS_004511BD     ; dual DVBS

%RoyalTS_S0S.DeviceDesc%=BDADevice,PCI\VEN_11BD&DEV_0040&SUBSYS_004811BD    ; single DVBS
%RoyalTS_COS.DeviceDesc%=BDADevice,PCI\VEN_11BD&DEV_0042&SUBSYS_004811BD    ; single DVBS

;------------------------------------------------------------------------------
; BDA Device Section
;------------------------------------------------------------------------------
[BDADevice.NT]
Include     = ks.inf, kscaptur.inf, bda.inf
Needs       = KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg      = BDADevice.AddReg, 3rdPartySupport.AddReg
CopyFiles   = BDADevice.CopyDrivers

[BDADevice.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Stargate.sys
HKR,,PageOutWhenUnopened,3,0
HKR,,DontSuspendIfStreamsAreRunning,3,01

[BDADevice.NT.Interfaces]
AddInterface = %KSCATEGORY_BDATUNER%, %KSSTRING_BdaTunerFilter%, BdaTuner.Filter
AddInterface = %KSCATEGORY_BDARECEIVER%, %KSSTRING_BdaCaptureFilter%, BdaCap.Filter

[BDADevice.NT.Services]
AddService = %ServiceName%,0x00000002,BDADevice.ServiceInstall

[BDADevice.ServiceInstall]
DisplayName   = %ServiceNameDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\Stargate.sys
AddReg        = TheService.AddReg

[BDADevice.CopyDrivers]
Stargate.sys

[3rdPartySupport.AddReg]
;============================================================================================== @ProgDVB
HKLM,%TuningSpaces.Key%,,0x00000000,"{B64016F3-C9A2-4066-96F0-BD9563314726}"
HKLM,%TuningSpaces.Key%,"Name",0x00000000,"DVB-S"
HKLM,%TuningSpaces.Key%,"Description",0x00000000,"Pinnacle PCTV Sat 450i/4000i"
HKLM,%TuningSpaces.Key%,"Network Type",0x00000000,"{FA4B375A-45B4-4D45-8440-263957B11623}"
HKLM,%TuningSpaces.Key%,"Network ID",0x00010001,-1
HKLM,%TuningSpaces.Key%,"Frequency Mapping",0x00000001,0x2d,00,0x31,00
HKLM,%TuningSpaces.Key%,"Spectral Inversion",0x00010001,-1
HKLM,%TuningSpaces.Key%,"Input Range",0x00000001,0x2d,00,0x31,00
HKLM,%TuningSpaces.Key%,"System Type",0x00010001,2
HKLM,%TuningSpaces.Key%,"Low Oscillator Frequency",0x00010001,9750000
HKLM,%TuningSpaces.Key%,"High Oscillator Frequency",0x00010001,10600000
HKLM,%TuningSpaces.Key%,"LNB Switch Frequency",0x00010001,11700000
HKLM,%DefaultLocator.Key%,,0x00000000,"{1DF7D126-4050-47F0-A7CF-4C4CA9241333}"
HKLM,%DefaultLocator.Key%,"Frequency",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"InnerFECMethod",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"InnerFECRate",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"OuterFECMethod",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"OuterFECRate",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"ModulationType",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"SymbolRate",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"Polarisation",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"OrbitalPosition",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"Azimuth",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"Elevation",0x00010001,-1  
HKLM,%DefaultLocator.Key%,"WestPosition",0x00010001,0

[TheService.AddReg]
HKR,DriverParameters,BDA_DiSEqC_Option,0x00010001,-1            ; [0]:Pos0Opt0,[1]:Pos1Opt0;[0x100]:Pos0Opt1,[0x101]:Pos1Opt1
HKR,DriverParameters,BDA_Convert2Percent,0x00010001,1           ; [1]:strength in percentage, [0]:strenght in -dBm (calibrated)
HKR,DriverParameters,BDA_MicrosoftQualityDefintion,0x00010001,1 ; [0]:quality 95=10-8;90=10-7;80=10-6;60=10-5;20=10-4;10=10-3;<10:UncorrErrors occured
HKR,DriverParameters,SingleAntennaConfiguration,0x00010001,0    ; [0]:separate antennas; [1]:antenna 1 for both tuners (2nd is slave)
HKR,DriverParameters,BDA_DVBS_AS_DVBT,0x00010001,0              ; BDA-Network-ID [0]:DVB-S (default,@ProgDVB,...) 
                                                                ;                [1]:DVB-T (@MCE, non-DVB-S applications)
;
;============================================================================================== @MCE
HKR,DVBS_as_DVBT,OscLow,0x00010001,9750000                      ; 9.75 GHz LowOsc
HKR,DVBS_as_DVBT,OscHigh,0x00010001,10600000                    ; 10.6 GHz HighOsc
HKR,DVBS_as_DVBT,SwitchFreq,0x00010001,11700000                 ; 11.7 GHz switch frequency
;
;------------ Astra 0192 registry --------------------
; freq.table http://www.lyngsat.com/
;
; @MCE DVB-T -> satelite freq table - Current date: 12/13/2006
; 
; 177500 KHz -> ARD digital: 11836.5 H / SR=27500 / Hpol / Lnb1
HKR,DVBS_as_DVBT\177500,dvbs_freq,0x00010001,11836500           ; 11.8365 GHZ 
HKR,DVBS_as_DVBT\177500,dvbs_polarity,0x00010001,1              ; [1]:Hpol [2]:Vpol 
HKR,DVBS_as_DVBT\177500,dvbs_srate,0x00010001,27500             ; optional: 27500 Symbolrate  (only for demo)
HKR,DVBS_as_DVBT\177500,DiSEqC_Port,0x00010001,1                ; optional: [1]:Lnb1 [2]:Lnb2 (only for demo)

; 184500 KHz -> ARD digital: 12109.5 H / SR=27500
HKR,DVBS_as_DVBT\184500,dvbs_freq,0x00010001,12109500           ; default: SR=27500, Lnb1 
HKR,DVBS_as_DVBT\184500,dvbs_polarity,0x00010001,1              ;  if no key assigned

; 191500 KHz -> ZDF digital: 11953.5 H / SR=27500
HKR,DVBS_as_DVBT\191500,dvbs_freq,0x00010001,11953500 
HKR,DVBS_as_DVBT\191500,dvbs_polarity,0x00010001,1    

; 198500 KHz -> Pro7Sat1 Media: 12051 V / SR=27500
HKR,DVBS_as_DVBT\198500,dvbs_freq,0x00010001,12051000 
HKR,DVBS_as_DVBT\198500,dvbs_polarity,0x00010001,2    

; 205500 KHz -> RTL group: 12187.5 / SR=27500
HKR,DVBS_as_DVBT\205500,dvbs_freq,0x00010001,12187500 
HKR,DVBS_as_DVBT\205500,dvbs_polarity,0x00010001,1    

; 212500 KHz -> WDR: 12421.5 H / SR=27500 
HKR,DVBS_as_DVBT\212500,dvbs_freq,0x00010001,11421500 
HKR,DVBS_as_DVBT\212500,dvbs_polarity,0x00010001,1    

; 219500 KHz -> APS: 12460.5 H / SR=27500 
;HKR,DVBS_as_DVBT\219500,dvbs_freq,0x00010001,12465000 
;HKR,DVBS_as_DVBT\219500,dvbs_polarity,0x00010001,1   

; 226500 KHz -> Kabel1/Pro7: 12480 V / SR=27500 
HKR,DVBS_as_DVBT\226500,dvbs_freq,0x00010001,12480000 
HKR,DVBS_as_DVBT\226500,dvbs_polarity,0x00010001,2    

; 473833 KHz -> Austria: 12226.5 H / SR=22000 
HKR,DVBS_as_DVBT\473833,dvbs_freq,0x00010001,12265000 
HKR,DVBS_as_DVBT\473833,dvbs_polarity,0x00010001,1    
HKR,DVBS_as_DVBT\473833,dvbs_srate,0x00010001,22000

; 474000 KHz -> T-Systems: 12633.25 H / SR=22000
;HKR,DVBS_as_DVBT\474000,dvbs_freq,0x00010001,12633250 
;HKR,DVBS_as_DVBT\474000,dvbs_polarity,0x00010001,1
;HKR,DVBS_as_DVBT\474000,dvbs_srate,0x00010001,22000

; 474167 KHz -> BBC/CNBC: 11597 V / SR=22000 
HKR,DVBS_as_DVBT\474167,dvbs_freq,0x00010001,12722000 
HKR,DVBS_as_DVBT\474167,dvbs_polarity,0x00010001,2
HKR,DVBS_as_DVBT\474167,dvbs_srate,0x00010001,22000

; 481833 KHz -> DVB-S2: 12551.5 V / SR=22000 
HKR,DVBS_as_DVBT\481833,dvbs_freq,0x00010001,12551500 
HKR,DVBS_as_DVBT\481833,dvbs_polarity,0x00010001,2
HKR,DVBS_as_DVBT\481833,dvbs_srate,0x00010001,22000

;-------------------------------------------------------
; Hotbird Lnb2 -> set DiSEqC_Port=2
;-------------------------------------------------------
; 529833 KHz -> Bloomberg: 11642 V / SR=27500 / Hpol / Lnb2
HKR,DVBS_as_DVBT\529833,dvbs_freq,0x00010001,11642000
HKR,DVBS_as_DVBT\529833,dvbs_polarity,0x00010001,2          ; [1]:Hpol [2]:Vpol 
HKR,DVBS_as_DVBT\529833,DiSEqC_Port,0x00010001,2            ; [1]:Lnb1 [2]:Lnb2

; 530000 KHz -> BBC: 11431 V / SR=27500
HKR,DVBS_as_DVBT\530000,dvbs_freq,0x00010001,11431000
HKR,DVBS_as_DVBT\530000,dvbs_polarity,0x00010001,2
HKR,DVBS_as_DVBT\530000,DiSEqC_Port,0x00010001,2

;============================================================================================== @MCE

[BDATuner.Filter]
AddReg = BDATuner.Filter.AddReg

[BDATuner.Filter.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%BdaTuner.FilterDesc%

;-------------------------------------------------------------
; Capture: install section for the BDA capture filter.
;-------------------------------------------------------------
[BdaCap.Filter]
AddReg = BdaCap.Filter.AddReg

[BdaCap.Filter.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%BdaCapture.FilterDesc%

;---------------------------------------------------------------
;                S t r i n g s
;---------------------------------------------------------------
[Strings]
MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"
TuningSpaces.Key="SOFTWARE\Microsoft\Tuning Spaces\98"
DefaultLocator.Key="SOFTWARE\Microsoft\Tuning Spaces\98\Default Locator"

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2
SERVICE_ERROR_CRITICAL = 0x3 

;-------------------------------------------------------------
; BDA Tuner/Capture
;-------------------------------------------------------------
Proxy.CLSID             = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}" ; GUID for the Ksproxy plugin..
KSCATEGORY_BDATUNER     = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}" ; GUID for the BDA Source Filters category in GraphEdit.
KSCATEGORY_BDARECEIVER  = "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}" ; GUID for the BDA Receiver Filters category in GraphEdit.
KSSTRING_BdaTunerFilter = "{3337A69E-1C6E-4797-8955-65CAEB31E593}" ; Stargate GUID for the digital tuner Filter.
KSSTRING_BdaCaptureFilter="{BD55881A-369F-4eb7-ADC4-CF6E8D13ACA4}" ; Stargate GUID for the digital capture Filter.

;-------------------------------------------------------------
; Localizable
;-------------------------------------------------------------
ServiceName="PinnacleStargate"
ServiceNameDesc="Pinnacle Systems Stargate Device"

RoyalTS_INSTALLATION_DISK   = "Pinnacle PCTV DVB-S installation disk"

RoyalTS.Provider            = "Pinnacle Systems"
RoyalTS.Manufacturer        = "Pinnacle Systems"
RoyalTS_CO.DeviceDesc       = "Pinnacle PCTV DVB-S Dual Common"
RoyalTS_S0.DeviceDesc       = "Pinnacle PCTV DVB-S Dual Tuner1"
RoyalTS_S1.DeviceDesc       = "Pinnacle PCTV DVB-S Dual Tuner2"

RoyalTS_COS.DeviceDesc      = "Pinnacle PCTV DVB-S Common"
RoyalTS_S0S.DeviceDesc      = "Pinnacle PCTV DVB-S Tuner"

BdaTuner.FilterDesc         = "Pinnacle Stargate Tuner"
BdaTuner.FriendlyName       = "Pinnacle Stargate Tuner"

BdaCapture.FilterDesc       = "Pinnacle Stargate Capture"
BdaCapture.DeviceDesc       = "Pinnacle Stargate Capture"
