;==============================================================================
; TerraTec Cinergy 400 TV/Cinergy 400i
; Driver Install Script (32 bit)
; Copyright (c) 2006, TerraTec Electronic GmbH
;------------------------------------------------------------------------------        
; Notes:
; Coinstaller only checks for DirectX version.
;------------------------------------------------------------------------------
; History:
; 05-Dec-06 FMB 1st version of "All in one" drivers (v.1.3.3.5)
;==============================================================================

[Version]
Signature   = "$CHICAGO$"
Class       = Media
ClassGUID   = {4d36e96c-e325-11ce-bfc1-08002be10318} 
Provider    = %Provider% 
DriverVer   = 12/05/2006,1.3.3.5
CatalogFile = Cinergy_400_TV.cat  

[SourceDisksNames]
1 = %DiskName%,,

[SourceDisksFiles]
3xHybrid.sys      = 1
34CoInstaller.dll = 1

[DestinationDirs]
Cinergy.CopySys  = 10,System32\Drivers 
Cinergy.CopyDlls = 11

[ControlFlags]
ExcludeFromSelect = *


[Manufacturer]
%Provider% = TerraTec

[TerraTec]

;Cinergy 400 TV/Cinergy 400i 
%Cinergy.DeviceDesc% = Cinergy, PCI\VEN_1131&DEV_7134&SUBSYS_1142153B


[Cinergy.NTx86]
Include       = ks.inf, kscaptur.inf, ksfilter.inf, bda.inf, wdmaudio.inf
Needs         = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT, WDMAUDIO.Registration.NT
AddReg        = Cinergy.AddReg, Cinergy_Custom.AddReg, Cinergy_Eeprom.AddReg
CopyFiles     = Cinergy.CopySys, Cinergy.CopyDlls


[Cinergy.NTx86.CoInstallers]
CopyFiles     = Cinergy.CopyDlls
AddReg        = CoInstaller.AddReg

[Cinergy.CopySys]
3xHybrid.sys

[Cinergy.CopyDlls]
34CoInstaller.dll



;===============================================================
;                R e g i s t r y
;===============================================================
[CoInstaller.AddReg]
HKR,,CoInstallers32,0x00010000,"34CoInstaller.dll, CoInstallerEntry"


[Cinergy.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,Driver,,3xHybrid.sys
HKR,,NTMPDriver,,3xHybrid.sys

;HKR,,OkToHibernate,3,01
;HKR,,PageOutWhenUnopened,3,0
;HKR,,DontSuspendIfStreamsAreRunning,3,01

;-------------------------------------------------------------
; Audio Capture
;-------------------------------------------------------------

HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"

HKR,Drivers,SubClasses,,"wave,mixer"
HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description ,,%DShow.AudioCapture%
HKR,Drivers\mixer\wdmaud.drv,Description,,%DShow.AudioCapture%

;-------------------------------------------------------------
; Pin names
;-------------------------------------------------------------
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_IN_PIN% ,"Name",,"Analog Audioinput"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_ITU_PIN%,"Name",,"Analog ITU Video"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_I2S_PIN%,"Name",,"I2S Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_CAP_PIN%,"Name",,"~Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_CAP_PIN%,"Name",,"~Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PRE_PIN%,"Name",,"~Preview"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_AES_PIN%      ,"Name",,"MPEG Audio ES"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_VES_PIN%      ,"Name",,"MPEG Video ES"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_PS_PIN%       ,"Name",,"MPEG2 Program"

;-------------------------------------------------------------
; Customization
;-------------------------------------------------------------

; SmallXBar=0: XBar inputs => Tuner, Composite1, S-Video1, Composite2, S-Video2
; SmallXBar=1: XBar inputs => Tuner, Composite1, S-Video1
HKR, "Parameters", "SmallXBar",0x00010001,1


[Cinergy_Custom.AddReg]
; Prefix will be displayed in front of the device name on every filter
HKR, "Parameters","Prefix",,%DShow.Prefix%


[Cinergy_Eeprom.AddReg]
;-------------------------------------------------------------
; Board specific registry entries
;-------------------------------------------------------------

HKR, "I2C Devices" , "Force Registry Settings",0x00010001,0x01

HKR, "VideoDecoder", "Tuner Channel"   , 0x00010001, 0x01
HKR, "VideoDecoder", "CVBS Channel"    , 0x00010001, 0x04
HKR, "VideoDecoder", "SVHS Channel"    , 0x00010001, 0x06
HKR, "VideoDecoder", "FM Radio Channel", 0x00010001, 0xFF

HKR, "AudioDecoder", "Tuner Channel"   , 0x00010001, 0x01
HKR, "AudioDecoder", "CVBS Channel"    , 0x00010001, 0x02
HKR, "AudioDecoder", "SVHS Channel"    , 0x00010001, 0x02
HKR, "AudioDecoder", "FM Radio Channel", 0x00010001, 0x03
HKR, "AudioDecoder", "XTAL"            , 0x00010001, 0x01

HKR, "I2C Devices", "Number of I2C Devices",0x00010001,0x01
HKR, "I2C Devices", "Device 0, Data1",0x00010001,0x03  ; Tuner ID
HKR, "I2C Devices", "Device 0, Data2",0x00010001,0xC0  ; Tuner slave addr.
;HKR,"I2C Devices", "Device 0, Data3",0x00010001,0x00  ; Tuner IF PLL slave addr.
;HKR,"I2C Devices", "Device 0, Data4",0x00010001,0x00  ; Demod slave addr.
;HKR,"I2C Devices", "Device 0, Data5",0x00010001,0x00  ; Size of add. data
;HKR,"I2C Devices", "Device 0, Data6",0x00010001,0x00  ; Add. data #1
;HKR,"I2C Devices", "Device 0, Data7",0x00010001,0x00  ; Add. data #2
;HKR,"I2C Devices", "Device 0, Data8",0x00010001,0x00  ; Add. data #3


;===============================================================
;                S e r v i c e s
;===============================================================

[Cinergy.NTx86.Services]
AddService = 3xHybrid, 0x00000002, Cinergy.ServiceInstall

[Cinergy.ServiceInstall]
DisplayName   = %Service.FriendlyName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\3xHybrid.sys

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

[Strings]
;---------------------------------------------------------------
; Non-localizable (Windows)
;---------------------------------------------------------------
; Registry types
REG_SZ                           = 0x00000000
REG_MULTI_SZ                     = 0x00010000
REG_EXPAND_SZ                    = 0x00020000
REG_DWORD                        = 0x00010001

; Service: ServiceType values
SERVICE_KERNEL_DRIVER            = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER       = 0x00000002
SERVICE_ADAPTER                  = 0x00000004
SERVICE_RECOGNIZER_DRIVER        = 0x00000008
SERVICE_WIN32_OWN_PROCESS        = 0x00000010
SERVICE_WIN32_SHARE_PROCESS      = 0x00000020
SERVICE_INTERACTIVE_PROCESS      = 0x00000100
SERVICE_INTERACTIVE_SHARE_PROCESS= 0x00000120

; Service: StartType values
SERVICE_BOOT_START               = 0x00000000
SERVICE_SYSTEM_START             = 0x00000001
SERVICE_AUTO_START               = 0x00000002
SERVICE_DEMAND_START             = 0x00000003
SERVICE_DISABLED                 = 0x00000004

; Service: ErrorControl values
SERVICE_ERROR_IGNORE             = 0x00000000
SERVICE_ERROR_NORMAL             = 0x00000001
SERVICE_ERROR_SEVERE             = 0x00000002
SERVICE_ERROR_CRITICAL           = 0x00000003

; DirectShow filter categories                                                DirectShow category name
KSCATEGORY_AUDIO                 = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER                = "{65E8773E-8F56-11D0-A3B9-00A0C9223196}" ; Audio Renderers
KSCATEGORY_TOPOLOGY              = "{DDA54A40-1E4C-11D1-A050-405705C10000}" ; Audio Mixer Devices

KSCATEGORY_VIDEO                 = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}" ;

KSCATEGORY_CAPTURE               = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}" ; WDM Streaming capture Devices (audio & video)
KSCATEGORY_TVTUNER               = "{A799A800-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming TV Tuner Devices 
KSCATEGORY_CROSSBAR              = "{A799A801-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming Crossbar Devices
KSCATEGORY_TVAUDIO               = "{A799A802-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming TV Audio Devices

KSCATEGORY_ENCODER               = "{19689BF6-C384-48fd-AD51-90E58C79F70B}" ; WDM Streaming Encoder Devices
KSCATEGORY_MULTIPLEXER           = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}" ; WDM Streaming Multiolexer Devices

KSCATEGORY_BDA_RECEIVER          = "{FD0A5AF4-B41D-11D2-9C95-00C04F7971E0}" ; BDA Receiver Component
KSCATEGORY_BDA_TUNER             = "{71985F48-1CA1-11D3-9CC8-00C04F7971E0}" ; BDA Source Filters


; Proxy CLSIDs (KsProxy.ax)
PROXY_CAPTURE                    = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
PROXY_TVTUNER                    = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
PROXY_CROSSBAR                   = "{71F96460-78F3-11D0-A18C-00A0C9118956}"
PROXY_TVAUDIO                    = "{71F96462-78F3-11D0-A18C-00A0C9118956}"



;---------------------------------------------------------------
; Non-localizable (this driver)
;---------------------------------------------------------------

; Pin name GUIDS
AVSTREAM_ANLG_AUDIO_IN_PIN   = "{7BB284B9-714D-493d-A101-B1B028E782BD}"
AVSTREAM_ANLG_AUDIO_OUT_PIN  = "{5582E657-E596-42b5-9DB3-541B27A2355F}"
AVSTREAM_ANLG_VIDEO_ITU_PIN  = "{82631A2E-403C-4581-A4B0-EC173D004410}"
AVSTREAM_ANLG_AUDIO_I2S_PIN  = "{C2E46358-F032-4d88-B802-06B59D162730}"
AVSTREAM_ANLG_VIDEO_CAP_PIN  = "{16FFBD0A-F770-4692-A2FF-DD394DFE9564}"
AVSTREAM_ANLG_VIDEO_PRE_PIN  = "{A19F6121-9CF7-4081-8053-256668FCBE1F}"
AVSTREAM_ANLG_AUDIO_CAP_PIN  = "{BA9E27B1-CF44-490e-8EAB-5F662E5FFE74}"
AVSTREAM_MPEG_AES_PIN        = "{9DEC84B9-BCEF-4aac-997E-43EDD0A2D6C7}"
AVSTREAM_MPEG_VES_PIN        = "{181CF87E-7741-47ba-8629-22347E03C64C}"
AVSTREAM_MPEG_PS_PIN         = "{DDA87B83-65DB-4aec-82D0-79FBE67D2BB6}"


;---------------------------------------------------------------
; Localizable
;---------------------------------------------------------------

Provider                 = "TerraTec "
DiskName                 = "Cinergy Driver CD"

; Service strings
Service.FriendlyName     = "Cinergy 400 TV service"

; Device Manager
Cinergy.DeviceDesc       = "Cinergy 400 TV"

; DirectShow filter names
DShow.AudioCapture       = "Cinergy 400 TV Audio"               ; KSCATEGORY_AUDIO 
DShow.Prefix             = "Cinergy 400 TV"


