;////////////////////////////////////////////////////////////////////////////////
;//
;//                           (C) Pinnacle Systems GmbH 2006
;//      All rights are reserved.  Reproduction in whole or in part is prohibited
;//      without the written consent of the copyright owner.
;//
;//      Pinnacle Systems, Inc. reserves the right to make changes without notice at any time.
;//      Pinnacle Systems, Inc. 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.
;//      Pinnacle Systems, Inc. must not be liable for any loss or damage arising from its use.
;//
;////////////////////////////////////////////////////////////////////////////////

;----------------------------------------------------------------------------------------------------
;
; PCTV310cTV.inf  -- This file contains installation information for
;                  "Pinnacle Systems PCTV 310c"
;
; Copyright (c) 2006 Pinnacle Systems
;----------------------------------------------------------------------------------------------------

  

[Version]
signature=$Windows NT$
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Company%
DriverVer=06/02/2006,3.0.1.1
CatalogFile.ntx86=PCTV310cTV.cat
CatalogFile.ntia64=PCTV310cTVia64.cat
CatalogFile.ntamd64=PCTV310cTVamd64.cat
DriverPackageType=PlugAndPlay
DriverPackageDisplayName="Pinnacle Systems PCTV 310c" 
 

[Manufacturer]
%Company%=Pinnacle,NTamd64,NTia64

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

[SourceDisksFiles.x86]
OmniTV.sys=1,\x86
XC3028.rom=1
SimCoInstDev.dll=1,\x86

[SourceDisksFiles.ia64]
OmniTV.sys=1,\ia64
XC3028.rom=1
SimCoInstDev.dll=1,\ia64

[SourceDisksFiles.amd64]
OmniTV.sys=1,\amd64
XC3028.rom=1
SimCoInstDev.dll=1,\amd64

[ControlFlags]
ExcludeFromSelect =* 

[Pinnacle.NTia64]
%PCTV320c.DeviceDisplayName%=PCTV310c,				PCI\VEN_14F1&DEV_8800&SUBSYS_178812AB
[Pinnacle.NTamd64]
%PCTV320c.DeviceDisplayName%=PCTV310c,				PCI\VEN_14F1&DEV_8800&SUBSYS_178812AB
[Pinnacle]
%PCTV320c.DeviceDisplayName%=PCTV310c,				PCI\VEN_14F1&DEV_8800&SUBSYS_178812AB

;;---------------------
;; 
;;---------------------
[PCTV310c.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=     AvSim.AddReg,XcevieZarlink.AddReg,XBAR.AddReg,CXTS.AddReg
DelReg=     DelEnumAll.DelReg
CopyFiles=  AvSim.CopyDrivers,DSFilters.CopyFiles,Xc3028Rom.CopyFile
RegisterDlls=DSFilters.RegDLL


[PCTV310c.NT.HW]
;AddReg = Parameters.AddReg

[PCTV310c.NT.CoInstallers]
AddReg          = CoInstaller.AddReg
CopyFiles       = CoInstaller.CopyFiles

[CoInstaller.AddReg]
HKR,,CoInstallers32, %REG_MULTI_SZ%,"SimCoInstDev.DLL,CoInstallerEntry"

[CoInstaller.CopyFiles]
SimCoInstDev.dll

[DestinationDirs]
AvSim.CopyDrivers=12		; \windows\system32\drivers
Xc3028Rom.CopyFile=12		; \windows\system32\drivers
DSFilters.CopyFiles=11

[AvSim.CopyDrivers]
OmniTV.sys

[Xc3028Rom.CopyFile]
XC3028.rom

[DSFilters.CopyFiles]
;cpnotify.ax

[DSFilters.RegDLL]
;11,,cpnotify.ax,1


[DelEnumAll.DelReg]
HKR,"ENUM\Device1",pnpid
HKR,"ENUM\Device2",pnpid
HKR,"ENUM\Device3",pnpid

[AvSim.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKLM,%MediaCategories%\%GUID.PINNAME_ANALOG_AUDIO_IN%,Name,,%Pin.p2AnalogAudioIn%
HKLM,%MediaCategories%\%GUID.PINNAME_AUDIO_OUT%,Name,,%PinName.AnalogAudioOut%
;Wave in audio device registration
HKR,Drivers,SubClasses,,"wave"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%AudioFriendlyName%
;Copy protection method enforced by driver
HKR,"DriverData","CpMethod",0x00010001, 0xFE, 0x00, 0x00, 0x00

;
; Driver Configuration Registry Entries
;

;-------------------------------------------------------------------
; Crossbar AddReg sections
;
;---Crossbar registry values---
;
; Note: For each pin on the crossbar, specify the following:
; (1) Pin type 
;     0 - SVIDEO
;     1 - Tuner
;     2 - Composite
;     3 - 656
;     4 - audio tuner in
;     5 - audio line in
; (2) InputMux (optional) - input mux to use for the selected pin
; (3) RelatedPinIndex 
; (4) GPIOMask (optional) - Mask specifying which GPIO bits to set or clear
; (5) GPIOSettings (optional) - Settings for GPIO bits specified in the mask 

;-------------------------------------------------------------------

[XBAR.AddReg]
;Pin 0 - Tuner In
HKR,"DriverData\XBarPin0","PinType",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","InputMux",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","RelatedPinIndex",0x00010001, 0x03,0x00,0x00,0x00

;Pin 1 - Composite in
HKR,"DriverData\XBarPin1","PinType",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","InputMux",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00

;Pin 2 - S-Video in
HKR,"DriverData\XBarPin2","PinType",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","InputMux",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00

;Pin 3 - Tuner Audio
HKR,"DriverData\XBarPin3","PinType",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\XBarPin3","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00

;Pin 4 - Audio Line in
HKR,"DriverData\XBarPin4","PinType",0x00010001, 0x05,0x00,0x00,0x00
HKR,"DriverData\XBarPin4","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00


;-------------------------------------------------------------------
; Tuner AddReg sections
;-------------------------------------------------------------------


;-------------------------------------------------------------------
; AddReg sections for DVB-T + Analog TV
;-------------------------------------------------------------------

[XcevieZarlink.AddReg]
HKR,"DriverData","TunerType",0x00010001, 0x1A, 0x00, 0x00, 0x00
HKR,"DriverData","DemodType",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xC2, 0x00, 0x00, 0x00
HKR,"DriverData","Tuner2IFAddress",0x00010001, 0x86, 0x00, 0x00, 0x00
HKR,"DriverData","TunerModel",0x00010001, 0x88,0x88,0x00,0x00
HKR,"DriverData","UseFreqOffsetDVBT",0x00010001, 0x00, 0x00, 0x00, 0x00
;  Tuner Type:
;  1A     => XCeive 3028
;  TunerModel:
;  0x8888 => XCevie 3028 + Zarlink MT352 

;RC5
HKR,"DriverData","IRStandard",0x00010001, 0x02, 0x00, 0x00, 0x00

HKR,"DriverData","VideoStandard",0x00010001, 0x00,0x01,0x00,0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
; Country code is Great Britain = 44
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x2C,0x00,0x00,0x00
HKR,"DriverData","WWAudioLineInToI2sIn",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","BlackbirdType",0x00010001, 0x00,0x00,0x00,0x00

; these registry keys for TS filter
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

;-------------------------------------------------------------------
; AddReg sections for TS filter
;-------------------------------------------------------------------

[CXTS.AddReg]
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Name,,%TSPinName%

;
; Interfaces installation
;

;
; Video
;
[PCTV310c.NT.Interfaces]
Needs=VID.Interfaces


;Both Video & DVB-T
[VID.Interfaces] 
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},%KsNameFilter%,VID_Interface,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},%TVAudioReferenceGuid%,TvAudio_Interface,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},%XBARReferenceGUID%,CX88XBAR_Interface,
AddInterface={a799a800-a46d-11d0-a18c-00a02401dcd4},%TunerReferenceGuid%,CX88TUNE_Interface,
AddInterface={6994AD04-93EF-11D0-A3CC-00A0C9223196},%AudioReferenceGuid%,AUD_Interface,
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},%BDATuneReferenceGuid%,BDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%TSReferenceGuid%,TS_Interface

[VID_Interface]
AddReg=VID_Interface.AddReg

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

[TvAudio_Interface]
AddReg=TvAudio_Interface.AddReg

[TvAudio_Interface.AddReg]
HKR,,CLSID,,{71F96462-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%TVAudioFriendlyName%

[CX88XBAR_Interface]
AddReg=CX88XBAR_Interface.AddReg

[CX88XBAR_Interface.AddReg]
HKR,,CLSID,,{71F96460-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%XBARFriendlyName%

[CX88TUNE_Interface]
AddReg=CX88TUNE_Interface.AddReg

[CX88TUNE_Interface.AddReg]
HKR,,CLSID,,{266EEE40-6C63-11cf-8A03-00AA006ECB65}
HKR,,FriendlyName,,%TunerFriendlyName%

[AUD_Interface]
AddReg=AUD_Interface.AddReg

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

[BDATUNE_Interface]
AddReg=BDATUNE_Interface.AddReg

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

[TS_Interface]
AddReg=TS_Interface.AddReg

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

;
; Services installation
;
[PCTV310c.NT.Services]
AddService = OmniTV,2,VID.ServiceInstall

[VID.ServiceInstall]
DisplayName		= %SERVICE_DISPLAY_NAME%
Description		= %SERVICE_DESCRIPTION%
ServiceType		= %SERVICE_KERNEL_DRIVER%
StartType		= %SERVICE_DEMAND_START%
ErrorControl	= %SERVICE_ERROR_NORMAL%
ServiceBinary	= %12%\OmniTV.sys

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

[Strings]
KsNameFilter					= "{9B365890-165F-11D0-A195-0020AFD156E4}"
Proxy.CLSID						= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"


MediaCategories					= "SYSTEM\CurrentControlSet\Control\MediaCategories"
GUID.PINNAME_ANALOG_AUDIO_IN	= "{04394D28-52A7-4c46-AED0-65D62CC64DA6}"
Pin.p2AnalogAudioIn				= "Analog Audio In"
GUID.PINNAME_AUDIO_OUT			= "{9DA02733-7910-40f2-95DD-0441676C9A9B}"
PinName.AnalogAudioOut			= "Audio Out"
TSPinID							= "{5237C937-0A21-4f7e-B338-DE0D0793D03F}"
TSPinName						= "TS Out"

AudioReferenceGuid				= "{AB766B70-AFB3-4461-A4DE-22E9C516B7FE}"
TVAudioReferenceGuid			= "{991182D5-71A2-4b5c-9817-F551FBBC8232}"
XBARReferenceGUID				= "{77F656DA-696D-407c-BA1C-50E4457C12E8}"
TunerReferenceGuid				= "{5618011C-A4DA-455b-A448-EC2AF3DCCB02}"
BDATuneReferenceGuid			= "{91B0CC87-9905-4d65-A0D1-5861C6F22CBF}"
TSReferenceGuid					= "{5ea9c066-1dfe-41c5-a2de-bf766e83c98e}"

SERVICE_DISPLAY_NAME            = "Cx2388x AvStream Video Capture"
SERVICE_DESCRIPTION				= "Cx2388x AvStream Video Capture"

;---------------------------------------------------------------
;				S y s t e m   D e f i n e s
;---------------------------------------------------------------
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


REG_SZ							= 0x00000000 
REG_MULTI_SZ					= 0x00010000 
REG_EXPAND_SZ					= 0x00020000
REG_DWORD						= 0x00010001 

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

;.....................
;  DShow Filter
;.....................

VIDFriendlyName					= "Analog Video Capture"
AudioFriendlyName				= "Tuner Card Audio Capture"
TVAudioFriendlyName				= "Tuner Card TvAudio"
XBARFriendlyName				= "Tuner Card Crossbar"
TunerFriendlyName				= "Analog TV Tuner"
BDATuneFriendlyName				= "DVB-T Tuner"
TSFriendlyName					= "DVB-T Digital TV Capture"

;.....................
;  Installation 
;.....................
Company							= "Pinnacle Systems"
DISK_NAME						= "PCTV 310c Driver Setup Disk"

;.....................
;  Device Manager
;.....................
OmniTV.TUN881					= "Pinnacle PCTV 310c TV Tuner Card"
OmniTV.PG300					= "Pinnacle PCTV 310c DVB-T Tuner Card"
OmniTV.PG700					= "Pinnacle PCTV 310c DVB-T/Analog TV Tuner Card"
PCTV320c.DeviceDisplayName		= "Pinnacle PCTV 310c DVB-T/Analog TV Tuner Card"

;The EEPROM need update
OmniTV.Unknown					= "Conexant CX2388x Unknown Device"

OmniTV.Audio.null				= "Audio AVStream Device"
;CX23881 audio capture device (without BSTC)
OmniTV.Audio881.null			= "Audio Capture Device"

OmniTV.TS.null					= "TS Capture Device"
OmniTV.null						= "Unused Function Device"

;HKLM,"System\CurrentControlSet\Services\cdrom","AutoRun",0x00010003,1
