; Copyright 2005, Gotron

[Version]
signature="$CHICAGO$" ;all windows os
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%PSH%
DriverVer=2005-07-13,1.3.3.2

[Manufacturer]
%PSH%=Gotron

[Gotron]
;******** Subvendors
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7133
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7134
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7133&SUBSYS_70071905
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7134&SUBSYS_70071905
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7133&SUBSYS_70071902
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7134&SUBSYS_70071902
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7133&SUBSYS_70071901
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7134&SUBSYS_70071901
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7133&SUBSYS_00001131
%35Hybrid.DeviceDesc%=3xHybrid,PCI\VEN_1131&DEV_7134&SUBSYS_00001131

[DestinationDirs]
3xHybrid.CopyCoInst=11
3xHybrid.CopyMacrovision=11
3xHybrid.CopyFiles=10,system32\drivers ; be aware not to use 12 as the drivers directory, 
                                       ; as driver will not work anymore in W98
3xHybridSupport.CopyFiles=10
3xHybridFilter.CopyFiles=11

[SourceDisksNames]
1 = %AVSTRM_INSTALLATION_DISK%,,

[SourceDisksFiles]
34CoInstaller.dll=1
35gtmp4xpci.sys=1
Gtmp4xv3PCI.ax=1
atl71.dll=1
Macrovision.dll	= 1
gtmp4xv3fw_7135.bin=1
gtmp4xv3fw_pf_7135.bin=1
gtmp4xv3sb_7135.bin=1
fix_setting_7135.txt=1
video_profiles_7135.txt=1
gtfont_big.osd=1

[3xHybrid.CopyCoInst]
34CoInstaller.dll
atl71.dll

[3xHybrid.CopyMacrovision]
Macrovision.dll

[3xHybrid.CopyFiles]
35gtmp4xpci.sys

[3xHybridSupport.CopyFiles]
gtmp4xv3fw_7135.bin
gtmp4xv3fw_pf_7135.bin
gtmp4xv3sb_7135.bin
fix_setting_7135.txt
video_profiles_7135.txt
gtfont_big.osd

[3xHybridFilter.CopyFiles]
Gtmp4xv3PCI.ax

;
;*** initialization and registry entries
;

[3xHybrid.CoInstallers]
CopyFiles = 3xHybrid.CopyCoInst
AddReg = 3xHybrid.CoInstaller_AddReg

[3xHybrid.ntx86.CoInstallers]
CopyFiles = 3xHybrid.CopyCoInst
AddReg = 3xHybrid.CoInstaller_AddReg

[3xHybrid.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"34CoInstaller.dll, CoInstallerEntry"

[3xHybrid]
AlsoInstall=KS.Registration(ks.inf), WDMAUDIO.Registration(wdmaudio.inf), KSCAPTUR.Registration(kscaptur.inf), BDA.Installation(bda.inf)
CopyFiles=3xHybrid.CopyFiles, 3xHybridSupport.CopyFiles, 3xHybridFilter.CopyFiles,3xHybrid.CopyMacrovision
AddReg=3xHybrid.AddReg, 3xHybrid.PlugIn,3xHybrid.Macrovision_AddReg

[3xHybrid.ntx86]
Include=ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs=KS.Registration.NT, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles=3xHybrid.CopyFiles, 3xHybridSupport.CopyFiles, 3xHybridFilter.CopyFiles,3xHybrid.CopyMacrovision
AddReg=3xHybrid.AddReg, 3xHybrid.PlugIn, 3xHybrid.Macrovision_AddReg

[3xHybrid.Services]
AddService=3xHybrid, 0x00000002, 3xHybrid.ServiceInstall

[3xHybrid.ntx86.Services]
AddService=3xHybrid, 0x00000002, 3xHybrid.ServiceInstall

[3xHybrid.ServiceInstall]
DisplayName=%DISPLAY_NAME%
Description=%SERVICE_DESCRIPTION%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_IGNORE%
ServiceBinary=%12%\35gtmp4xpci.sys
; [StartName=driver-object-name]
; [AddReg=add-registry-section[, add-registry-section] ...]
; [DelReg=del-registry-section[, del-registry-section] ...]
; [BitReg=bit-registry-section[,bit-registry-section] ...]
; [LoadOrderGroup=load-order-group-name]
; [Dependencies=depend-on-item-name[,depend-on-item-name]...]

[3xHybrid.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,35gtmp4xpci.sys

HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01

; audio capture registry entries

HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,35gtmp4xpci.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,,"Europa audio capture device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Europa audio capture device"

; Setting FM radio of the Silicon tuner via SIF (GPIO 21 in use/ 5.5MHz)
HKR, "Audio", "FM Radio IF",0x00010001,0x729555

; Add Capability key
HKR,Capabilities,"{BB4FAA02-596C-4129-8FB3-74E75421FA02}", 0x00010001,1
HKR,,DontSuspendIfStreamsAreRunning,3,01


; add audio input and output pinnames

HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_IN_PIN%,"Name",,"Analog Audioinput"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_OUT_PIN%,"Name",,"Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_CAP_PIN%,"Name",,"Audio Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_VIDEO_ITU_PIN%,"Name",,"Analog ITU Video"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VAMP_ANLG_AUDIO_I2S_PIN%,"Name",,"I2S Audio"

HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%VES_Capture_PIN%,"Name",,"Capture"



[3xHybrid.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,3xHybrid.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface=%KSCATEGORY_AUDIO%,%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface=%KSCATEGORY_ENCODER%,%VAMP_MPG_ENCODER_FILTER%,3xHybrid.MpgEncoder,0
AddInterface=%KSCATEGORY_MULTIPLEXER%,%VAMP_MPG_ENCODER_FILTER%,3xHybrid.MpgEncoder,0            
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface={6994AD04-93EF-11D0-A3CC-00A0C9223196},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface={33d9a762-90c8-11d0-bd43-00a0c911ce86},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0


[3xHybrid.ntx86.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_CAP_FILTER%,3xHybrid.AnlgCapture,0
AddInterface=%KSCATEGORY_CAPTURE%,%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface=%KSCATEGORY_AUDIO%,%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface=%KSCATEGORY_ENCODER%,%VAMP_MPG_ENCODER_FILTER%,3xHybrid.MpgEncoder,0
AddInterface=%KSCATEGORY_MULTIPLEXER%,%VAMP_MPG_ENCODER_FILTER%,3xHybrid.MpgEncoder,0            
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface={6994AD04-93EF-11D0-A3CC-00A0C9223196},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0
AddInterface={33d9a762-90c8-11d0-bd43-00a0c911ce86},%VAMP_ANLG_AUDIO_FILTER%,3xHybrid.AnlgAudioCap,0

[3xHybrid.MpgEncoder]
AddReg=3xHybrid.MpgEncoder.AddReg

[3xHybrid.MpgEncoder.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%3xHybrid.MpgEncoder%
; IVideoEncoder proxy plug-in
HKR,Interfaces\{B43C4EEC-8C32-4791-9102-508ADA5EE8E7},,,
; ICodecAPI proxy plug-in
;HKR,Interfaces\{7ff0997a-1999-4286-a73c-622b8814e7eb},,,
; ICodecAPI/IVideoEncoder proxy plug-in
;HKR,Interfaces\{b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c},,,

[3xHybrid.AnlgAudioCap]
AddReg=3xHybrid.AnlgAudioCap.AddReg

[3xHybrid.AnlgAudioCap.AddReg]
HKR,,CLSID,,%KSProxy.CLSID%
HKR,,FriendlyName,,%3xHybrid.AnlgAudioCapName%

[3xHybrid.AnlgCapture]
AddReg=3xHybrid.AnlgCapture.AddReg

[3xHybrid.AnlgCapture.AddReg]
HKR,,FriendlyName,,%3xHybrid.AnlgCaptureName%
HKR,,VampType,,%3xHybrid.VampType%

[3xHybrid.Macrovision_AddReg]
; IGoVideoControl
HKCR,CLSID\{5B1FA1FB-4023-4950-818E-7B4BC8834258},,,%PlugIn_Macrovision%
HKCR,CLSID\{5B1FA1FB-4023-4950-818E-7B4BC8834258}\InprocServer32,,,Macrovision.dll
HKCR,CLSID\{5B1FA1FB-4023-4950-818E-7B4BC8834258}\InprocServer32,ThreadingModel,,Both

; This IID is aggregated for the filter given the CLSID of the property set
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{5B1FA1FB-4023-4950-818E-7B4BC8834258},,,%Macrovision_Interface%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{5B1FA1FB-4023-4950-818E-7B4BC8834258},IID,1,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11

[3xHybrid.PlugIn]
; IWISVideoControl
HKCR,CLSID\{E67DDCB1-652E-4843-958F-95099EEDEC8D},,,%PlugIn_WISProxy%
HKCR,CLSID\{E67DDCB1-652E-4843-958F-95099EEDEC8D}\InprocServer32,,,Gtmp4xv3PCI.ax
HKCR,CLSID\{E67DDCB1-652E-4843-958F-95099EEDEC8D}\InprocServer32,ThreadingModel,,Both

; This IID is aggregated for the filter given the CLSID of the property set
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{E67DDCB1-652E-4843-958F-95099EEDEC8D},,,%PlugIn_WISProxy%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{E67DDCB1-652E-4843-958F-95099EEDEC8D},IID,1,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

; Video Control Property Page
HKCR,CLSID\{35D3657A-6C20-46B0-B44A-DC8E861F1205},,,%PropPage_VideoControl%
HKCR,CLSID\{35D3657A-6C20-46B0-B44A-DC8E861F1205}\InprocServer32,,,Gtmp4xv3PCI.ax
HKCR,CLSID\{35D3657A-6C20-46B0-B44A-DC8E861F1205}\InprocServer32,ThreadingModel,,Both

; Associate the property set with the above property page
HKLM,System\CurrentControlSet\Control\MediaSets\{E67DDCB1-652E-4843-958F-95099EEDEC8D}\PropertyPages\{35D3657A-6C20-46B0-B44A-DC8E861F1205},,,%PropPage_VideoControl%


;
;*** strings, GUIDs and names
;

[Strings]

; Proxy GUIDs

KSProxy.CLSID   = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSXBar.CLSID    = "{71F96460-78F3-11d0-A18C-00A0C9118956}"
KSTVAudio.CLSID = "{71F96462-78F3-11d0-A18C-00A0C9118956}"
KSTvTune.CLSID  = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"

; Category GUIDs

KSCATEGORY_MULTIPLEXER            = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"
KSCATEGORY_ENCODER                = "{19689BF6-C384-48fd-AD51-90E58C79F70B}"
KSCATEGORY_CAPTURE                = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO                  = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_AUDIO                  = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"

; Our Pin Name GUIDs

VAMP_ANLG_AUDIO_IN_PIN   = "{7BB284B9-714D-493d-A101-B1B028E782BD}"
VAMP_ANLG_AUDIO_OUT_PIN  = "{5582E657-E596-42b5-9DB3-541B27A2355F}"
VAMP_ANLG_AUDIO_CAP_PIN  = "{5582E657-E596-42b5-9DB3-541B27A23560}"
VAMP_ANLG_AUDIO_I2S_PIN  = "{C2E46358-F032-4d88-B802-06B59D162730}"
VAMP_ANLG_VIDEO_ITU_PIN  = "{82631A2E-403C-4581-A4B0-EC173D004410}"
VES_Capture_PIN =  "{181CF87E-7741-47ba-8629-22347E03C64C}"

; Our Filter GUIDs

VAMP_MPG_ENCODER_FILTER  = "{949607F9-0DA5-4099-982E-D91DE6150B00}"
VAMP_ANLG_AUDIO_FILTER   = "{F3B951E7-8619-4ff3-91CA-03910E4BB900}"
VAMP_ANLG_CAP_FILTER     = "{BBEFB6C7-2FC4-4139-BB8B-A58BBA724000}"

; 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

PSH="Gotron"
30Hybrid.DeviceDesc      = "Gotron MP-4X V3, Hybrid Capture Device"
35Hybrid.DeviceDesc      = "Gotron MP-4X V3, Hybrid Capture Device"
33Hybrid.DeviceDesc      = "Gotron MP-4X V3, Hybrid Capture Device"
AVSTRM_INSTALLATION_DISK = "35gtmp4xpci installation disk"
DISPLAY_NAME             = "35gtmp4xpci service"
SERVICE_DESCRIPTION      = "The Europa capture driver"

;Our Friendly Names

3xHybrid.MpgEncoder       = "Gotron MP-4X V3 BDA MPEG Encoder"
3xHybrid.AnlgAudioCapName = "Gotron MP-4X V3 Audio Capture"
3xHybrid.AnlgCaptureName  = "Gotron MP-4X V3 BDA Analog Capture"
3xHybrid.VampType         = "Cap7134 Capture"

PlugIn_WISProxy = "GO Control"
PropPage_VideoControl= "GO Video Control"
PlugIn_Macrovision = "CKsMyClass"
Macrovision_Interface = "IKsMyInterface"

