; Copyright 2006, Philips Semiconductors GmbH

[Version]
signature   = "$CHICAGO$" ;all windows os
Class       = MEDIA
ClassGUID   = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    = %PSH%
DriverVer   = 10/27/2006,1.0.3.3
CatalogFile = PCTV716x.cat
DriverPackageType=PlugAndPlay
DriverPackageDisplayName="PCTV 3010ix, 7010ix"

[Manufacturer]
%PSH%=Philips

[Philips]
;%60Hybrid.DeviceDesc% = PhilCap,PCI\VEN_1131&DEV_7160
;%61Hybrid.DeviceDesc% = PhilCap,PCI\VEN_1131&DEV_7161
;%62Hybrid.DeviceDesc% = PhilCap,PCI\VEN_1131&DEV_7162
;%63Hybrid.DeviceDesc% = PhilCap,PCI\VEN_1131&DEV_7163
%62Hybrid.DeviceDesc0%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010011BD
%62Hybrid.DeviceDesc1%=PhilCap,PCI\VEN_1131&DEV_7162&SUBSYS_010111BD


[DestinationDirs]
PhilCap.CopyCoInst = 11
PhilCap.CopyFiles  = 10,system32\drivers ; be aware not to use 12 as the drivers directory, 
                                         ; as driver will not work anymore in W98

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll = 1
PhilCap.sys         = 1

[PhilCap.CopyCoInst]
716xCoInstaller.dll

[PhilCap.CopyFiles]
PhilCap.sys

;
;*** initialization and registry entries
;

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

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

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

[PhilCap]
AlsoInstall = KS.Registration(ks.inf), WDMAUDIO.Registration(wdmaudio.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
CopyFiles   = PhilCap.CopyFiles
AddReg      = PhilCap.AddReg

[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
AddReg    = PhilCap.AddReg

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

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

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

[PhilCap.AddReg]
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 Detection extention
HKR, "Parameters", "UseDecoderRegistry",0x00010001,0x01
HKR, "AudioDecoder", "EnableAudioStdDetectionEx",0x00010001,0x01

; 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"

[PhilCap.EventInstall]
AddReg = PhilCapEvent_AddReg

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

;
;*** strings, GUIDs and names
;

[Strings]

; Proxy GUIDs

KSProxy.CLSID            = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID             = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
KSTVAudio.CLSID          = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
KSTvTune.CLSID           = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"

; Category GUIDs

KSCATEGORY_MULTIPLEXER   = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"
KSCATEGORY_ENCODER       = "{19689BF6-C384-48fd-AD51-90E58C79F70B}"
KSCATEGORY_CAPTURE       = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO         = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO         = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"

; 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}"

; Our Filter GUIDs

VAMP_MPG_ENCODER_FILTER  = "{949607F9-0DA5-4099-982E-D91DE6150B00}"
VAMP_ANLG_AUDIO_FILTER   = "{F3B951E7-8619-4ff3-91CA-03910E4BB900}"
VAMP_ANLG_CAP_FILTER     = "{BBEFB6C7-2FC4-4139-BB8B-A58BBA724000}"

; 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

PSH="Philips"
62Hybrid.DeviceDesc0     = "Pinnacle PCTV 3010iX Dual Analog + DVB-T"
62Hybrid.DeviceDesc1     = "Pinnacle PCTV 7010iX Dual Analog + DVB-T + DVB-S"
60Hybrid.DeviceDesc      = "Philips SAA7160, Hybrid Capture Device"
61Hybrid.DeviceDesc      = "Philips SAA7161, Hybrid Capture Device"
62Hybrid.DeviceDesc      = "Philips SAA7162, Hybrid Capture Device"
63Hybrid.DeviceDesc      = "Philips SAA7163  Hybrid Capture Device"
AVSTRM_INSTALLATION_DISK = "PhilCap installation disk"
DISPLAY_NAME             = "PhilCap service"
SERVICE_DESCRIPTION      = "The PCIe capture driver"
