; Copyright 2007 NXP Semiconductors

[Version]
signature           = "$CHICAGO$" ;all windows os
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
DriverVer           = 09/11/2009,1.0.5.76
CatalogFile.NTX86   = NxpCap.cat
CatalogFile.NTAMD64 = NxpCap64.cat

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
;%60Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7160
;%61Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7161
;%62Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7162
;%31Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231
%31Hybrid.DeviceDesc% = NXP7231_0001,PCI\VEN_1131&DEV_7231&SUBSYS_00011131
%31Hybrid.DeviceDesc% = NXP7231_0002,PCI\VEN_1131&DEV_7231&SUBSYS_00021131
%31Hybrid.DeviceDesc_MINICARD%    = NXP7231_0003,PCI\VEN_1131&DEV_7231&SUBSYS_00031131

;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
;%60Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7160
;%61Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7161
;%62Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7162
;%31Hybrid.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231
%31Hybrid.DeviceDesc% = NXP7231_0001,PCI\VEN_1131&DEV_7231&SUBSYS_00011131
%31Hybrid.DeviceDesc% = NXP7231_0002,PCI\VEN_1131&DEV_7231&SUBSYS_00021131
%31Hybrid.DeviceDesc_MINICARD%    = NXP7231_0003,PCI\VEN_1131&DEV_7231&SUBSYS_00031131

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll              = 1
NXPMV32.dll                      = 1
NXPMV64.dll                      = 1
NxpCap.sys                       = 1
NxpCap64.sys                     = 1
11317231_00000000_1.bin          = 1
11317231_00000000_a.bin          = 1
11317231_00011131_1.bin          = 1
11317231_00011131_a.bin          = 1
11317231_00011131_8a.bin         = 1
11317231_00021131_1.bin          = 1
11317231_00021131_1_dvbtdvbs.bin = 1
11317231_00021131_1_atvdvbt.bin  = 1
11317231_00021131_1_atvdvbs.bin  = 1
11317231_00031131_a.bin          = 1
11317231_00031131_8a.bin         = 1

[DestinationDirs]
NxpCap.CopyCoInst.NTx86      = 11
NxpCap.CopyDll.NTx86         = 11
NxpCap.CopyBSL.NTx86         = 10
NXP7231_0001.CopyBSL.NTx86   = 10
NXP7231_0002.CopyBSL.NTx86   = 10
NXP7231_0003.CopyBSL.NTx86   = 10
NxpCap.CopyFiles.NTx86       = 10,system32\drivers
NxpCap.CopyDll.NTAMD64       = 11
NxpCap.CopyBSL.NTAMD64       = 10
NXP7231_0001.CopyBSL.NTAMD64 = 10
NXP7231_0002.CopyBSL.NTAMD64 = 10
NXP7231_0003.CopyBSL.NTAMD64 = 10
NxpCap.CopyFiles.NTAMD64     = 10,system32\drivers

[NxpCap.CopyCoInst.NTx86]
716xCoInstaller.dll

[NxpCap.CopyFiles.NTx86]
NxpCap.sys

[NxpCap.CopyBSL.NTx86]
11317231_00000000_1.bin
11317231_00000000_a.bin

[NXP7231_0001.CopyBSL.NTx86]
11317231_00011131_1.bin
11317231_00011131_a.bin
11317231_00011131_8a.bin

[NXP7231_0002.CopyBSL.NTx86]
11317231_00021131_1.bin
11317231_00021131_1_dvbtdvbs.bin
11317231_00021131_1_atvdvbt.bin
11317231_00021131_1_atvdvbs.bin

[NXP7231_0003.CopyBSL.NTx86]
11317231_00031131_a.bin
11317231_00031131_8a.bin

[NxpCap.CopyFiles.NTAMD64]
NxpCap64.sys

[NxpCap.CopyDll.NTx86]
NXPMV32.dll

[NxpCap.CopyDll.NTAMD64]
NXPMV64.dll

[NxpCap.CopyBSL.NTAMD64]
11317231_00000000_1.bin
11317231_00000000_a.bin

[NXP7231_0001.CopyBSL.NTAMD64]
11317231_00011131_1.bin
11317231_00011131_a.bin
11317231_00011131_8a.bin

[NXP7231_0002.CopyBSL.NTAMD64]
11317231_00021131_1.bin
11317231_00021131_1_dvbtdvbs.bin
11317231_00021131_1_atvdvbt.bin
11317231_00021131_1_atvdvbs.bin

[NXP7231_0003.CopyBSL.NTAMD64]
11317231_00031131_a.bin
11317231_00031131_8a.bin

;
;*** initialization and registry entries
;

[NxpCap.ntx86.CoInstallers]
CopyFiles = NxpCap.CopyCoInst.NTx86
AddReg    = NxpCap.CoInstaller_AddReg.NTx86

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

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

[NXP7231_0001.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     = NxpCap.CopyFiles.NTx86, NxpCap.CopyDll.NTx86, NXP7231_0001.CopyBSL.NTx86
AddReg        = NxpCap.AddReg.NTx86
RegisterDlls  = NxpCap.Register.NTx86

[NXP7231_0002.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     = NxpCap.CopyFiles.NTx86, NxpCap.CopyDll.NTx86, NXP7231_0002.CopyBSL.NTx86
AddReg        = NxpCap.AddReg.NTx86
RegisterDlls  = NxpCap.Register.NTx86

[NXP7231_0003.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     = NxpCap.CopyFiles.NTx86, NxpCap.CopyDll.NTx86, NXP7231_0003.CopyBSL.NTx86
AddReg        = NxpCap.AddReg.NTx86, NXP7231_0003.AddReg.NTx86
RegisterDlls  = NxpCap.Register.NTx86

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

[NXP7231_0001.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     = NxpCap.CopyFiles.NTAMD64, NxpCap.CopyDll.NTAMD64, NXP7231_0001.CopyBSL.NTAMD64
AddReg        = NxpCap.AddReg.NTAMD64
RegisterDlls  = NxpCap.Register.NTAMD64

[NXP7231_0002.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     = NxpCap.CopyFiles.NTAMD64, NxpCap.CopyDll.NTAMD64, NXP7231_0002.CopyBSL.NTAMD64
AddReg        = NxpCap.AddReg.NTAMD64
RegisterDlls  = NxpCap.Register.NTAMD64

[NXP7231_0003.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     = NxpCap.CopyFiles.NTAMD64, NxpCap.CopyDll.NTAMD64, NXP7231_0003.CopyBSL.NTAMD64
AddReg        = NxpCap.AddReg.NTAMD64, NXP7231_0003.AddReg.NTAMD64
RegisterDlls  = NxpCap.Register.NTAMD64

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

[NXP7231_0001.NTx86.Services]
AddService = NxpCap, 0x00000002, NxpCap.ServiceInstall.NTx86, NxpCap.EventInstall.NTx86

[NXP7231_0002.NTx86.Services]
AddService = NxpCap, 0x00000002, NxpCap.ServiceInstall.NTx86, NxpCap.EventInstall.NTx86

[NXP7231_0003.NTx86.Services]
AddService = NxpCap, 0x00000002, NxpCap.ServiceInstall.NTx86, NxpCap.EventInstall.NTx86

[NxpCap.NTAMD64.Services]
AddService = NxpCap64, 0x00000002, NxpCap.ServiceInstall.NTAMD64, NxpCap.EventInstall.NTAMD64

[NXP7231_0001.NTAMD64.Services]
AddService = NxpCap64, 0x00000002, NxpCap.ServiceInstall.NTAMD64, NxpCap.EventInstall.NTAMD64

[NXP7231_0002.NTAMD64.Services]
AddService = NxpCap64, 0x00000002, NxpCap.ServiceInstall.NTAMD64, NxpCap.EventInstall.NTAMD64

[NXP7231_0003.NTAMD64.Services]
AddService = NxpCap64, 0x00000002, NxpCap.ServiceInstall.NTAMD64, NxpCap.EventInstall.NTAMD64

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

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

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

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

[NxpCap.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,NxpCap.sys
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"
HKR, "Parameters", "ManualOffset", 0x00010001, 5

; Audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,NxpCap.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,, "NXP audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"NXP audio capture device"

HKR, "DeviceParameters", "Enable_L1", 0x00010001, 0
HKR,"PBDA\DMBTH","GPNVConfig",0x00010001,1
HKR,"PBDA\DMBTH","MCMLFilePath",,"\??\C:\ProgramData\PBDA\DMBTH_MCML\"
HKR,"PBDA\DMBTH","CNMCMLFile",,"\??\C:\ProgramData\PBDA\DMBTH_MCML\"

; add audio input and output pinnames
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_IN_PIN%, "Name",,"Analog Audio Input"
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"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_RDS_PIN%,      "Name",,"RDS"

[NxpCap.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,NxpCap64.sys
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"
HKR, "Parameters", "ManualOffset", 0x00010001, 5

; Audio capture registry entries
HKR,,Driver,,NxpCap64.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,, "NXP Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"NXP Audio Capture Device"

HKR, "DeviceParameters", "Enable_L1", 0x00010001, 0
HKR,"PBDA\DMBTH","GPNVConfig",0x00010001,1
HKR,"PBDA\DMBTH","MCMLFilePath",,"\??\C:\ProgramData\PBDA\DMBTH_MCML\"
HKR,"PBDA\DMBTH","CNMCMLFile",,"\??\C:\ProgramData\PBDA\DMBTH_MCML\"

; add audio input and output pinnames
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_AUDIO_IN_PIN%, "Name",,"Analog Audio In"
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"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_RDS_PIN%,      "Name",,"RDS"

[NXP7231_0003.AddReg.NTx86]
HKR, "Parameters", "PowerSaveMode", 0x00010001, 1

[NXP7231_0003.AddReg.NTAMD64]
HKR, "Parameters", "PowerSaveMode", 0x00010001, 1

[NxpCap.EventInstall.NTx86]
AddReg = NxpCapEvent_AddReg.NTx86

[NxpCap.EventInstall.NTAMD64]
AddReg = NxpCapEvent_AddReg.NTAMD64

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

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

;
;*** 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}"
AVSTREAM_ANLG_RDS_PIN        = "{900337FB-8ED4-4d4e-B056-318DA76C72FF}"

; 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                 = "NXP Semiconductors"
60Hybrid.DeviceDesc      = "NXP SAA7160 Hybrid Capture Device"
61Hybrid.DeviceDesc      = "NXP SAA7161 Hybrid Capture Device"
62Hybrid.DeviceDesc      = "NXP SAA7162 Hybrid Capture Device"
31Hybrid.DeviceDesc      = "NXP SAA7231 Hybrid Capture Device"
31Hybrid.DeviceDesc_MINICARD    = "NXP SAA7231 Hybrid Device (Mini Card)"
AVSTRM_INSTALLATION_DISK = "NXP installation disk"
DISPLAY_NAME             = "NXP capture service"
SERVICE_DESCRIPTION      = "The NXP PCIe capture driver"
