; Copyright 2007 NXP Semiconductors

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

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%MC963MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_096312AB;;MXL, ATSC + DVBT, with Xbar
%MC963MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_096212AB;;MXL, ATSC + DVBT, no Xbar

%MC163MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_016312AB ;;MXL+LGS, with Xbar
%MC163MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_016212AB ;;MXL+LGS, no Xbar

%MC563MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_056312AB ;;MXL+1411, with Xbar
%MC563MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_056212AB ;;MXL+1411, no Xbar

%MC763MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_076312AB ;;MXL, DVBT, with Xbar
%MC763MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_076212AB ;;MXL, DVBT, no Xbar

%MC363MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_036312AB ;;MXL, ANALOG ONLY, with Xbar
%MC363MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_036212AB ;;MXL, ANALOG ONLY, no Xbar

;;SAA18271
%MC963B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_196312AB;;SAA18271, ATSC + DVBT, with Xbar
%MC963B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_196212AB;;SAA18271, ATSC + DVBT, no Xbar

%MC163B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_116312AB ;;SAA18271+LGS, with Xbar
%MC163B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_116212AB ;;SAA18271+LGS, no Xbar

%MC563B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_156312AB ;;SAA18271+1411, with Xbar
%MC563B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_156212AB ;;SAA18271+1411, no Xbar

%MC763B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_176312AB ;;SAA18271, DVBT, with Xbar
%MC763B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_176212AB ;;SAA18271, DVBT, no Xbar

%MC363B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_136312AB ;;SAA18271, ANALOG ONLY, with Xbar
%MC363B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_136212AB ;;SAA18271, ANALOG ONLY, no Xbar

;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%MC963MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_096312AB;;MXL, ATSC + DVBT, with Xbar
%MC963MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_096212AB;;MXL, ATSC + DVBT, no Xbar

%MC163MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_016312AB ;;MXL+LGS
%MC163MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_016212AB ;;MXL+LGS, no Xbar

%MC563MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_056312AB ;;MXL+1411
%MC563MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_056212AB ;;MXL+1411, no Xbar

%MC763MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_076312AB ;;MXL,DVBT
%MC763MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_076212AB ;;MXL,DVBT, no Xbar

%MC363MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_036312AB ;;MXL, ANALOG ONLY, with Xbar
%MC363MH.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_036212AB ;;MXL, ANALOG ONLY, no Xbar


;;SAA18271
%MC963B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_196312AB;;SAA18271, ATSC + DVBT, with Xbar
%MC963B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_196212AB;;SAA18271, ATSC + DVBT, no Xbar

%MC163B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_116312AB ;;SAA18271+LGS
%MC163B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_116212AB ;;SAA18271+LGS, no Xbar

%MC563B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_156312AB ;;SAA18271+1411
%MC563B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_156212AB ;;SAA18271+1411, no Xbar

%MC763B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_176312AB ;;SAA18271,DVBT
%MC763B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_176212AB ;;SAA18271,DVBT, no Xbar

%MC363B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_136312AB ;;SAA18271, ANALOG ONLY, with Xbar
%MC363B.DeviceDesc% = NxpCap,PCI\VEN_1131&DEV_7231&SUBSYS_136212AB ;;SAA18271, ANALOG ONLY, no Xbar

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll = 1
NXPMV32.dll         = 1
NXPMV64.dll         = 1
NxpCap.sys          = 1
NxpCap64.sys        = 1
YUANDMBT.bin	    = 1
DMBT.bin	    = 1
DVBT.bin	    = 1
ATSC.bin	    = 1
DMBT_noavs.bin	    = 1
DVBT_noavs.bin	    = 1
ATSC_noavs.bin	    = 1
ANALOG.bin	    = 1
ANALOG_noavs.bin    = 1
DUALATSCDVBT.bin	= 1
DUALATSCDVBT_noavs.bin	= 1

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

[NxpCap.CopyCoInst.NTx86]
716xCoInstaller.dll

[NxpCap.CopyFiles.NTx86]
NxpCap.sys
YUANDMBT.bin
DMBT.bin	    
DVBT.bin	    
ATSC.bin	    
DMBT_noavs.bin	    
DVBT_noavs.bin	    
ATSC_noavs.bin	    
ANALOG.bin
ANALOG_noavs.bin
DUALATSCDVBT.bin
DUALATSCDVBT_noavs.bin

[NxpCap.CopyFiles.NTAMD64]
NxpCap64.sys
YUANDMBT.bin
DMBT.bin	    
DVBT.bin	    
ATSC.bin	    
DMBT_noavs.bin	    
DVBT_noavs.bin	    
ATSC_noavs.bin	    
ANALOG.bin
ANALOG_noavs.bin
DUALATSCDVBT.bin
DUALATSCDVBT_noavs.bin

[NxpCap.CopyDll.NTx86]
NXPMV32.dll

[NxpCap.CopyDll.NTAMD64]
NXPMV64.dll


;
;*** 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
AddReg        = NxpCap.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
AddReg        = NxpCap.AddReg.NTAMD64
RegisterDlls  = NxpCap.Register.NTAMD64

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

[NxpCap.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"

; 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, "Parameters", "PowerSaveMode", 0x00010001, 1
HKR, "Parameters", "EnableAutoOffset", 0x00010001, 1

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

; 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, "Parameters", "PowerSaveMode", 0x00010001, 1
HKR, "Parameters", "EnableAutoOffset", 0x00010001, 1

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

[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"
PROVIDER                 = "YUAN High-Tech Development Co., Ltd."

MC963MH.DeviceDesc      = "YUAN MC963M/MC963H Hybrid Analog/ATSC/DVB-T"
MC163MH.DeviceDesc	= "YUAN MC163M/MC163H Hybrid Analog/DMB-TH"
MC563MH.DeviceDesc	= "YUAN MC563M/MC563H Hybrid Analog/ATSC"
MC763MH.DeviceDesc	= "YUAN MC763M/MC763H Hybrid Analog/DVB-T"
MC363MH.DeviceDesc	= "YUAN Analog TV Capture Card"

MC963B.DeviceDesc       = "YUAN MC963B Hybrid Analog/ATSC/DVB-T"
MC163B.DeviceDesc	= "YUAN MC163B Hybrid Analog/DMB-TH"
MC563B.DeviceDesc	= "YUAN MC563B Hybrid Analog/ATSC"
MC763B.DeviceDesc	= "YUAN MC763B Hybrid Analog/DVB-T"
MC363B.DeviceDesc	= "YUAN Analog TV Capture Card"


AVSTRM_INSTALLATION_DISK = "NXP installation disk"
DISPLAY_NAME             = "NXP capture service"
SERVICE_DESCRIPTION      = "The NXP PCIe capture driver"
