;**************************************************************
;
; Copyright 2000 - 2007, Hauppauge Computer Works
;
;     Hauppauge - BDA Hybrid TV Capture Driver
;
;**************************************************************

[Version]
signature           = "$CHICAGO$" ;All Windows OS
Class               = MEDIA
ClassGUID           = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider            = %PROVIDER%
DriverVer           = 03/26/2007,1.303.5.25085
CatalogFile.NTx86   = HCW713x.cat

[Manufacturer]
%PROVIDER%  = SupportedBoards, NTx86

;---> 32 BIT SUPPORT <---
[SupportedBoards.NTx86]
%Hauppauge_33_6701.DeviceDesc% = Hauppauge_33_6701.NTx86,PCI\VEN_1131&DEV_7133&SUBSYS_67010070
%Hauppauge_33_6700.DeviceDesc% = Hauppauge_33_6700.NTx86,PCI\VEN_1131&DEV_7133&SUBSYS_67000070


;---> 64 BIT SUPPORT <---
;[SupportedBoards.NTAMD64]
;%Hauppauge_33_6701.DeviceDesc% = Hauppauge_33_6701.NTAMD64,PCI\VEN_1131&DEV_7133&SUBSYS_67010070
;%Hauppauge_33_6700.DeviceDesc% = Hauppauge_33_6700.NTAMD64,PCI\VEN_1131&DEV_7133&SUBSYS_67000070


[SourceDisksNames]
1 = %INSTALLATION_DISK%,,,"HVR1100"


[SourceDisksFiles]
HCW713x.sys           = 1
;Ph3xVU64.sys           = 1
HCW713xMV.dll         = 1
;Ph3xVU64MV.dll         = 1


[DestinationDirs]
HCW713x.CopyDll.NTx86      = 11
;Ph3xVU64.CopyDll.NTAMD64    = 11
HCW713x.CopyDriver.NTx86   = 10,system32\drivers
;Ph3xVU64.CopyDriver.NTAMD64 = 10,system32\drivers


[HCW713x.CopyDll.NTx86]
HCW713xMV.dll


;[Ph3xVU64.CopyDll.NTAMD64]
;Ph3xVU64MV.dll


[HCW713x.CopyDriver.NTx86]
HCW713x.sys


;[Ph3xVU64.CopyDriver.NTAMD64]
;Ph3xVU64.sys



;======================================
;
;       Initialization Entries
;
;======================================

;******** SAA7133 x32 - 6701 ***
[Hauppauge_33_6701.NTx86]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = HCW713x.CopyDriver.NTx86, HCW713x.CopyDll.NTx86
AddReg        = HCW713x.AddReg.NTx86, Hauppauge_33_6701.AddReg
RegisterDlls  = HCW713x.Register.NTx86

[Hauppauge_33_6701.NTx86.Services]
AddService    = %SERVICE_NAME_X32%, 0x00000002, HCW713x.ServiceInstall.NTx86


;******** SAA7133 x64 - 6701 ***
;[Hauppauge_33_6701.NTAMD64]
;Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
;Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
;CopyFiles     = Ph3xVU64.CopyDriver.NTAMD64, Ph3xVU64.CopyDll.NTAMD64
;AddReg        = Ph3xVU64.AddReg.NTAMD64, Hauppauge_33_6701.AddReg
;RegisterDlls  = Ph3xVU64.Register.NTAMD64

;[Hauppauge_33_6701.NTAMD64.Services]
;AddService    = %SERVICE_NAME_X64%, 0x00000002, Ph3xVU64.ServiceInstall.NTAMD64


;******** SAA7133 x32 - 6700***
[Hauppauge_33_6700.NTx86]
Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles     = HCW713x.CopyDriver.NTx86, HCW713x.CopyDll.NTx86
AddReg        = HCW713x.AddReg.NTx86, Hauppauge_33_6700.AddReg
RegisterDlls  = HCW713x.Register.NTx86

[Hauppauge_33_6700.NTx86.Services]
AddService    = %SERVICE_NAME_X32%, 0x00000002, HCW713x.ServiceInstall.NTx86


;******** SAA7133 x64 - 6700 ***
;[Hauppauge_33_6700.NTAMD64]
;Include       = ks.inf, wdmaudio.inf, kscaptur.inf, bda.inf
;Needs         = KS.Registration, WDMAUDIO.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
;CopyFiles     = Ph3xVU64.CopyDriver.NTAMD64, Ph3xVU64.CopyDll.NTAMD64
;AddReg        = Ph3xVU64.AddReg.NTAMD64, Hauppauge_33_6700.AddReg
;RegisterDlls  = Ph3xVU64.Register.NTAMD64

;[Hauppauge_33_6700.NTAMD64.Services]
;AddService    = %SERVICE_NAME_X64%, 0x00000002, Ph3xVU64.ServiceInstall.NTAMD64



;******** GENERAL x32 ***
[HCW713x.ServiceInstall.NTx86]
DisplayName   = %DISPLAY_NAME%
Description   = %SERVICE_DESCRIPTION%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\HCW713x.sys

;******** GENERAL x64 ***
;[Ph3xVU64.ServiceInstall.NTAMD64]
;DisplayName   = %DISPLAY_NAME%
;Description   = %SERVICE_DESCRIPTION%
;ServiceType   = %SERVICE_KERNEL_DRIVER%
;StartType     = %SERVICE_DEMAND_START%
;ErrorControl  = %SERVICE_ERROR_IGNORE%
;ServiceBinary = %12%\Ph3xVU64.sys



;======================================
;
;           Registry Entries
;
;======================================
; [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]...]

;
;******** General DLL Registry Entries ***
;

[HCW713x.Register.NTx86]
11,,HCW713xMV.dll,1 ;FLG_REGSVR_DLLREGISTER


;[Ph3xVU64.Register.NTAMD64]
;11,,Ph3xVU64MV.dll,1 ;FLG_REGSVR_DLLREGISTER


;
;******** General Driver Registry Entries ***
;

[HCW713x.AddReg.NTx86]

HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,HCW713x.sys

; --- Registry Entries For Audio Capture ---
HKR,,Driver,,HCW713x.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,,"Hauppauge Audio Capture Device"
HKR,Drivers\mixer\wdmaud.drv,Description,,"Hauppauge 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_CAP_PIN%,"Name",,"~Audio"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_CAP_PIN%,"Name",,"~Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PRE_PIN%,"Name",,"~Preview"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_AES_PIN%,"Name",,"MPEG Audio ES"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_VES_PIN%,"Name",,"MPEG Video ES"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_PS_PIN%,"Name",, "MPEG2 Program"

;; Hauppauge API Support
HKLM,"Software\Hauppauge\HcwTVWnd","VCapFilter",0x00000000,"Hauppauge WinTV-HVR 713X BDA Analog Capture"


;[Ph3xVU64.AddReg.NTAMD64]

;HKR,,DevLoader,,*NTKERN
;HKR,,NTMPDriver,,Ph3xVU64.sys

; --- Registry Entries For Audio Capture ---
;HKR,,Driver,,Ph3xVU64.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,,"Hauppauge Audio Capture Device"
;HKR,Drivers\mixer\wdmaud.drv,Description,,"Hauppauge 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_CAP_PIN%,"Name",,"~Audio"
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_CAP_PIN%,"Name",,"~Capture"
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_ANLG_VIDEO_PRE_PIN%,"Name",,"~Preview"
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_AES_PIN%,"Name",,"MPEG Audio ES"
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_VES_PIN%,"Name",,"MPEG Video ES"
;HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\%AVSTREAM_MPEG_PS_PIN%,"Name",, "MPEG2 Program"

;; Hauppauge API Support
;HKLM,"Software\Hauppauge\HcwTVWnd","VCapFilter",0x00000000,"Hauppauge WinTV-HVR 713X BDA Analog Capture"



;
;******** Board - Specific Registry Entries ***
;

[Hauppauge_33_6700.AddReg]

; Prefix will be displayed in front of the device name on every filter
HKR, "Parameters","Prefix",,%CUSTOM_TUNERNAME%

; Reduces second pair of video/audio inputs
HKR, "Parameters","SmallXBar",0x00010001,0x00

; Specify the GPIO pin and polarity for VideoMUX control (Polarity is the MSB)
HKR, "Parameters","VideoMuxGPIO",0x00010001,0x08
; GPIO Audio Configuration 
HKR, "Audio", "I2S Output", 0x00010001,0x00000000 
HKR, "Audio", "I2S2 Output", 0x00010001,0x00000000 


[Hauppauge_33_6701.AddReg]

; Prefix will be displayed in front of the device name on every filter
HKR, "Parameters","Prefix",,%CUSTOM_TUNERNAME%

; Reduces second pair of video/audio inputs
HKR, "Parameters","SmallXBar",0x00010001,0x00
; Specify the GPIO pin and polarity for VideoMUX control (Polarity is the MSB)
HKR, "Parameters","VideoMuxGPIO",0x00010001,0x08

; GPIO Audio Configuration 
HKR, "Audio", "I2S Output", 0x00010001,0x00000000 
HKR, "Audio", "I2S2 Output", 0x00010001,0x00000000 



;======================================
;
;           Strings Defines
;
;======================================

[Strings]
;-------------------------------
; Capture Filter 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_CAP_PIN  = "{16FFBD0A-F770-4692-A2FF-DD394DFE9564}"
AVSTREAM_ANLG_VIDEO_PRE_PIN  = "{A19F6121-9CF7-4081-8053-256668FCBE1F}"
AVSTREAM_ANLG_AUDIO_CAP_PIN  = "{BA9E27B1-CF44-490e-8EAB-5F662E5FFE74}"
AVSTREAM_MPEG_AES_PIN        = "{9DEC84B9-BCEF-4aac-997E-43EDD0A2D6C7}"
AVSTREAM_MPEG_VES_PIN        = "{181CF87E-7741-47ba-8629-22347E03C64C}"
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


;--------------------
; Customer Strings
;--------------------

DRIVER_NAME_X32               = "HCW713x.sys"
;DRIVER_NAME_X64               = "Ph3xVU64.sys"
MACROVISION_NAME_X32          = "HCW713xMV.dll"
;MACROVISION_NAME_X64          = "Ph3xVU64MV.dll"

SERVICE_NAME_X32              = "HCW713x"
;SERVICE_NAME_X64              = "Ph3xVU64"
SERVICE_DESCRIPTION           = "Hauppauge 713x VU BDA Capture Driver"
DISPLAY_NAME                  = "Hauppauge 713x VU PCI TV Card"

PROVIDER                      = "Hauppauge Computer Works!"
INSTALLATION_DISK             = "Vista Installation Disk"

;*** Specific Names ***
;-----------------
Hauppauge.AudioDeviceDesc       = "Hauppauge WinTV-HVR Audio Capture Device"

CUSTOM_TUNERNAME                = "Hauppauge WinTV-HVR 713X"
Hauppauge_33_6701.DeviceDesc    = "Hauppauge WinTV-HVR 67xxx Capture Device"
Hauppauge_33_6700.DeviceDesc    = "Hauppauge WinTV-HVR 67xxx Capture Device"

