; Copyright 2008 NXP Semiconductors
; Copyright 2010 Trident Microsystems, Inc.
;20080616: modify by mr - create CTX file only
;20080711: modify by mr - change driver version
;20080811: modify by ts - change driver version
;20080825: modify by mr - change driver version
;20080904: modify by jw - registry entry for -audio
;20080908: modify by mr - change device name into triple capture device
;20080910: modify by mr - include the PCIe devices
;20080916: modify by mr - 3.BSL file for SAA7231AE (11317231_000216BE_11.bin)
;20080925: modify by mr - change driver version, new BSL files for 216BE (for Fiji) 1.0.5.34_a
;20081114: modify by mr - change driver version (new sys-file for 32bit only),new BSL-files for CTX1909
;20081117: modify by mr - add CTX1919 an CTX1920 included both BSL-files
;20090106: modify by mr - change driver version for new sys-file
;20090113: modify by mr - change bin-file name for CTX1919
,20090121: modify by mr - change driver version
;20090129: modify by mr - change driver version
;20090325: modify by mr - added CTX1925 included the bin-file
;20090505: modify by mr - change DriverVer date for whql reason
;20090526: modify by mr - change driver version
;20090604: modify by mr - add CTX1924 and bin file
;20090701: modify by mr - add HKR for CTX1924
;20090702: modify by mr - try to seperate the loading of bin-files
;20090710: modify by mr - change driver version
;20090722: modify by mr - add CTX1919_V3 w/o DVBS and bin file
;20090730: modify by mr - change driver version
;20090825: modify by mr - add CTX1924_V1 und CTX1927 and binfile
:20091001: modify by mr - change driver version and add some HKR´s following original inf-file
;20091006: modify by mr - change blind search for CTX1927 to 0 (made a new section e) and add 1416BE for CTX1924_V1
;20091014: modify by mr - change blind search for CTX1924_V1 to 0 (--> CTX_e like 1927)
;20091020: modify by mr - change blind search for CTX1924_V1 and CTX1927 to 1  and new sys for 32bit
;20091023: modify by mr - change driver vesion and disable all CTX_e entries
;20091029: modify by mr - add 1516BE for CTX1928
;20091112: modify by mr - add 1616BE for CTX1924_V2.3.3 and 1716BE for CTx1924_V3.2.2
;20091210: modify by mr - change driver version and delete all CTX_e entries
;20091215: modify by mr - reduced inf-file to real products
;20091216: modify by mr - change driver version (fix for CTX967-W7-remove and ctx1927-software-reset and bin-file for CTx1927)
;20091217: modify by mr - change bin-file for CTX1927 (remove IR)
;20091218: modify by mr - change driver version (fix for S3 test; Fix for analog Tv)
;20091222: modify by mr - change driver version to 1.0.5.87
;20100125: modify by mr - change driver version to 1.0.5.88 (fix for blue screen)
;20100204: modify by mr - change driver version to 1.0.5.89 (fix for Safely remove hardware)
;20100607: Modify by mr - change driver version to 1.0.5.96 (fix for DVB-T and MCE); rename into TrdCap.inf
;20100609: modify by mr - change last both lines for possibilty of updating driver
;************************************************************************************************************************************************

[Version]
signature           = "$CHICAGO$" ;all windows os
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
DriverVer           = 06/07/2010,1.0.5.96
CatalogFile.NTX86   = TrdCap.cat
CatalogFile.NTAMD64 = TrdCap64.cat

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%32Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_000216BE ;CTX1910
%37Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_000716BE ;CTX1919_V1/V3.1.1
%38Hybrid.DeviceDesc% = CTX_c,PCI\VEN_1131&DEV_7231&SUBSYS_000816BE ;CTX1920_V1-minicard
%40Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001216BE ;CTX1924_V2.2.x-pcie, dvbs2
%41Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001116BE ;CTX1919_V3(ohne DVB-S)
%42Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001316BE ;CTX1927-pcie, dvbs2
%43Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001416BE ;CTX1924_V1
%44Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001516BE ;CTX1928_V1, pcie
%45Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001616BE ;CTX1924_V2.3.x
%46Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001716BE ;CTX1924_V3.2.2


%60Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003016BE ;CTX975
%61Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003116BE ;CTX967V3/4
%65Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003416BE ;CTX967V7


;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%32Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_000216BE ;CTX1910
%37Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_000716BE ;CTX1919_V1/V3.1.1
%38Hybrid.DeviceDesc% = CTX_c,PCI\VEN_1131&DEV_7231&SUBSYS_000816BE ;CTX1920_V1
%40Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001216BE ;CTX1924_V2.2.x
%41Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001116BE ;CTX1919_V3
%42Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001316BE ;CTX1927-pcie, dvbs2
%43Hybrid.DeviceDesc% = CTX_d,PCI\VEN_1131&DEV_7231&SUBSYS_001416BE ;CTX1924_V1
%44Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001516BE ;CTX1928_V1, pcie
%45Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001616BE ;CTX1924_V2.3.x
%46Hybrid.DeviceDesc% = CTX_a,PCI\VEN_1131&DEV_7231&SUBSYS_001716BE ;CTX1924_V3.2.2

%60Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003016BE ;CTX975
%61Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003116BE ;CTX967V3/4
%65Hybrid.DeviceDesc% = CTX_b,PCI\VEN_1131&DEV_7160&SUBSYS_003416BE ;CTX967V7

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
716xCoInstaller.dll              = 1
TrdMV32.dll                      = 1
TrdMV64.dll                      = 1
TrdCap.sys                       = 1
TrdCap64.sys                     = 1
11317231_000216BE_1.bin          = 1
11317231_000716BE_8a.bin          = 1
11317231_000216BE_11.bin          = 1
11317231_000816BE_ca.bin          = 1
11317231_001116BE_ca.bin          = 1
11317231_001216BE_ca.bin          = 1
11317231_001316BE_ca.bin          = 1
11317231_001416BE_ca.bin          = 1
11317231_001516BE_8a.bin          = 1
11317231_001616BE_ca.bin	=1
11317231_001716BE_8a.bin	=1


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

[CTX_a.CopyCoInst.NTx86]
716xCoInstaller.dll

[CTX_a.CopyFiles.NTx86]
TrdCap.sys

[CTX_a.CopyBSL.NTx86]
11317231_000216BE_1.bin 
11317231_000216BE_11.bin
11317231_000716BE_8a.bin  
11317231_000816BE_ca.bin   
11317231_001116BE_ca.bin  
11317231_001516BE_8a.bin
11317231_001616BE_ca.bin
11317231_001716BE_8a.bin 

[CTX_d.CopyBSL.NTx86]
11317231_001216BE_ca.bin
11317231_001316BE_ca.bin
11317231_001416BE_ca.bin



[CTX_a.CopyDll.NTx86]
TrdMV32.dll


[CTX_a.CopyFiles.NTAMD64]
TrdCap64.sys

[CTX_a.CopyDll.NTAMD64]
TrdMV64.dll

[CTX_a.CopyBSL.NTAMD64]
11317231_000216BE_1.bin 
11317231_000216BE_11.bin
11317231_000716BE_8a.bin  
11317231_000816BE_ca.bin  
11317231_001116BE_ca.bin   
11317231_001516BE_8a.bin
11317231_001616BE_ca.bin
11317231_001716BE_8a.bin 

[CTX_d.CopyBSL.NTAMD64]
11317231_001216BE_ca.bin
11317231_001316BE_ca.bin
11317231_001416BE_ca.bin

;********************************************************************************************
;*** initialization and registry entries
;********************************************************************************************

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

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

[CTX_a.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     = CTX_a.CopyFiles.NTx86, CTX_a.CopyDll.NTx86, CTX_a.CopyBSL.NTx86
AddReg        = CTX_a.AddReg.NTx86
RegisterDlls  = CTX_a.Register.NTx86
;-----------------------------------------------------------------------------------------------
[CTX_b.ntx86.CoInstallers]
CopyFiles = CTX_a.CopyCoInst.NTx86
AddReg    = CTX_a.CoInstaller_AddReg.NTx86

[CTX_b.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     = CTX_a.CopyFiles.NTx86, CTX_a.CopyDll.NTx86
AddReg        = CTX_b.AddReg.NTx86
RegisterDlls  = CTX_a.Register.NTx86
;-----------------------------------------------------------------------------------------------
[CTX_c.ntx86.CoInstallers]
CopyFiles = CTX_a.CopyCoInst.NTx86
AddReg    = CTX_a.CoInstaller_AddReg.NTx86

[CTX_c.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     = CTX_a.CopyFiles.NTx86, CTX_a.CopyDll.NTx86, CTX_a.CopyBSL.NTx86
AddReg        = CTX_a.AddReg.NTx86, CTX_c.AddReg.NTx86
RegisterDlls  = CTX_a.Register.NTx86
;-----------------------------------------------------------------------------------------------
[CTX_d.ntx86.CoInstallers]
CopyFiles = CTX_a.CopyCoInst.NTx86
AddReg    = CTX_a.CoInstaller_AddReg.NTx86

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

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

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

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

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

;----------------------------------------------------------------------------------------------------
[CTX_a.NTx86.Services]
AddService = TrdCap, 0x00000002, CTX_a.ServiceInstall.NTx86, CTX_a.EventInstall.NTx86

[CTX_b.NTx86.Services]
AddService = TrdCap, 0x00000002, CTX_a.ServiceInstall.NTx86, CTX_a.EventInstall.NTx86

[CTX_c.NTx86.Services]
AddService = TrdCap, 0x00000002, CTX_a.ServiceInstall.NTx86, CTX_a.EventInstall.NTx86

[CTX_d.NTx86.Services]
AddService = TrdCap, 0x00000002, CTX_a.ServiceInstall.NTx86, CTX_a.EventInstall.NTx86

[CTX_a.NTAMD64.Services]
AddService = TrdCap64, 0x00000002, CTX_a.ServiceInstall.NTAMD64, CTX_a.EventInstall.NTAMD64

[CTX_b.NTAMD64.Services]
AddService = TrdCap64, 0x00000002, CTX_a.ServiceInstall.NTAMD64, CTX_a.EventInstall.NTAMD64

[CTX_c.NTAMD64.Services]
AddService = TrdCap64, 0x00000002, CTX_a.ServiceInstall.NTAMD64, CTX_a.EventInstall.NTAMD64

[CTX_d.NTAMD64.Services]
AddService = TrdCap64, 0x00000002, CTX_a.ServiceInstall.NTAMD64, CTX_a.EventInstall.NTAMD64

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

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

[CTX_a.Register.NTx86]
11,,TrdMV32.dll,1 ;FLG_REGSVR_DLLREGISTER

[CTX_a.Register.NTAMD64]
11,,TrdMV64.dll,1 ;FLG_REGSVR_DLLREGISTER

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


; Audio capture registry entries
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,TrdCap.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,, "Trident audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Trident 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"
;-----------------------------------------
[CTX_b.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,TrdCap.sys
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"
HKR, "Parameters", "ManualOffset", 0x00010001, 5

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

;-------------------------------------------
[CTX_c.AddReg.NTx86]
;HKR, "Parameters", "PowerSaveMode", 0x00010001, 1

[CTX_d.AddReg.NTx86]
HKR, "Parameters" , "UseBlindSearch", 0x00010001, 0x01

;--------------------------------------------------------
[CTX_a.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,TrdCap64.sys
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"
HKR, "Parameters", "ManualOffset", 0x00010001, 5

; Audio capture registry entries
HKR,,Driver,,TrdCap64.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,, "Trident Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Trident 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"
;----------------------------------------------------------------------------------
[CTX_b.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,TrdCap64.sys
HKR,,CoInstallers32,0x00010008, "CIRCoInst.dll,IRCoInstaller"
HKR, "Parameters", "ManualOffset", 0x00010001, 5

; Audio capture registry entries
HKR,,Driver,,TrdCap64.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,, "Trident Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Trident 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"
;------------------------------------------------
[CTX_c.AddReg.NTAMD64]
;HKR, "Parameters", "PowerSaveMode", 0x00010001, 1

[CTX_d.AddReg.NTAMD64]
HKR, "Parameters" , "UseBlindSearch", 0x00010001, 0x01

;---------------------------------------------------------
[CTX_a.EventInstall.NTx86]
AddReg = CTX_a.Event_AddReg.NTx86

[CTX_a.EventInstall.NTAMD64]
AddReg = CTX_a.Event_AddReg.NTAMD64

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

[CTX_a.Event_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\TrdCap64.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                 = "CTX"
32Hybrid.DeviceDesc      = "SAA7231 Triple Capture Device"
37Hybrid.DeviceDesc      = "SAA7231 Triple Capture Device"
38Hybrid.DeviceDesc      = "SAA7231 Hybrid Capture Device"
40Hybrid.DeviceDesc      = "SAA7231 Triple Capture DVBS2 Device"
41Hybrid.DeviceDesc      = "SAA7231 Hybrid Capture Device"
42Hybrid.DeviceDesc      = "SAA7231 Triple Capture DVBS2 Device"
43Hybrid.DeviceDesc      = "SAA7231 Triple Capture DVBS2 Device"
44Hybrid.DeviceDesc      = "SAA7231 Hybrid capture Device"
45Hybrid.DeviceDesc      = "SAA7231 Hybrid capture Device"
46Hybrid.DeviceDesc      = "SAA7231 Triple capture Device"

60Hybrid.DeviceDesc      = "SAA7160, ExpressCard Capture Device"
61Hybrid.DeviceDesc      = "SAA7160, ExpressCard Hybrid Capture Device"
65Hybrid.DeviceDesc      = "SAA7160, ExpressCard Capture Device"

AVSTRM_INSTALLATION_DISK = "CTX installation disk"
DISPLAY_NAME             = "CTX's capture service"
SERVICE_DESCRIPTION      = "The CTX's PCIe capture driver"
