; Copyright 2011 TechnoTrend Görler GmbH

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

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

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%ttPremiuHw91.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300813C2
%ttPremiuHw92.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300913C2
%ttPremiuHw94.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300A13C2

;---> 64 BIT SUPPORT <---
[SupportedBoards.NTAMD64]
%ttPremiuHw91.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300813C2
%ttPremiuHw92.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300913C2
%ttPremiuHw94.DeviceDesc% = ttPremiumHD,PCI\VEN_1131&DEV_7160&SUBSYS_300A13C2

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
ttPremiumHD.sys   = 1
ttPremiumHD64.sys = 1
fpga_091.bin  = 1
fpga_092.bin  = 1
PremiumHD.img   = 1
St40Btl.bin   = 1

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

[ttPremiumHD.CopyFiles.NTx86]
ttPremiumHD.sys

[ttPremiumHD.CopyFiles.NTAMD64]
ttPremiumHD64.sys

[ttPremiumHD.Images.NTx86]
fpga_091.bin
fpga_092.bin
PremiumHD.img
St40Btl.bin

[ttPremiumHD.Images.NTAMD64]
fpga_091.bin
fpga_092.bin
PremiumHD.img
St40Btl.bin

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

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

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

[ttPremiumHD.NTAMD64.Services]
AddService = ttPremiumHD64, 0x00000002, ttPremiumHD.ServiceInstall.NTAMD64, ttPremiumHD.EventInstall.NTAMD64

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

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

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

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

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

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

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

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

[ttPremiumHD.EventInstall.NTx86]
AddReg = ttPremiumHDEvent_AddReg.NTx86

[ttPremiumHD.EventInstall.NTAMD64]
AddReg = ttPremiumHDEvent_AddReg.NTAMD64

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

[ttPremiumHDEvent_AddReg.NTAMD64]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\ttPremiumHD64.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}"

; 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                 = "TechnoTrend Goerler GmbH"
ttPremiuHw91.DeviceDesc  = "TechnoTrend TT-premium S2-6400 Twin HD (Rev.91)"
ttPremiuHw92.DeviceDesc  = "TechnoTrend TT-premium S2-6400 Twin HD (Rev.92)"
ttPremiuHw94.DeviceDesc  = "TechnoTrend TT-premium S2-6400 Twin HD (Rev.94)"
AVSTRM_INSTALLATION_DISK = "TechnoTrend installation disk"
DISPLAY_NAME             = "TechnoTrend service"
SERVICE_DESCRIPTION      = "ttPremiumHD capture driver"
