; Copyright (c) 2004-2009 Beholder International Ltd. All rights reserved.

[Version]
Signature = "$Chicago$"
Class = Media
ClassGUID = {4D36E96C-E325-11CE-BFC1-08002BE10318}
PnpLockDown = 0
Provider = %Beholder%
DriverPackageDisplayName = "Behold TV BDA driver"
DriverPackageType = PlugAndPlay
CatalogFile.NT = beholder.cat
DriverVer = 12/23/2009, 5.1.3.0

[SourceDisksNames]
1 = %DiskName%, i386.cab,
2 = %DiskName%, amd64.cab,

[SourceDisksFiles]
saa713x.sys = 1
ttm6010.sys = 1
bhkspex.dll = 1

[SourceDisksFiles.amd64]
saa713x.sys = 2
ttm6010.sys = 2
bhkspex.x64 = 2
bhkspex.dll = 1

[DestinationDirs]
SAA713x.Driver = 10, system32\drivers
SAA713x.NTDrv = 12
TTM6010.NTDrv = 12
BHKSPEX.DllWOW = 10, SysWOW64
BHKSPEX.Dll64 = 11
BHKSPEX.Dll = 11

[Manufacturer]
%Beholder% = Beholder, NTamd64

[Beholder]
%BTV7130% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00000000
%BTV7134% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00000000
%BTV7135% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_00000000
%BTV401T% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00001131
%BTV403F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00001131
%BTV401T% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40160000
%BTV403T% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40360000
%BTV403F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40370000
%BTV405F% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40510000
%BTV407F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40710000
%BTV409F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_40910000
%BTV505R% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50510000
%BTV505R% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_505B0000
%BTV507R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50710000
%BTV507R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_507B0000
%BTV5201% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_52010000
%BTV505F% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50505ACE
%BTV507F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_50705ACE
%BTV509F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50905ACE
%BTV607F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60705ACE
%BTV607F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60715ACE
%BTV607R% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60725ACE
%BTV607R% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60735ACE
%BTV609F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE
%BTV609F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60915ACE
%BTV609R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60925ACE
%BTV609R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60935ACE
%BTV6191% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61905ACE
%BTV6192% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61935ACE
%BTV6193% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61915ACE
%BTV6290% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_62905ACE
%BTV7595% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_75955ACE
%BTV7190% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_71905ACE
%BTV7090% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_70905ACE
%BTVDEC0% = TTM6010, USB\VID_6000&PID_DEC0
%BTVDEC1% = TTM6010, USB\VID_6000&PID_DEC1

[Beholder.NTamd64]
%BTV7130% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00000000
%BTV7134% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00000000
%BTV7135% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_00000000
%BTV401T% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00001131
%BTV403F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00001131
%BTV401T% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40160000
%BTV403T% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40360000
%BTV403F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40370000
%BTV405F% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40510000
%BTV407F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40710000
%BTV409F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_40910000
%BTV505R% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50510000
%BTV505R% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_505B0000
%BTV507R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50710000
%BTV507R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_507B0000
%BTV5201% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_52010000
%BTV505F% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50505ACE
%BTV507F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_50705ACE
%BTV509F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50905ACE
%BTV607F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60705ACE
%BTV607F% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60715ACE
%BTV607R% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60725ACE
%BTV607R% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60735ACE
%BTV609F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE
%BTV609F% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60915ACE
%BTV609R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60925ACE
%BTV609R% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60935ACE
%BTV6191% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61905ACE
%BTV6192% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61935ACE
%BTV6193% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_61915ACE
%BTV6290% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_62905ACE
%BTV7595% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_75955ACE
%BTV7190% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_71905ACE
%BTV7090% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_70905ACE
%BTVDEC0% = TTM6010, USB\VID_6000&PID_DEC0
%BTVDEC1% = TTM6010, USB\VID_6000&PID_DEC1

[SAA7130]
AlsoInstall  = KS.Registration(ks.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
AddReg       = SAA713x.AddReg, BHKSPEX.AddRegProp
CopyFiles    = SAA713x.Driver, BHKSPEX.Dll
KnownFiles   = SAA713x.Known

[SAA7130.NT]
Include      = ks.inf, kscaptur.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg       = SAA713x.AddReg
CopyFiles    = SAA713x.NTDrv, BHKSPEX.Dll
RegisterDlls = BHKSPEX.Register

[SAA7130.NTamd64]
Include      = ks.inf, kscaptur.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg       = SAA713x.AddReg, BHKSPEX.AddRegProp64
CopyFiles    = SAA713x.NTDrv, BHKSPEX.Dll64, BHKSPEX.DllWOW

[SAA713X]
AlsoInstall  = KS.Registration(ks.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
AddReg       = SAA713x.AddReg, BHKSPEX.AddRegProp
CopyFiles    = SAA713x.Driver, BHKSPEX.Dll
KnownFiles   = SAA713x.Known

[SAA713X.NT]
Include      = ks.inf, kscaptur.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration.NT, BDA.Installation.NT
AddReg       = SAA713x.AddReg
CopyFiles    = SAA713x.NTDrv, BHKSPEX.Dll
RegisterDlls = BHKSPEX.Register

[SAA713X.NTamd64]
Include      = ks.inf, kscaptur.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration.NT, BDA.Installation.NT
AddReg       = SAA713x.AddReg, BHKSPEX.AddRegProp64
CopyFiles    = SAA713x.NTDrv, BHKSPEX.Dll64, BHKSPEX.DllWOW

[TTM6010.NT]
Include      = ks.inf, kscaptur.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration.NT, BDA.Installation.NT
AddReg       = TTM6010.AddReg
CopyFiles    = TTM6010.NTDrv, BHKSPEX.Dll
RegisterDlls = BHKSPEX.Register

[TTM6010.NTamd64]
Include      = ks.inf, kscaptur.inf, wdmaudio.inf, bda.inf
Needs        = KS.Registration, KSCAPTUR.Registration.NT, WDMAUDIO.Registration.NT, BDA.Installation.NT
AddReg       = TTM6010.AddReg, BHKSPEX.AddRegProp64
CopyFiles    = TTM6010.NTDrv, BHKSPEX.Dll64, BHKSPEX.DllWOW

[SAA713x.Driver]
saa713x.sys

[SAA713x.NTDrv]
saa713x.sys

[TTM6010.NTDrv]
ttm6010.sys

[SAA713x.Known]
saa713x.sys = safe

[BHKSPEX.Dll]
bhkspex.dll

[BHKSPEX.DllWOW]
bhkspex.dll

[BHKSPEX.Dll64]
bhkspex.dll, bhkspex.x64

[BHKSPEX.Register]
11,, bhkspex.dll, 1

[SAA713x.AddReg]
HKR,, DevLoader,, *ntkern
HKR,, NTMPDriver,, saa713x.sys
HKR,, PageOutWhenUnopened, 3, 0
HKR,, DontSuspendIfStreamsAreRunning, 3, 00
;>>> pci dma config
HKR, DMA, "PCILatency",          0x00010001, 64		; PCI Latency Timer (8..248). Default 64 clock
HKR, DMA, "RS Burst Length",     0x00010001, 7		; PCI DMA RS burst length (4=16DWORD; 5=32DWORD; 6=64DWORD; 7=Unlimited)
;>>> pin names
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_AIN%,  Name,, %PinName.AIN%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_AOUT%, Name,, %PinName.AOUT%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_ITU%,  Name,, %PinName.ITU%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_I2S%,  Name,, %PinName.I2S%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_MPG%,  Name,, %PinName.MPG%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_RDS%,  Name,, %PinName.RDS%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_DVBT%, Name,, %PinName.DVBT%

[TTM6010.AddReg]
HKR,, DevLoader,, *ntkern
HKR,, NTMPDriver,, ttm6010.sys
;>>> pin names
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_AIN%,  Name,, %PinName.AIN%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_AOUT%, Name,, %PinName.AOUT%
HKLM, SYSTEM\CurrentControlSet\Control\MediaCategories\%PINNAME_DVBT%, Name,, %PinName.DVBT%

[BHKSPEX.AddRegProp]
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce, "bhkspex",, "%11%\Regsvr32 /s %11%\bhkspex.dll"

[BHKSPEX.AddRegProp64]
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce, "bhkspex",, "%11%\Regsvr32 /s %11%\bhkspex.dll"
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce, "bhkspexWOW",, "%10%\SysWOW64\Regsvr32 /s %10%\SysWOW64\bhkspex.dll"

[SAA7130.NT.Services]
AddService = SAA713x, 0x00000002, SAA713x.ServiceInstall

[SAA713X.NT.Services]
AddService = SAA713x, 0x00000002, SAA713x.ServiceInstall

[TTM6010.NT.Services]
AddService = TTM6010, 0x00000002, TTM6010.ServiceInstall

[SAA7130.NTamd64.Services]
AddService = SAA713x, 0x00000002, SAA713x.ServiceInstall

[SAA713X.NTamd64.Services]
AddService = SAA713x, 0x00000002, SAA713x.ServiceInstall

[TTM6010.NTamd64.Services]
AddService = TTM6010, 0x00000002, TTM6010.ServiceInstall

[SAA713x.ServiceInstall]
DisplayName   = %SERVICE_NAME_713X%
Description   = %SERVICE_NAME_713X%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\saa713x.sys

[TTM6010.ServiceInstall]
DisplayName   = %SERVICE_NAME_6010%
Description   = %SERVICE_NAME_6010%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\ttm6010.sys

[Strings]
; Pin Name GUIDs
PINNAME_AIN           = "{4711ABF9-DFF8-41cc-9B32-4F6C9F913ECA}"
PINNAME_AOUT          = "{66ADF9CE-CA7A-4eb7-9C94-51D43600515A}"
PINNAME_ITU           = "{687AC981-C687-46dd-8879-7287BF5BBED8}"
PINNAME_I2S           = "{82070B74-56C0-4dec-AD85-4C59A26DF739}"
PINNAME_MPG           = "{D222BCB1-A594-40e7-8327-95C29BEA0D89}"
PINNAME_RDS           = "{A4CEFD37-C2F5-4de1-987A-040A72E286A4}"
PINNAME_DVBT          = "{6AC52C99-35FC-41ec-BED3-76EC2405C8C5}"
; Pin Names
PinName.AIN           = "Audio In"
PinName.AOUT          = "Audio PCM"
PinName.ITU           = "Video ITU"
PinName.I2S           = "Audio I2S"
PinName.MPG           = "MPEG Out"
PinName.RDS           = "RDS"
PinName.DVBT          = "Antenna"

; System defines
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START    = 0
SERVICE_SYSTEM_START  = 1
SERVICE_AUTO_START    = 2
SERVICE_DEMAND_START  = 3
SERVICE_DISABLED      = 4
SERVICE_ERROR_IGNORE  = 0
SERVICE_ERROR_NORMAL  = 1

SERVICE_NAME_713X     = "Behold TV WDM Capture (SAA713x)"
SERVICE_NAME_6010     = "Beholder BDA Capture (TTM6010)"

Beholder              = "Beholder International Ltd."
DiskName              = "Behold TV installation disk (x86/amd64)"

BTV7130               = "Beholder TV Tuner (SAA7130)"
BTV7134               = "Beholder TV Tuner (SAA7134)"
BTV7135               = "Beholder TV Tuner (SAA7135)"
BTV401T               = "Behold TV 401"
BTV403T               = "Behold TV 403"
BTV403F               = "Behold TV 403 FM"
BTV405F               = "Behold TV 405 FM"
BTV407F               = "Behold TV 407 FM"
BTV409F               = "Behold TV 409 FM"
BTV505F               = "Behold TV 505 FM"
BTV505R               = "Behold TV 505 RDS"
BTV507F               = "Behold TV 507 FM"
BTV507R               = "Behold TV 507 RDS"
BTV509F               = "Behold TV 509 FM"
BTV5201               = "Behold TV Columbus"
BTV607F               = "Behold TV 607 FM"
BTV607R               = "Behold TV 607 RDS"
BTV609F               = "Behold TV 609 FM"
BTV609R               = "Behold TV 609 RDS"
BTV6191               = "Behold TV M6"
BTV6192               = "Behold TV M6 Extra"
BTV6193               = "Behold TV M63"
BTV6290               = "Behold TV H6"
BTV7595               = "Behold TV X7"
BTV7190               = "Behold TV H7"
BTV7090               = "Behold TV A7"
BTVDEC0               = "Behold TV Wander"
BTVDEC1               = "Behold TV Voyage"
