;**************************************************************
;
; Copyright 2000 - 2006, Philips Semiconductors GmbH
;
;	  Bitland - BDA Hybrid TV Capture Driver
;
;**************************************************************

[Version]
signature           = "$CHICAGO$" ;All Windows OS
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
PNPLockDown         = 1 ;;; Lock driver against 3rd party application changes
DriverVer=04/03/2007,6.0.6000.16420
CatalogFile=Ph3xIBC10.CAT


[Manufacturer]
%PROVIDER%  = SupportedBoards, NTx86...1, NTAMD64...1

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86...1]

;******** Lenovo ***
%BOARD_01.DeviceDesc% = BOARD_01.NTx86,PCI\VEN_1131&DEV_7134&SUBSYS_45321642
%BOARD_01.DeviceDesc% = BOARD_01.NTx86,PCI\VEN_1131&DEV_7134&SUBSYS_45321131

;******** ??? ***
%BOARD_02.DeviceDesc% = BOARD_02.NTx86,PCI\VEN_1131&DEV_7130&SUBSYS_42951642


;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64...1]

;******** Lenovo ***
%BOARD_01.DeviceDesc% = BOARD_01.NTAMD64,PCI\VEN_1131&DEV_7134&SUBSYS_45321642
%BOARD_01.DeviceDesc% = BOARD_01.NTAMD64,PCI\VEN_1131&DEV_7134&SUBSYS_45321131

;******** ??? ***
%BOARD_02.DeviceDesc% = BOARD_02.NTAMD64,PCI\VEN_1131&DEV_7130&SUBSYS_42951642


[SourceDisksNames]
1 = %INSTALLATION_DISK%,,


[SourceDisksFiles]
Ph3xIB32.sys           = 1
Ph3xIB64.sys           = 1
Ph3xIB32MV.dll         = 1
Ph3xIB64MV.dll         = 1


[DestinationDirs]
Ph3xIB32.CopyDll.NTx86      = 11
Ph3xIB64.CopyDll.NTAMD64    = 11
Ph3xIB32.CopyDriver.NTx86   = 10,system32\drivers
Ph3xIB64.CopyDriver.NTAMD64 = 10,system32\drivers


[Ph3xIB32.CopyDll.NTx86]
Ph3xIB32MV.dll


[Ph3xIB64.CopyDll.NTAMD64]
Ph3xIB64MV.dll


[Ph3xIB32.CopyDriver.NTx86]
Ph3xIB32.sys


[Ph3xIB64.CopyDriver.NTAMD64]
Ph3xIB64.sys



;======================================
;
;       Initialization Entries
;
;======================================

;******** BOARD_01 x32 ***
[BOARD_01.NTx86]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = Ph3xIB32.CopyDriver.NTx86, Ph3xIB32.CopyDll.NTx86
AddReg        = Ph3xIB32.AddReg.NTx86, BOARD_01.AddReg
RegisterDlls  = Ph3xIB32.Register.NTx86
AddProperty   = Ph3xIB32.AddProp.NTx86

[BOARD_01.NTx86.Services]
AddService    = %SERVICE_NAME_X32%, 0x00000002, Ph3xIB32.ServiceInstall.NTx86


;******** BOARD_01 x64 ***
[BOARD_01.NTAMD64]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = Ph3xIB64.CopyDriver.NTAMD64, Ph3xIB64.CopyDll.NTAMD64
AddReg        = Ph3xIB64.AddReg.NTAMD64, BOARD_01.AddReg
RegisterDlls  = Ph3xIB64.Register.NTAMD64
AddProperty   = Ph3xIB64.AddProp.NTAMD64

[BOARD_01.NTAMD64.Services]
AddService    = %SERVICE_NAME_X64%, 0x00000002, Ph3xIB64.ServiceInstall.NTAMD64


;******** BOARD_02 x32 ***
[BOARD_02.NTx86]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = Ph3xIB32.CopyDriver.NTx86, Ph3xIB32.CopyDll.NTx86
AddReg        = Ph3xIB32.AddReg.NTx86, BOARD_02.AddReg
RegisterDlls  = Ph3xIB32.Register.NTx86
AddProperty   = Ph3xIB32.AddProp.NTx86

[BOARD_02.NTx86.Services]
AddService    = %SERVICE_NAME_X32%, 0x00000002, Ph3xIB32.ServiceInstall.NTx86


;******** BOARD_02 x64 ***
[BOARD_02.NTAMD64]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = Ph3xIB64.CopyDriver.NTAMD64, Ph3xIB64.CopyDll.NTAMD64
AddReg        = Ph3xIB64.AddReg.NTAMD64, BOARD_02.AddReg
RegisterDlls  = Ph3xIB64.Register.NTAMD64
AddProperty   = Ph3xIB64.AddProp.NTAMD64

[BOARD_02.NTAMD64.Services]
AddService    = %SERVICE_NAME_X64%, 0x00000002, Ph3xIB64.ServiceInstall.NTAMD64


;******** GENERAL x32 ***
[Ph3xIB32.ServiceInstall.NTx86]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\Ph3xIB32.sys


;******** GENERAL x64 ***
[Ph3xIB64.ServiceInstall.NTAMD64]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\Ph3xIB64.sys



;======================================
;
;           Property Entries
;
;======================================
[Ph3xIB32.AddProp.NTx86]
GenericDriverInstalled,,,,1

[Ph3xIB64.AddProp.NTAMD64]
GenericDriverInstalled,,,,1


;======================================
;
;           Registry Entries
;
;======================================
; [StartName=driver-object-name]
; [AddReg=add-registry-section[, add-registry-section] ...]
; [DelReg=del-registry-section[, del-registry-section] ...]
; [BitReg=bit-registry-section[,bit-registry-section] ...]
; [LoadOrderGroup=load-order-group-name]
; [Dependencies=depend-on-item-name[,depend-on-item-name]...]

;
;******** General DLL Registry Entries ***
;

[Ph3xIB32.Register.NTx86]
11,,Ph3xIB32MV.dll,1 ;FLG_REGSVR_DLLREGISTER


[Ph3xIB64.Register.NTAMD64]
11,,Ph3xIB64MV.dll,1 ;FLG_REGSVR_DLLREGISTER


;
;******** General Driver Registry Entries ***
;

[Ph3xIB32.AddReg.NTx86]

HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,Ph3xIB32.sys

; --- Registry Entries For Audio Capture ---
HKR,,Driver,,Ph3xIB32.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,,"Philips Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Philips 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_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"


[Ph3xIB64.AddReg.NTAMD64]

HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,Ph3xIB64.sys

; --- Registry Entries For Audio Capture ---
HKR,,Driver,,Ph3xIB64.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,,"Philips Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Philips 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_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"


;
;******** Board - Specific Registry Entries ***
;

;---- BOARD_01 ----
[BOARD_01.AddReg]

; Prefix will be displayed in front of the device name on every filter
HKR, "Parameters","Prefix",,%PHILIPS_CUSTOM_TUNERNAME%

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

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

HKR, "I2C Devices", "Number of I2C Devices",0x00010001,0x01
HKR, "I2C Devices", "Device 0, Data1",0x00010001,0x2F  ; Tuner ID
HKR, "I2C Devices", "Device 0, Data2",0x00010001,0xC0  ; Tuner slave addr.
HKR, "I2C Devices", "Device 0, Data3",0x00010001,0x86  ; Tuner IF PLL slave addr.
HKR, "I2C Devices", "Device 0, Data4",0x00010001,0x00  ; Demod
HKR, "I2C Devices", "Device 0, Data5",0x00010001,0x00  ; # of additional data

HKR, "VideoDecoder", "Tuner Channel",0x00010001,0x01
HKR, "VideoDecoder", "CVBS Channel",0x00010001,0x03
HKR, "VideoDecoder", "CVBS Channel2",0x00010001,0x03
HKR, "VideoDecoder", "SVHS Channel",0x00010001,0x06
HKR, "VideoDecoder", "SVHS Channel2",0x00010001,0x06
;HKR, "VideoDecoder", "FM Radio Channel",0x00010001,0x01

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


;---- BOARD_02 ----
[BOARD_02.AddReg]

; Prefix will be displayed in front of the device name on every filter
HKR, "Parameters","Prefix",,%PHILIPS_CUSTOM_TUNERNAME%

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

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

HKR, "I2C Devices", "Number of I2C Devices",0x00010001,0x01
HKR, "I2C Devices", "Device 0, Data1",0x00010001,0x2F  ; Tuner ID
HKR, "I2C Devices", "Device 0, Data2",0x00010001,0xC0  ; Tuner slave addr.
HKR, "I2C Devices", "Device 0, Data3",0x00010001,0x86  ; Tuner IF PLL slave addr.
HKR, "I2C Devices", "Device 0, Data4",0x00010001,0x00  ; Demod
HKR, "I2C Devices", "Device 0, Data5",0x00010001,0x00  ; # of additional data

HKR, "VideoDecoder", "Tuner Channel",0x00010001,0x01
HKR, "VideoDecoder", "CVBS Channel",0x00010001,0x03
HKR, "VideoDecoder", "CVBS Channel2",0x00010001,0x03
HKR, "VideoDecoder", "SVHS Channel",0x00010001,0x06
HKR, "VideoDecoder", "SVHS Channel2",0x00010001,0x06
;HKR, "VideoDecoder", "FM Radio Channel",0x00010001,0x01

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



;======================================
;
;           Strings Defines
;
;======================================

[Strings]
;-------------------------------
; Capture Filter 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}"


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


;--------------------
; Customer Strings
;--------------------

DRIVER_NAME_X32               = "Ph3xIB32.sys"
DRIVER_NAME_X64               = "Ph3xIB64.sys"
MACROVISION_NAME_X32          = "Ph3xIB32MV.dll"
MACROVISION_NAME_X64          = "Ph3xIB64MV.dll"

SERVICE_NAME_X32              = "Ph3xIB32"
SERVICE_NAME_X64              = "Ph3xIB64"
SERVICE_DESCRIPTION           = "Philips 713x Inbox BDA Capture Driver"
DISPLAY_NAME                  = "Philips 713x Inbox PCI TV Card"

PROVIDER                      = "Bitland"
INSTALLATION_DISK             = "Vista Installation Disk"


;*** Specific Names ***
;-----------------
PHILIPS_CUSTOM_TUNERNAME      = "713x"
BOARD_01.DeviceDesc           = "Philips SAA7134, Hybrid Capture Device"
BOARD_02.DeviceDesc           = "Philips SAA7134, Hybrid Capture Device"

