;------------------------------------------------------------------------
;
;  Drivers for DVB-S/S2 Prof Revolution Series, PTG Engine 1.7
;  (C) 2008-2013 Prof Tuners Group Ltd
;  http://www.proftuners.com
;
;------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider="Prof"
DriverVer=01/27/2013,23.49.35.650
CatalogFile.ntx86=Prof7301.cat

[Manufacturer]
"Prof"=Prof

[SourceDisksNames]
1="Prof 7301 DVB-S/S2 Driver",,,""

[SourceDisksFiles]
Prof7301.sys=1

[Prof]
%Prof.DVBS%=Prof.DVBS,           PCI\VEN_14F1&DEV_8800&SUBSYS_3034B034
%Prof.null%=NullSection,         PCI\VEN_14F1&DEV_8801&SUBSYS_3034B034
%Prof.null%=NullSection,         PCI\VEN_14F1&DEV_8802&SUBSYS_3034B034
%Prof.null%=NullSection,         PCI\VEN_14F1&DEV_8803&SUBSYS_3034B034
%Prof.null%=NullSection,         PCI\VEN_14F1&DEV_8804&SUBSYS_3034B034

[Prof.DVBS]
Include=    ks.inf, kscaptur.inf, ksfilter.inf, wdmaudio.inf, bda.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation,WDMAUDIO.Registration,BDA.Registration,bda.Installation.NT
AddReg=     Prof.AddReg,ProfDVBS.AddReg,ProfXBAR.AddReg,ProfTS.AddReg
CopyFiles=  Prof.CopyDrivers


[NullSection]

[NullSection.Services]
AddService = , 2  ; null service install

[DestinationDirs]
Prof.CopyDrivers=10,system32\drivers
ProfDSFilters.CopyFiles=11

[Prof.CopyDrivers]
Prof7301.sys


[Prof.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Prof7301.sys
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKLM,%MediaCategories%\%GUID.PINNAME_ANALOG_AUDIO_IN%,Name,,%Pin.p2AnalogAudioIn%
HKLM,%MediaCategories%\%GUID.PINNAME_AUDIO_OUT%,Name,,%PinName.AnalogAudioOut%
;Wave in audio device registration
HKR,Drivers,SubClasses,,"wave"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%AudioFriendlyName%
;Copy protection method enforced by driver
HKR,"DriverData","CpMethod",0x00010001, 0xFE, 0x00, 0x00, 0x00


;
; Driver Configuration Registry Entries
;


;-------------------------------------------------------------------
; Crossbar AddReg sections
;
;---Crossbar registry values---
;
; Note: For each pin on the crossbar, specify the following:
; (1) Pin type 
;     0 - SVIDEO
;     1 - Tuner
;     2 - Composite
;     3 - 656
;     4 - audio tuner in
;     5 - audio line in
; (2) InputMux (optional) - input mux to use for the selected pin
; (3) RelatedPinIndex 
; (4) GPIOMask (optional) - Mask specifying which GPIO bits to set or clear
; (5) GPIOSettings (optional) - Settings for GPIO bits specified in the mask 

;-------------------------------------------------------------------

[ProfXBAR.AddReg]
;Pin 0 - Composite in - 1
HKR,"DriverData\XBarPin0","PinType",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","InputMux",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","GPIOMask",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","GPIOSettings",0x00010001, 0x00,0x00,0x00,0x00

;Pin 1 - S-Video in - 1
HKR,"DriverData\XBarPin1","PinType",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","InputMux",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","GPIOMask",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","GPIOSettings",0x00010001, 0x00,0x00,0x00,0x00

;Pin 2 - Audio Line in - 1
HKR,"DriverData\XBarPin2","PinType",0x00010001, 0x05,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00


;-------------------------------------------------------------------
; AddReg sections for DVB-S/S2 
;-------------------------------------------------------------------

[ProfDVBS.AddReg]
HKR,"DriverData","VideoStandard",0x00010001, 0x10,0x00,0x00,0x00
HKR,"DriverData","UseCompositeOnSVideo",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
; prevent audio tracking thread from running, card doesn't support
; any audio.  Audio is in mpeg packets.  Setting to I2S audio.
HKR,"DriverData","WWAudioPrimaryStandard",0x00010001, 0x0B,0x00,0x00,0x00
HKR,"DriverData","WWAudioLineInToI2sIn",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","TunerModel",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData","DisableAudioOutPin",0x00010001, 0x01,0x00,0x00,0x00

; these registry keys for TS filter
HKR,"DriverData","dwTS_GEN_CNTRL",0x00010001,     0x04,0x00,0x00,0x00
HKR,"DriverData","dwIsTSStream",0x00010001,       0x00,0x00,0x00,0x00
HKR,"DriverData","dwTP_PACKET_SIZE",0x00010001,   0xBC,0x00,0x00,0x00

[ProfTS.AddReg]
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%TSPinID%,Name,,%TSPinName%

;
; Interfaces installation
;

;
; Video
;
[Prof.DVBS.Interfaces]
Needs=BDA.Interfaces

[BDA.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},%KsNameFilter%,VID_Interface,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},%TVAudioReferenceGuid%,TvAudio_Interface,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},%XBARReferenceGUID%,ProfXBAR_Interface,
AddInterface={6994AD04-93EF-11D0-A3CC-00A0C9223196},%AudioReferenceGuid%,AUD_Interface,
AddInterface={71985F48-1CA1-11d3-9CC8-00C04F7971E0},%BDATuneReferenceGuid%,BDATUNE_Interface,
AddInterface={FD0A5AF4-B41D-11d2-9C95-00C04F7971E0},%TSReferenceGuid%,TS_Interface

[VID_Interface]
AddReg=VID_Interface.AddReg

[VID_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%VIDFriendlyName%

[TvAudio_Interface]
AddReg=TvAudio_Interface.AddReg

[TvAudio_Interface.AddReg]
HKR,,CLSID,,{71F96462-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%TVAudioFriendlyName%

[ProfXBAR_Interface]
AddReg=ProfXBAR_Interface.AddReg

[ProfXBAR_Interface.AddReg]
HKR,,CLSID,,{71F96460-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%XBARFriendlyName%

[BDATUNE_Interface]
AddReg=BDATUNE_Interface.AddReg

[BDATUNE_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%BDATuneFriendlyName%

[AUD_Interface]
AddReg=AUD_Interface.AddReg

[AUD_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%AudioFriendlyName%

[TS_Interface]
AddReg=TS_Interface.AddReg

[TS_Interface.AddReg]
HKR,,CLSID,,%Proxy.CLSID%       ; {17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%TSFriendlyName%

;
; Services installation
;

[Prof.DVBS.Services]
AddService = Prof,2,VID.ServiceInstall

[VID.ServiceInstall]
DisplayName   = %Prof.DeviceDesc%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\Prof7301.sys

;---------------------------------------------------------------
;                S t r i n g s
;---------------------------------------------------------------

[Strings]
KsNameFilter                 = "{9B365890-165F-11D0-A195-0020AFD156E4}"
Proxy.CLSID                  = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
Prof.DeviceDesc              = "Prof 7301 Video Capture"
VIDFriendlyName              = "Prof 7301 Video Capture"
Prof.null                    = "Prof 7301 DVB-S/S2 TS Capture"
Prof.DVBS                    = "Prof 7301 DVB-S/S2"
MediaCategories              = "SYSTEM\CurrentControlSet\Control\MediaCategories"
GUID.PINNAME_ANALOG_AUDIO_IN = "{04394D28-52A7-4c46-AED0-65D62CC64DA6}"
Pin.p2AnalogAudioIn          = "Analog Audio In"
GUID.PINNAME_AUDIO_OUT       = "{9DA02733-7910-40f2-95DD-0441676C9A9B}"
PinName.AnalogAudioOut       = "Audio Out"
TSPinID                      = "{5237C937-0A21-4f7e-B338-DE0D0793D03F}"
TSPinName                    = "TS Out"
AudioFriendlyName            = "Prof 7301 Audio Capture"
AudioReferenceGuid           = "{AB766B70-AFB3-4461-A4DE-22E9C516B7FE}"
TVAudioFriendlyName          = "Prof 7301 TvAudio"
TVAudioReferenceGuid         = "{991182D5-71A2-4b5c-9817-F551FBBC8232}"
XBARFriendlyName             = "Prof 7301 Crossbar"
XBARReferenceGUID            = "{77F656DA-696D-407c-BA1C-50E4457C12E8}"
BDATuneFriendlyName          = "Prof 7301 BDA Tuner/Demod"
BDATuneReferenceGuid         = "{91B0CC87-9905-4d65-A0D1-5861C6F22CBF}"
TSFriendlyName               = "Prof 7301 AVStream TS Capture"
TSReferenceGuid              = "{5ea9c066-1dfe-41c5-a2de-bf766e83c98e}"
