; This file installs BDA driver for the TechnoTrend budget S2_4100

[Version]
signature           = "$CHICAGO$" ;all windows os
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
DriverVer           = 02/07/2011,1.0.0.1
CatalogFile         = ttBudget4100.cat


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

;---> 32 BIT SUPPORT <---
[TechnoTrend.NTx86]
%TTbudget_4100.Name% = ttBudget4100,PCI\VEN_1131&DEV_7160&SUBSYS_301013c2


;---> 64 BIT SUPPORT <---
[TechnoTrend.NTAMD64]
%TTbudget_4100.Name% = ttBudget4100,PCI\VEN_1131&DEV_7160&SUBSYS_301013c2


[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
ttBudget4100.sys                       = 1
ttBudget4100_64.sys                     = 1


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


[ttBudget4100.CopyFiles.NTx86]
ttBudget4100.sys

[ttBudget4100.CopyFiles.NTAMD64]
ttBudget4100_64.sys


;
;*** initialization and registry entries
;



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


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



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



[ttBudget4100.NTAMD64.Services]
AddService = ttBudget4100_64, 0x00000002, ttBudget4100.ServiceInstall.NTAMD64, ttBudget4100.EventInstall.NTAMD64



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

[ttBudget4100.ServiceInstall.NTAMD64]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRI 14:07 2011/12/31PTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\ttBudget4100_64.sys


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

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

[ttBudget4100.AddReg.NTAMD64]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,ttBudget4100_64.sys

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

[ttBudget4100.EventInstall.NTx86]
AddReg = TTCapEvent_AddReg.NTx86

[ttBudget4100.EventInstall.NTAMD64]
AddReg = TTCapEvent_AddReg.NTAMD64

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

[TTCapEvent_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\ttBudget4100_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                 = "CityCom GmbH"
TTbudget_4100.Name     	 = "TT-budget S2-4100 (BDA)"
AVSTRM_INSTALLATION_DISK = "TT-budget S2-4100 (BDA) installation disk"
DISPLAY_NAME             = "TT-budget S2-4100 (BDA) service"
SERVICE_DESCRIPTION      = "TT-budget S2-4100 (BDA) driver"
