; Copyright (c) 2004-2007 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 (SAA713X)"
DriverPackageType = PlugAndPlay
CatalogFile.NT = saa713x.cat
DriverVer = 05/18/2009, 5.0.8.0

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

[SourceDisksFiles]
saa713x.sys = 1
ksp713x.dll = 1

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

[DestinationDirs]
SAA713x.Driver = 10, system32\drivers
SAA713x.NTDrv = 12
SAA713x.DllWOW = 10, SysWOW64
SAA713x.Dll64 = 11
SAA713x.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
%BTV4010% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00001131
%BTV4031% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00001131
%BTV4010% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40160000
%BTV4030% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40360000
%BTV4031% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40370000
%BTV4051% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40510000
%BTV4071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40710000
%BTV4091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_40910000
%BTV5052% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50510000
%BTV5052% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_505B0000
%BTV5072% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50710000
%BTV5072% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_507B0000
%BTV5201% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_52010000
%BTV5051% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50505ACE
%BTV5071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_50705ACE
%BTV5091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50905ACE
%BTV6071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60705ACE
%BTV6071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60715ACE
%BTV6072% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60725ACE
%BTV6072% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60735ACE
%BTV6091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE
%BTV6091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60915ACE
%BTV6092% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60925ACE
%BTV6092% = 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

[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
%BTV4010% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_00001131
%BTV4031% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_00001131
%BTV4010% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40160000
%BTV4030% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40360000
%BTV4031% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40370000
%BTV4051% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_40510000
%BTV4071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_40710000
%BTV4091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_40910000
%BTV5052% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50510000
%BTV5052% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_505B0000
%BTV5072% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50710000
%BTV5072% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_507B0000
%BTV5201% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_52010000
%BTV5051% = SAA7130, PCI\VEN_1131&DEV_7130&SUBSYS_50505ACE
%BTV5071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_50705ACE
%BTV5091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_50905ACE
%BTV6071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60705ACE
%BTV6071% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60715ACE
%BTV6072% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60725ACE
%BTV6072% = SAA713X, PCI\VEN_1131&DEV_7134&SUBSYS_60735ACE
%BTV6091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60905ACE
%BTV6091% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60915ACE
%BTV6092% = SAA713X, PCI\VEN_1131&DEV_7133&SUBSYS_60925ACE
%BTV6092% = 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

[SAA7130]
AlsoInstall  = KS.Registration(ks.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
AddReg       = SAA713x.AddReg, SAA713x.AddRegProp
CopyFiles    = SAA713x.Driver, SAA713x.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, SAA713x.Dll
RegisterDlls = SAA713x.Register

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

[SAA713X]
AlsoInstall  = KS.Registration(ks.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
AddReg       = SAA713x.AddReg, SAA713x.AddRegProp
CopyFiles    = SAA713x.Driver, SAA713x.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, SAA713x.AddRegWave
CopyFiles    = SAA713x.NTDrv, SAA713x.Dll
RegisterDlls = SAA713x.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, SAA713x.AddRegWave, SAA713x.AddRegProp64
CopyFiles    = SAA713x.NTDrv, SAA713x.Dll64, SAA713x.DllWOW

[SAA713x.Driver]
saa713x.sys

[SAA713x.NTDrv]
saa713x.sys

[SAA713x.Known]
saa713x.sys = safe

[SAA713x.Dll]
ksp713x.dll

[SAA713x.DllWOW]
ksp713x.dll

[SAA713x.Dll64]
ksp713x.dll, ksp713x.x64

[SAA713x.Register]
11,, ksp713x.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%

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

[SAA713x.AddRegProp64]
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce, "ksp713x",, "%11%\Regsvr32 /s %11%\ksp713x.dll"
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce, "ksp713xWOW",, "%10%\SysWOW64\Regsvr32 /s %10%\SysWOW64\ksp713x.dll"

[SAA713x.AddRegWave]
HKR,, AssociatedFilters,, wdmaud
HKR,, Driver,, saa713x.sys
HKR, Drivers, SubClasses,, wave
HKR, Drivers\wave\wdmaud.drv, Driver,, wdmaud.drv
HKR, Drivers\wave\wdmaud.drv, Description,, %FilterName.ACapture%

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

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

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

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

[SAA713x.ServiceInstall]
DisplayName   = %SERVICE_NAME%
Description   = %SERVICE_NAME%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\saa713x.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        = "Behold TV WDM Capture (SAA713x)"

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

BTV7130 = "Beholder TV Tuner (SAA7130)"
BTV7134 = "Beholder TV Tuner (SAA7134)"
BTV7135 = "Beholder TV Tuner (SAA7135)"
BTV4010 = "Behold TV 401"
BTV4030 = "Behold TV 403"
BTV4031 = "Behold TV 403 FM"
BTV4051 = "Behold TV 405 FM"
BTV4071 = "Behold TV 407 FM"
BTV4091 = "Behold TV 409 FM"
BTV5051 = "Behold TV 505 FM"
BTV5052 = "Behold TV 505 RDS"
BTV5071 = "Behold TV 507 FM"
BTV5072 = "Behold TV 507 RDS"
BTV5091 = "Behold TV 509 FM"
BTV5201 = "Behold TV Columbus"
BTV6071 = "Behold TV 607 FM"
BTV6072 = "Behold TV 607 RDS"
BTV6091 = "Behold TV 609 FM"
BTV6092 = "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"
