;////////////////////////////////////////////////////////////////////////////////
;//
;//                           (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.
;//
;//      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.
;//
;////////////////////////////////////////////////////////////////////////////////

;----------------------------------------------------------------------------------------------------
;
; PCTV716x.inf  -- This file contains installation information for
;                   "Pinnacle Systems PCTV 310ix"
;                   "Pinnacle Systems PCTV 710ix"
;                   "Pinnacle Systems PCTV 3010ix"
;                   "Pinnacle Systems PCTV 7010ix"
;
; Copyright 2007 Avid Development GmbH, Braunschweig, Germany, Alle Rechte vorbehalten
; Copyright 2007 NXP Semiconductors
;----------------------------------------------------------------------------------------------------

[Version]
signature                = "$CHICAGO$" ;all windows os
Class                    = MEDIA
ClassGUID                = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider                 = %PROVIDER%
DriverVer                = 07/17/2007,1.0.4.1
CatalogFile.NTX86        = PCTV716x.cat
CatalogFile.NTAMD64      = PCTV716x64.cat
DriverPackageType        = PlugAndPlay
DriverPackageDisplayName = "PCTV 310ix, 710ix, 3010ix, 7010ix"

[Manufacturer]
%PROVIDER% = SupportedBoards, NTx86, NTamd64

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%PCTV3010ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010011BD
%PCTV7010ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010111BD
%PCTV310ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7160&SUBSYS_010311BD
%PCTV710ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7160&SUBSYS_010411BD

;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%PCTV3010ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010011BD
%PCTV7010ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010111BD
%PCTV310ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7160&SUBSYS_010311BD
%PCTV710ix.DeviceDesc%=PhilCap,PCI\VEN_1131&DEV_7160&SUBSYS_010411BD

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll = 1
NXPMV32.dll         = 1
NXPMV64.dll         = 1
PhilCap.sys         = 1
PhilCap64.sys       = 1

[DestinationDirs]
PhilCap.CopyCoInst.NTx86   = 11
PhilCap.CopyDll.NTx86      = 11
PhilCap.CopyFiles.NTx86    = 10,system32\drivers
PhilCap.CopyFiles.NTAMD64  = 10,system32\drivers
PhilCap.CopyDll.NTAMD64    = 11

[PhilCap.CopyCoInst.NTx86]
716xCoInstaller.dll

[PhilCap.CopyFiles.NTx86]
PhilCap.sys

[PhilCap.CopyFiles.NTAMD64]
PhilCap64.sys

[PhilCap.CopyDll.NTx86]
NXPMV32.dll

[PhilCap.CopyDll.NTAMD64]
NXPMV64.dll
;
;*** initialization and registry entries
;

[PhilCap.ntx86.CoInstallers]
CopyFiles = PhilCap.CopyCoInst.NTx86
AddReg    = PhilCap.CoInstaller_AddReg.NTx86

[PhilCap.CoInstaller_AddReg.NTx86]
HKR,,CoInstallers32,0x00010000,"716xCoInstaller.dll, CoInstallerEntry"

[PhilCap.NTx86]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf, machine.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT, PciASPMOptOut
CopyFiles     = PhilCap.CopyFiles.NTx86, PhilCap.CopyDll.NTx86
AddReg        = PhilCap.AddReg.NTx86
RegisterDlls  = PhilCap.Register.NTx86

[PhilCap.NTAMD64]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf, machine.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT, PciASPMOptOut
CopyFiles     = PhilCap.CopyFiles.NTAMD64, PhilCap.CopyDll.NTAMD64
AddReg        = PhilCap.AddReg.NTAMD64
RegisterDlls  = PhilCap.Register.NTAMD64

[PhilCap.NTx86.Services]
AddService = PhilCap, 0x00000002, PhilCap.ServiceInstall.NTx86, PhilCap.EventInstall.NTx86

[PhilCap.NTAMD64.Services]
AddService = PhilCap64, 0x00000002, PhilCap.ServiceInstall.NTAMD64, PhilCap.EventInstall.NTAMD64

[PhilCap.ServiceInstall.NTx86]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\PhilCap.sys

[PhilCap.ServiceInstall.NTAMD64]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\PhilCap64.sys

[PhilCap.Register.NTx86]
11,,NXPMV32.dll,1 ;FLG_REGSVR_DLLREGISTER

[PhilCap.Register.NTAMD64]
11,,NXPMV64.dll,1 ;FLG_REGSVR_DLLREGISTER

[PhilCap.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,PhilCap.sys

; Board specific settings
HKR, "Parameters","TDA8275A_LNA_TYPE",0x00010001,0x00000007
HKR, "Parameters","TDA8275A_LNA_LVL_TV",0x00010001,0x0000000A
HKR, "Parameters","TDA8275A_LNA_LVL1_TV",0x00010001,0x00000017
HKR, "Parameters","TDA8275A_LNA_LVL2_TV",0x00010001,0x00000012
HKR, "Parameters","TDA8275A_LNA_LVL_DVBT",0x00010001,0x00000004	
HKR, "Parameters", "FmLockLevel",0x00010001,0x0493E0


; Audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,PhilCap.SYS

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,,"SAA716x audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"SAA716x audio capture device"

; add audio input and output pinnames
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_PIN%,"Name",,"~Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PIN%,"Name",,"~Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_PS_PIN%,"Name",, "MPEG2 Program"

[PhilCap.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,PhilCap64.sys

; Board specific settings
HKR, "Parameters","TDA8275A_LNA_TYPE",0x00010001,0x00000007
HKR, "Parameters","TDA8275A_LNA_LVL_TV",0x00010001,0x0000000A
HKR, "Parameters","TDA8275A_LNA_LVL1_TV",0x00010001,0x00000017
HKR, "Parameters","TDA8275A_LNA_LVL2_TV",0x00010001,0x00000012
HKR, "Parameters","TDA8275A_LNA_LVL_DVBT",0x00010001,0x00000004	
HKR, "Parameters", "FmLockLevel",0x00010001,0x0493E0

; Audio capture registry entries
HKR,,Driver,,PhilCap64.SYS
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,,"SAA716x Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"SAA716x Audio Capture Device"

; add audio input and output pinnames
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_VIDEO_PIN%,"Name",,"Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_PIN%,"Name",,"~Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PIN%,"Name",,"~Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_PS_PIN%,"Name",, "MPEG2 Program"

[PhilCap.EventInstall.NTx86]
AddReg = PhilCapEvent_AddReg.NTx86

[PhilCap.EventInstall.NTAMD64]
AddReg = PhilCapEvent_AddReg.NTAMD64

[PhilCapEvent_AddReg.NTx86]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\PhilCap.sys"
HKR,,TypesSupported,0x00010001,7

[PhilCapEvent_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\PhilCap64.sys"
HKR,,TypesSupported,0x00010001,7

;
;*** strings, GUIDs and names
;

[Strings]
; Our 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_PIN      = "{16FFBD0A-F770-4692-A2FF-DD394DFE9564}"
AVSTREAM_ANLG_AUDIO_PIN      = "{BA9E27B1-CF44-490e-8EAB-5F662E5FFE74}"
AVSTREAM_MPEG_PS_PIN         = "{DDA87B83-65DB-4aec-82D0-79FBE67D2BB6}"

; system defines

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 

FLG_REGSVR_DLLREGISTER = 0x00000001

;Our strings

PROVIDER                  = "Pinnacle Systems"
PCTV3010ix.DeviceDesc     = "Pinnacle PCTV 3010iX Dual Analog + DVB-T"
PCTV7010ix.DeviceDesc     = "Pinnacle PCTV 7010iX Dual Analog + DVB-T + DVB-S"
PCTV310ix.DeviceDesc      = "Pinnacle PCTV 310iX Analog + DVB-T"
PCTV710ix.DeviceDesc      = "Pinnacle PCTV 710iX Analog + DVB-T + DVB-S"


AVSTRM_INSTALLATION_DISK = "PCTV 310iX/710iX/3010iX/7010iX installation disk"
DISPLAY_NAME             = "Pinnacle PCTV service"
SERVICE_DESCRIPTION      = "The PCTV PCIe capture driver"
