; Copyright 2005 - 2016 TBSDTV.COM

[Version]
signature           = "$CHICAGO$" ;all windows os
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
DriverVer           = 05/27/2016,1.0.0.3
CatalogFile.NTX86   = TBS6290.cat
CatalogFile.NTAMD64 = TBS6290_64.cat

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%TBSDTV.DeviceDesc% = TBS6290,PCI\VEN_1131&DEV_7160&SUBSYS_00016290


;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%TBSDTV.DeviceDesc% = TBS6290,PCI\VEN_1131&DEV_7160&SUBSYS_00016290


[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
TBS6290.sys                       = 1
TBS6290_64.sys                     = 1


[DestinationDirs]
TBS6290.CopyFiles.NTx86       = 10,system32\drivers
TBS6290.CopyFiles.NTAMD64     = 10,system32\drivers


[TBS6290.CopyFiles.NTx86]
TBS6290.sys

[TBS6290.CopyFiles.NTAMD64]
TBS6290_64.sys


;
;*** initialization and registry entries
;



[TBS6290.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     = TBS6290.CopyFiles.NTx86 
AddReg        = TBS6290.AddReg.NTx86
RegisterDlls  = TBS6290.Register.NTx86


[TBS6290.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     = TBS6290.CopyFiles.NTAMD64 
AddReg        = TBS6290.AddReg.NTAMD64
RegisterDlls  = TBS6290.Register.NTAMD64



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



[TBS6290.NTAMD64.Services]
AddService = TBS6290_64, 0x00000002, TBS6290.ServiceInstall.NTAMD64, TBS6290.EventInstall.NTAMD64



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

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


[TBS6290.AddReg.NTx86]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,TBS6290.sys

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

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

[TBS6290.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,TBS6290_64.sys

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

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

[TBS6290.EventInstall.NTx86]
AddReg = TBSCapEvent_AddReg.NTx86

[TBS6290.EventInstall.NTAMD64]
AddReg = TBSCapEvent_AddReg.NTAMD64

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

[TBSCapEvent_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\TBS6290_64.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                 = "TBSDTV TECHNOLOGY"
TBSDTV.DeviceDesc     	 = "TBS6290 Dual DVBC CI BDA Tuner"
AVSTRM_INSTALLATION_DISK = "TBS6290 Dual DVBC CI Tuners installation disk"
DISPLAY_NAME             = "TBS6290 DVBC CI service"
SERVICE_DESCRIPTION      = "TBS6290 Dual DVBC CI BDA Tuners driver"
