;------------------------------------------------------------------------
; 
;  Copyright and Disclaimer: 
;  
;     --------------------------------------------------------------- 
;     This software is provided "AS IS" without warranty of any kind, 
;     either expressed or implied, including but not limited to the 
;     implied warranties of noninfringement, merchantability and/or 
;     fitness for a particular purpose.
;     --------------------------------------------------------------- 
;   
;     Copyright (c) 2005 Conexant Systems, Inc. 
;     Copyright (c) 2007 GoTView. 
;     All rights reserved. 
;
;------------------------------------------------------------------------

[Version]
signature=$Windows NT$
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Company%
DriverVer=08/15/2007,3.0.2.1
CatalogFile.ntx86=cxavsvid.cat

[Manufacturer]
%Company%=GOTVIEW

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

[SourceDisksFiles]
cxavsvid.sys=1
cxxc.rom=1

[GOTVIEW]
%GTVCX.PG700%=GTVCX.XcevieZarlink,		PCI\VEN_14F1&DEV_8800&SUBSYS_23885654
%GTVCX.Audio881.null%=NullSection,              PCI\VEN_14F1&DEV_8811&SUBSYS_23885654
%GTVCX.TS.null%=NullSection,                    PCI\VEN_14F1&DEV_8802&SUBSYS_23885654
%GTVCX.Audio.null%=NullSection,                 PCI\VEN_14F1&DEV_8801&SUBSYS_23885654
%GTVCX.null%=NullSection,                       PCI\VEN_14F1&DEV_8803&SUBSYS_23885654
%GTVCX.null%=NullSection,                       PCI\VEN_14F1&DEV_8804&SUBSYS_23885654

[GTVCX.XcevieZarlink]
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=     CX880.AddReg,XcevieZarlink.AddReg,XBAR.AddReg,CXTS.AddReg,GTVCX.driver.AddReg
DelReg=     DelEnumAll.DelReg
CopyFiles=  CX880.CopyDrivers,DSFilters.CopyFiles,Xc3028Rom.CopyFile
RegisterDlls=DSFilters.RegDLL


[NullSection]
[NullSection.Services]
AddService = , 2  ; null service install

[DestinationDirs]
CX880.CopyDrivers=10,system32\drivers
Xc3028Rom.CopyFile=10,system32\drivers
DSFilters.CopyFiles=11

[CX880.CopyDrivers]
cxavsvid.sys

[Xc3028Rom.CopyFile]
cxxc.rom

[DSFilters.CopyFiles]

[DSFilters.RegDLL]

[GTVCX.driver.AddReg]
HKR,,NTMPDriver,,cxavsvid.sys

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

[CX880.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
;

[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


;-------------------------------------------------------------------
; AddReg sections for DVB-T 
;-------------------------------------------------------------------

[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 

;NEC standard
HKR,"DriverData","IRStandard",0x00010001, 0x01, 0x00, 0x00, 0x00

HKR,"DriverData","VideoStandard",0x00010001, 0x00,0x20,0x00,0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","PalMaxSharpness",0x00010001, 0x01, 0x00, 0x00, 0x00

; Country code is Russia = 7
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x07,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%


[GTVCX.XcevieZarlink.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%


[GTVCX.XcevieZarlink.Services]
AddService = GTVCX,2,VID.ServiceInstall

[VID.ServiceInstall]
DisplayName   = %GTVCX.ServiceDesc%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\cxavsvid.sys
LoadOrderGroup	= ExtendedBase

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

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

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

VIDFriendlyName					= "GOTVIEW Video Capture"
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"
AudioFriendlyName				= "GOTVIEW Audio Capture"
AudioReferenceGuid				= "{AB766B70-AFB3-4461-A4DE-22E9C516B7FE}"
TVAudioFriendlyName				= "GOTVIEW TvAudio"
TVAudioReferenceGuid				= "{991182D5-71A2-4b5c-9817-F551FBBC8232}"
XBARFriendlyName				= "GOTVIEW Crossbar"
XBARReferenceGUID				= "{77F656DA-696D-407c-BA1C-50E4457C12E8}"
TunerFriendlyName				= "GOTVIEW TV Tuner"
TunerReferenceGuid				= "{5618011C-A4DA-455b-A448-EC2AF3DCCB02}"
BDATuneFriendlyName				= "GOTVIEW DVB-T Tuner"
BDATuneReferenceGuid				= "{91B0CC87-9905-4d65-A0D1-5861C6F22CBF}"
TSFriendlyName					= "GOTVIEW DVB-T Capture"
TSReferenceGuid					= "{5ea9c066-1dfe-41c5-a2de-bf766e83c98e}"

Company						= "GOTVIEW"
DISK_NAME					= "Driver Setup Disk"

GTVCX.PG700					= "GOTVIEW Hybrid TV Tuner Card"
GTVCX.Audio.null				= "GOTVIEW Audio AVStream Device"
GTVCX.Audio881.null				= "GOTVIEW Audio Capture Device"
GTVCX.TS.null					= "GOTVIEW TS Capture Device"
GTVCX.null					= "GOTVIEW Unused Function Device"
GTVCX.ServiceDesc				= "GOTVIEW Video Capture driver"


