;
; smrt.inf
;
; (C) Copyright 2002,2003,2004 Sony Corporation
;	All Rights Reserved.

[Version]
Signature="$Windows NT$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%SonyCorp%
CatalogFile=smrt.cat
DriverVer=10/28/2004,1.2.04.10280

[DestinationDirs]
smrt.CopyDrivers.NT=12

[SourceDisksNames]
1=%DriverDisketName%

[SourceDisksFiles]
smrt.sys=1

[Manufacturer]
%SonyCorp%=Sony

[Sony]
%smrt.DeviceDesc%=smrt.Device,PCI\VEN_4444&DEV_0016&SUBSYS_812D104D
%smrt.DeviceDesc%=smrt.Device,PCI\VEN_4444&DEV_0016&SUBSYS_813D104D
%smrt.DeviceDesc%=smrt.Device,PCI\VEN_4444&DEV_0016&SUBSYS_816D104D
%smrt.DeviceDesc%=smrt.Device,PCI\VEN_4444&DEV_0016&SUBSYS_8151104D
%smrt.DeviceDesc%=smrt.Device,PCI\VEN_4444&DEV_0016&SUBSYS_8171104D

[smrt.Device.NT]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
CopyFiles=smrt.CopyDrivers.NT

[smrt.Device.NT.Services]
AddService = smrt,0x00000002,smrt.ServiceInstall.NT

[smrt.ServiceInstall.NT]
DisplayName   = %smrt.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\smrt.sys
AddReg	      = smrt.AddReg, smrt.PinNameRegistration

[smrt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,0,smrt.sys
HKR,,PageOutWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,FriendlyName,,%smrt.DeviceDesc%
; Attach the property pages to PROPSETID_IVAC_PROPERTIES ( capture filter )
HKLM,System\CurrentControlSet\Control\MediaSets\%GUID.PROPERTY_SET_IVAC_PROPERTIES%\PropertyPages\{A2574AE1-19D3-11d3-BD75-00500473F96A},,,
HKLM,System\CurrentControlSet\Control\MediaSets\%GUID.PROPERTY_SET_IVAC_PROPERTIES%\PropertyPages\{A2574AE3-19D3-11d3-BD75-00500473F96A},,,
HKLM,System\CurrentControlSet\Control\MediaSets\%GUID.PROPERTY_SET_IVAC_PROPERTIES%\PropertyPages\{A2574AE4-19D3-11d3-BD75-00500473F96A},,,
HKLM,System\CurrentControlSet\Control\MediaSets\%GUID.PROPERTY_SET_IVAC_PROPERTIES%\PropertyPages\{A2574AE2-19D3-11d3-BD75-00500473F96A},,,

HKLM,"Software\Microsoft\MM20\RecordSettings\Ignore Device","SOMA Capture"
HKLM,"Software\Microsoft\MM20\RecordSettings\Ignore Device","SOMA Preview"
HKLM,"Software\Microsoft\MM20\RecordSettings\Ignore Device","SMRT Capture"

HKLM,"Software\Sony Corporation\TV Tuner Device","Power Status",0x00010001,0

[smrt.CopyDrivers.NT]
smrt.sys

[smrt.Device.NT.Interfaces]
AddInterface={a799a800-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvTuner,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoCrossbar,
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={2721AE20-7E70-11D0-A5D6-28DB04C10000},"GLOBAL",VideoDecoder,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[VideoTvAudio]
AddReg=VideoTvAudio.AddReg

[VideoDecoder]
AddReg=VideoDecoder.AddReg

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoTvTuner]
AddReg=VideoTvTuner.AddReg

[VideoCrossbar]
AddReg=VideoXBar.AddReg

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

[VideoDecoder.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%smrt.Decoder%
HKR,,Merit,1,00,00,40,00

[VideoCapture.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%smrt.Capture%

[VideoTvTuner.AddReg]
HKR,,CLSID,,{266EEE40-6C63-11cf-8A03-00AA006ECB65}
HKR,,FriendlyName,,%smrt.TvTuner%
    
[VideoXBar.AddReg]
HKR,,CLSID,,{71F96460-78F3-11d0-A18C-00A0C9118956}
HKR,,FriendlyName,,%smrt.Crossbar%

[smrt.PinNameRegistration]
HKLM,%MediaCategories%\%GUID.PINNAME_MPEG2_VIDEO%,Name,,%Pin.smrtVideo%
HKLM,%MediaCategories%\%GUID.PINNAME_VBI%,Name,,%Pin.smrtVBI%
HKLM,%MediaCategories%\%GUID.PINNAME_Index%,Name,,%Pin.smrtIndex%
HKLM,%MediaCategories%\%GUID.PINNAME_VBI_OUT%,Name,,%Pin.smrtVBIReinsert%
HKLM,%MediaCategories%\%GUID.PINNAME_MPEG2_DEC_VIDEO%,Name,,%Pin.smrtVideoDec%
HKLM,%MediaCategories%\%GUID.PINNAME_ANALOG_VIDEO_IN%,Name,,%Pin.smrtAnalogVideoIn%
HKLM,%MediaCategories%\%GUID.PINNAME_ANALOG_AUDIO_IN%,Name,,%Pin.smrtAnalogAudioIn%
HKLM,%MediaCategories%\%GUID.PINNAME_LINE_21%,Name,,%Pin.smrtLine21%
HKLM,%MediaCategories%\%GUID.PINNAME_PREV_YUV%,Name,,%Pin.smrtPrevYUV%
HKLM,%MediaCategories%\%GUID.PINNAME_PREV_PCM%,Name,,%Pin.smrtPrevPCM%
HKLM,%MediaCategories%\%GUID.PINNAME_SLICEDCC%,Name,,%Pin.smrtSlicedCC%

; Proxy filter's friendly name
HKLM,SOFTWARE\Globespan\ivac15\1.00.000, "PCIFriendlyName",, %smrt.Capture%
HKLM,SOFTWARE\Globespan\ivac15\1.00.000, "PCIDecFriendlyName",, %smrt.Decoder%

;;
;; Add Register for Capture Filter
;;
;; Setting for COM I/F followed.
HKCR,CLSID\%CUSTOM_PROPERTY.CAPTURE.CLSID%\,,,%smrt.Capture.CustomProperty.Name%
HKCR,CLSID\%CUSTOM_PROPERTY.CAPTURE.CLSID%\InprocServer32,,,%smrt.Capture.CustomProperty.FileName%
HKCR,CLSID\%CUSTOM_PROPERTY.CAPTURE.CLSID%\InprocServer32,ThreadingModel,,Both
HKCR,CLSID\%CUSTOM_EVENT.CAPTURE.CLSID%\,,,%smrt.Capture.CustomEvent.Name%
HKCR,CLSID\%CUSTOM_EVENT.CAPTURE.CLSID%\InprocServer32,,,%smrt.Capture.CustomEvent.FileName%
HKCR,CLSID\%CUSTOM_EVENT.CAPTURE.CLSID%\InprocServer32,ThreadingModel,,Both

;; Setting for interface followed.
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.CAPTURE.CLSID%,,,%smrt.Capture.CustomProperty.Name%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.CAPTURE.CLSID%,IID,1,ec,da,87,e7,cc,68,09,4a,8e,9c,be,a9,13,0d,63,aa
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_EVENT.CAPTURE.CLSID%,,,%smrt.Capture.CustomEvent.Name%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_EVENT.CAPTURE.CLSID%,IID,1,7c,da,00,d9,5d,b6,d5,40,67,80,0c,22,98,41,fe,c8

;;
;; Add Register for Preview Filter
;;
;; Setting for COM I/F of custom property set followed.
HKCR,CLSID\%CUSTOM_PROPERTY.PREVIEW.CLSID%\,,,%smrt.Preview.CustomProperty.Name%
HKCR,CLSID\%CUSTOM_PROPERTY.PREVIEW.CLSID%\InprocServer32,,,%smrt.Preview.CustomProperty.FileName%
HKCR,CLSID\%CUSTOM_PROPERTY.PREVIEW.CLSID%\InprocServer32,ThreadingModel,,Both
HKCR,CLSID\%CUSTOM_EVENT.PREVIEW.CLSID%\,,,%smrt.Preview.CustomEvent.Name%
HKCR,CLSID\%CUSTOM_EVENT.PREVIEW.CLSID%\InprocServer32,,,%smrt.Preview.CustomEvent.FileName%
HKCR,CLSID\%CUSTOM_EVENT.PREVIEW.CLSID%\InprocServer32,ThreadingModel,,Both

;; Setting for interface of custom property set followed.
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.PREVIEW.CLSID%,,,%smrt.Preview.CustomProperty.Name%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.PREVIEW.CLSID%,IID,1,fe,cf,1c,ca,4b,51,d6,45,0a,aa,30,c7,38,ee,b8,32
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_EVENT.PREVIEW.CLSID%,,,%smrt.Preview.CustomEvent.Name%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_EVENT.PREVIEW.CLSID%,IID,1,F6,52,88,A1,25,6E,99,41,C2,99,37,EC,49,1C,E8,E6

;;
;; Add Register for TvTuner Filter
;;
;; Setting for COM I/F of custom property set followed.
HKCR,CLSID\%CUSTOM_PROPERTY.TVTUNER.CLSID%\,,,%smrt.TvTuner.CustomProperty.Name%
HKCR,CLSID\%CUSTOM_PROPERTY.TVTUNER.CLSID%\InprocServer32,,,%smrt.TvTuner.CustomProperty.FileName%
HKCR,CLSID\%CUSTOM_PROPERTY.TVTUNER.CLSID%\InprocServer32,ThreadingModel,,Both

;; Setting for interface of custom property set followed.
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.TVTUNER.CLSID%,,,%smrt.TvTuner.CustomProperty.Name%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%CUSTOM_PROPERTY.TVTUNER.CLSID%,IID,1,8c,0a,a0,83,6f,9e,e7,48,09,a2,4c,97,72,6a,b1,8e

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

[Strings]

;----------------
; Non-Localizable
;----------------

SERVICE_KERNEL_DRIVER=1
SERVICE_AUTO_START=2
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1


;----------------
; Localizable
;----------------

SonyCorp= "Sony Corporation"
DriverDisketName= "Sony Corporation Mediadrivers"

smrt.DeviceDesc= "Sony MPEG RealTime encoder board"
smrt.Capture=    "SMRT Capture"
smrt.Preview=    "SMRT Capture"
smrt.Decoder=    "SMRT Decoder"
smrt.TvTuner=    "SMRT TV Tuner"
smrt.Crossbar=   "SMRT Crossbar"
smrt.TvAudio=    "SMRT TV Audio"
smrt.InstallDisk="SMRT install disk"

;  *******Localizable Strings*******
smrt.Capture.CustomProperty.Name = "SMRT Capture Property"
smrt.Capture.CustomProperty.FileName = "ksproxy.ax"
smrt.Preview.CustomProperty.Name = "SMRT Preview Property"
smrt.Preview.CustomProperty.FileName = "ksproxy.ax"
smrt.TvTuner.CustomProperty.Name = "SMRT TVTuner Property"
smrt.TvTuner.CustomProperty.FileName = "ksproxy.ax"
smrt.Capture.CustomEvent.Name = "SMRT Capture Event"
smrt.Capture.CustomEvent.FileName = "ksproxy.ax"
smrt.Preview.CustomEvent.Name = "SMRT Preview Event"
smrt.Preview.CustomEvent.FileName = "ksproxy.ax"


; For the pinname
MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"
GUID.PROPERTY_SET_IVAC_PROPERTIES =	"{d2185a40-0398-11d3-a53e-00a0c9ef506a}"
GUID.PINNAME_MPEG2_VIDEO =		"{4A548B66-AB0F-4bab-BF35-9B8DF814618B}"
GUID.PINNAME_VBI =			"{d5b95261-c8e3-11d3-a541-00a0c9ef506a}"
GUID.PINNAME_Index =             	"{6e8aa6a9-1dee-11d5-a437-00e0294170dd}"
GUID.PINNAME_MPEG2_DEC_VIDEO =		"{3e4035c1-6d25-11d4-a435-00e0294170dd}"
GUID.PINNAME_VBI_OUT =			"{FE5BBAA5-2D07-4d35-BACA-E0ADDA5AD751}"
GUID.PINNAME_ANALOG_VIDEO_IN =		"{41C38A94-B29F-4adc-855E-D5C8024ACAA4}"
GUID.PINNAME_ANALOG_AUDIO_IN =  	"{04394D28-52A7-4c46-AED0-65D62CC64DA6}"
GUID.PINNAME_LINE_21 =			"{FB6C4284-0353-11d1-905F-0000C0CC16BA}"
GUID.PINNAME_PREV_YUV =			"{B9B5C1DC-387B-45de-B6B8-3445E83F1478}"
GUID.PINNAME_PREV_PCM =			"{405A0891-A769-4c3f-8A43-F4A3E4FDAD77}"
GUID.PINNAME_SLICEDCC =			"{2A76292E-BF9E-4e5d-B3CE-3CA96B7D1F6F}"

;; GUIDs should be changed to adapt the source code!
CUSTOM_PROPERTY.CAPTURE.CLSID =		"{E787DAEC-68CC-4a09-9C8E-BEA9130D63AA}"
CUSTOM_PROPERTY.PREVIEW.CLSID =		"{CA1CCFFE-514B-45d6-AA0A-30C738EEB832}"
CUSTOM_PROPERTY.TVTUNER.CLSID =		"{83A00A8C-9E6F-48e7-A209-4C97726AB18E}"

CUSTOM_EVENT.CAPTURE.CLSID =		"{D900DA7C-B65D-40d5-8067-0C229841FEC8}"
CUSTOM_EVENT.PREVIEW.CLSID =		"{A18852F6-6E25-4199-99C2-37EC491CE8E6}"

Pin.smrtVideo="Video/Muxed Out"
Pin.smrtVBI="VBI"
Pin.smrtIndex="Index"
Pin.smrtVideoDec= "Video/Muxed In"
Pin.smrtAnalogVideoIn=  "Analog Video In"
Pin.smrtAnalogAudioIn=  "Analog Audio In"
Pin.smrtVBIReinsert="VBI Reinsertion"
Pin.smrtLine21="VBI Line 21"
Pin.smrtPrevYUV="Preview Video"
Pin.smrtPrevPCM="Preview Audio"
Pin.smrtSlicedCC="HWCC"
