; Copyright 2007 DTV-DVB Semiconductors

[Version]
signature           = "$CHICAGO$" ;all windows os
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
CatalogFile.NTX86   = 3057mBda.cat
CatalogFile.NTAMD64 = AMD64\3057mBda64.cat
CatalogFile.NTIA64  = IA64\3057mBda64.cat
;---------------------mm/dd/yyyy,version--------------------
DriverVer           = 09/25/2008,1.0.4.3
;                   -> Release
;-----------------------------------------------------------

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%60Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7160
%61Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7161
%62Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7162
%63Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7163

;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%60Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7160
%61Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7161
%62Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7162
%63Hybrid.DeviceDesc% = 3057mBda,PCI\VEN_1131&DEV_7163

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksNames.AMD64]
1 = %AVSTRM_INSTALLATION_DISK%, 3057mBda.inf, , \AMD64

[SourceDisksNames.IA64]
1 = %AVSTRM_INSTALLATION_DISK%, 3057mBda.inf, , \IA64

[SourceDisksFiles]
716xCoInstaller.dll 	= 1
NXPMV32.dll           	= 1
3057mBda.sys         	= 1

[SourceDisksFiles.AMD64]
NXPMV64.dll       	= 1
3057mBda64.sys       	= 1

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

[3057mBda.CopyCoInst.NTx86]
716xCoInstaller.dll

[3057mBda.CopyFiles.NTx86]
3057mBda.sys

[3057mBda.CopyFiles.NTAMD64]
3057mBda64.sys

[3057mBda.CopyDll.NTx86]
NXPMV32.dll

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

[3057mBda.ntx86.CoInstallers]
CopyFiles = 3057mBda.CopyCoInst.NTx86
AddReg    = 3057mBda.CoInstaller_AddReg.NTx86

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

[3057mBda.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     = 3057mBda.CopyFiles.NTx86, 3057mBda.CopyDll.NTx86
AddReg        = 3057mBda.AddReg.NTx86
RegisterDlls  = 3057mBda.Register.NTx86

[3057mBda.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     = 3057mBda.CopyFiles.NTAMD64, 3057mBda.CopyDll.NTAMD64
AddReg        = 3057mBda.AddReg.NTAMD64
RegisterDlls  = 3057mBda.Register.NTAMD64

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

[3057mBda.NTAMD64.Services]
AddService = 3057mBda64, 0x00000002, 3057mBda.ServiceInstall.NTAMD64, 3057mBda.EventInstall.NTAMD64

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

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

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

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

[3057mBda.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,3057mBda.sys
HKR,"Parameters","PowerSaveMode",0x00010001,1

; Audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,3057mBda.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"

[3057mBda.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,3057mBda.sys

; Audio capture registry entries
HKR,,Driver,,3057mBda64.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"

[3057mBda.EventInstall.NTx86]
AddReg = 3057mBdaEvent_AddReg.NTx86

[3057mBda.EventInstall.NTAMD64]
AddReg = 3057mBdaEvent_AddReg.NTAMD64

[3057mBdaEvent_AddReg.NTx86]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\3057mBda.sys"
HKR,,TypesSupported,0x00010001,7
HKR,"Parameters","PowerSaveMode",0x00010001,1

[3057mBdaEvent_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\3057mBda64.sys"
HKR,,TypesSupported,0x00010001,7
HKR,"Parameters","PowerSaveMode",0x00010001,1

;
;*** 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                 = "DTV-DVB Semiconductors"
60Hybrid.DeviceDesc      = "DTV-DVB 3057m, Hybrid Capture Device"
61Hybrid.DeviceDesc      = "DTV-DVB 3057m, Hybrid Capture Device"
62Hybrid.DeviceDesc      = "DTV-DVB 3057m, Hybrid Capture Device"
63Hybrid.DeviceDesc      = "DTV-DVB 3057m  Hybrid Capture Device"
AVSTRM_INSTALLATION_DISK = "DTV-DVB installation disk"
DISPLAY_NAME             = "DTV-DVB service"
SERVICE_DESCRIPTION      = "The PCIe capture driver"
