;------------------------------------------------------------------------------
; aticxwxp.inf - ATI TV Wonder Pro WDM Driver INF
;------------------------------------------------------------------------------
; Copyright (C) 2003 ATI Technologies Inc.

[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Mfg%
DriverVer=10/28/2003,6.13.10.8304
CatalogFile=aticxwxp.cat

[Manufacturer]
%Mfg%=ATI

[SourceDisksNames]
1=%DiskId%,,,

[SourceDisksFiles]
aticxcap.sys=1
aticxtun.sys=1
aticxxbr.sys=1
ativtttw.sys=1

[ATI]
; Capture
%ATICXCAP.DeviceDesc%=      ATICXCAP.FI1236MK3,   PCI\VEN_14F1&DEV_8800&SUBSYS_00F81002
%ATICXCAP.DeviceDesc%=      ATICXCAP.Philips4In1, PCI\VEN_14F1&DEV_8800&SUBSYS_09661002

; Tuner
%ATICXTUN.DeviceDescPMK3%=  ATICXTUN.FI1236MK3,   STREAM\ATICXTUN.FI1236MK3
%ATICXTUN.DeviceDescP4in1%= ATICXTUN.Philips4In1, STREAM\ATICXTUN.Philips4In1

; Crossbar
%ATICXXBR.DeviceDesc%=      ATICXXBR,             STREAM\ATICXXBR

; Teletext Decoder
%TTDec.DeviceDesc%=         TTDec.Device,         STREAM\ATIVTTTW

[DestinationDirs]
ATICXCAP.CopyDrivers=10,system32\drivers
ATICXCAP.CopyFilters=11
ATICXXBR.CopyDrivers=10,system32\drivers
ATICXTUN.CopyDrivers=10,system32\drivers
TTDec.CopyDrivers=10,system32\drivers

[ATICXCAP.CopyDrivers]
aticxcap.sys
aticxtun.sys
aticxxbr.sys
ativtttw.sys

[ATICXCAP.CopyFilters]
; none for now

;---------
; CAPTURE
;---------

[ATICXCAP.FI1236MK3]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,MSPCLOCK.Installation,KSCAPTUR.Registration.NT
AddReg=     ATICXCAP.AddReg,ATICXCAP.FI1236MK3.AddReg
CopyFiles=  ATICXCAP.CopyDrivers, ATICXCAP.CopyFilters

[ATICXCAP.Philips4In1]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration, MSPCLOCK.Installation,KSCAPTUR.Registration.NT
AddReg=     ATICXCAP.AddReg,ATICXCAP.Philips4In1.AddReg
CopyFiles=  ATICXCAP.CopyDrivers, ATICXCAP.CopyFilters

[ATICXCAP.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,aticxcap.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,"DriverData","XBarInPin0",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData","XBarInPin1",0x00010001, 0x01, 0x00,0x00,0x00
HKR,"DriverData","XBarInPin2",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData","XBarInPin3",0x00010001, 0x00,0x10,0x00,0x00
HKR,"DriverData","XTal0",0x00010001, 0x1c, 0x00, 0x00, 0x00
HKR,"DriverData","XTal1",0x00010001, 0x23, 0x00, 0x00, 0x00
HKR,"DriverData","BobMode",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","VolumeLevelNegdB",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","UseExternalVPRES",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"DriverData","UseI2SAsClock",0x00010001, 0x00, 0x00, 0x00, 0x00


[ATICXCAP.FI1236MK3.AddReg]
HKR,"DriverData","VideoStandard",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
; Country code is USA = 1
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x01,0x00,0x00,0x00
HKR,"ENUM\Device1",pnpid,,"ATICXTUN.FI1236MK3"
HKR,"ENUM\Device2",pnpid,,"ATICXXBR"

[ATICXCAP.Philips4In1.AddReg]
HKR,"DriverData","VideoStandard",0x00010001, 0x10,0x00,0x00,0x00
HKR,"DriverData","ColorKillEnable",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","4in1Tuner",0x00010001, 0x01,0x00,0x00,0x00
; Country code is Germany = 49
HKR,"DriverData","WWAudioCountryCode",0x00010001, 0x31,0x00,0x00,0x00
HKR,"DriverData","Pll27",0x00010001, 0x00, 0x00, 0x00, 0x00
HKR,"ENUM\Device1",pnpid,,"ATICXTUN.Philips4in1"
HKR,"ENUM\Device2",pnpid,,"ATICXXBR"
; Teletext decoder
HKR,"ENUM\Device3",pnpid,,"ATIVTTTW"

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoTvAudio]
AddReg=VideoTvAudio.AddReg

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

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

[ATICXCAP.FI1236MK3.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[ATICXCAP.FI1236MK3.Services]
AddService = ATICXCAP,0x00000002,ATICXCAP.ServiceInstall

[ATICXCAP.Philips4In1.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={a799a802-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",VideoTvAudio,

[ATICXCAP.Philips4In1.Services]
AddService = ATICXCAP,0x00000002,ATICXCAP.ServiceInstall

[ATICXCAP.ServiceInstall]
DisplayName   = %ATICXCAP.Capture%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\aticxcap.sys


;-------
; TUNER
;-------

[ATICXTUN.Philips4In1]
Include  =  ks.inf, kscaptur.inf
Needs    =  KS.Registration
AddReg   =  ATICXTUN.Addreg,Philips4in1.AddReg
CopyFiles=  ATICXTUN.CopyDrivers

[ATICXTUN.FI1236MK3]
Include  =  ks.inf, kscaptur.inf
Needs    =  KS.Registration
AddReg   =  ATICXTUN.Addreg,FI1236MK3.AddReg
CopyFiles=  ATICXTUN.CopyDrivers

[ATICXTUN.CopyDrivers]
;aticxtun.sys

[ATICXTUN.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,aticxtun.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00

[Philips4in1.AddReg]
HKR,"DriverData","TunerBrand",0x00010001, 0x02, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xc0, 0x00, 0x00, 0x00
HKR,"DriverData","TunerType",0x00010001, 0x0A, 0x00, 0x00, 0x00
HKR,"DriverData","TunerMode",0x0010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TunerInput",0x00010001, 0x00, 0x00, 0x00, 0x00

[FI1236MK3.AddReg]
HKR,"DriverData","TunerBrand",0x00010001, 0x02, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xc0, 0x00, 0x00, 0x00
HKR,"DriverData","TunerType",0x00010001, 0x0C, 0x00, 0x00, 0x00
HKR,"DriverData","TunerMode",0x0010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TunerInput",0x00010001, 0x00, 0x00, 0x00, 0x00

[TvTuner]
AddReg=TvTuner.AddReg

[TvTuner.AddReg]
HKR,,CLSID,,{266EEE40-6C63-11cf-8A03-00AA006ECB65}
HKR,,FriendlyName,,%ATICXTUN.Tuner%

[ATICXTUN.Philips4in1.Interfaces]
AddInterface={a799a800-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",TvTuner,

[ATICXTUN.Philips4in1.Services]
AddService = ATICXTUN,0x00000002,ATICXTUN.ServiceInstall

[ATICXTUN.FI1236MK3.Interfaces]
AddInterface={a799a800-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",TvTuner,

[ATICXTUN.FI1236MK3.Services]
AddService = ATICXTUN,0x00000002,ATICXTUN.ServiceInstall

[ATICXTUN.ServiceInstall]
DisplayName   = %ATICXTUN.DeviceDescPMK3%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\aticxtun.sys

;----------
; CROSSBAR
;----------

[ATICXXBR]
Include  =  ks.inf, kscaptur.inf
Needs    =  KS.Registration
AddReg   =  ATICXXBR.AddReg
CopyFiles=  ATICXXBR.CopyDrivers

[ATICXXBR.CopyDrivers]
;aticxxbr.sys

[ATICXXBR.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,aticxxbr.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00
HKR,"DriverData","LastVideoSource",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData","LastAudioSource",0x00010001, 0xff,0xff,0xff,0xff
HKR,"DriverData","AudioType",0x00010001, 0x04,0x00,0x00,0x00

;video svideo
HKR,"DriverData\InPin0","PinType",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData\InPin0","RelatedPinIndex",0x00010001, 0x05,0x00,0x00,0x00
HKR,"DriverData\InPin0","Medium",,%GUID_NULL%

;video tuner
HKR,"DriverData\InPin1","PinType",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\InPin1","RelatedPinIndex",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\InPin1","Medium",,%GUID_0%

;video composite
HKR,"DriverData\InPin2","PinType",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\InPin2","RelatedPinIndex",0x00010001, 0x05,0x00,0x00,0x00
HKR,"DriverData\InPin2","Medium",,%GUID_NULL%

;audio tuner
HKR,"DriverData\InPin3","PinType",0x00010001, 0x00,0x10,0x00,0x00
HKR,"DriverData\InPin3","RelatedPinIndex",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\InPin3","Medium",,%GUID_3%

;audio line
HKR,"DriverData\InPin4","PinType",0x00010001, 0x01,0x10,0x00,0x00
HKR,"DriverData\InPin4","RelatedPinIndex",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\InPin4","Medium",,%GUID_5%

;video decoder
HKR,"DriverData\OutPin0","PinType",0x00010001, 0x0C,0x00,0x00,0x00
HKR,"DriverData\OutPin0","RelatedPinIndex",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\OutPin0","Medium",,%GUID_4%

;audio decoder
HKR,"DriverData\OutPin1","PinType",0x00010001, 0x09,0x10,0x00,0x00
HKR,"DriverData\OutPin1","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\OutPin1","Medium",,%GUID_NULL%


[Crossbar]
AddReg=Crossbar.AddReg

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

[ATICXXBR.Interfaces]
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},"GLOBAL",Crossbar,

[ATICXXBR.Services]
AddService = ATICXXBR,0x00000002,ATICXXBR.ServiceInstall

[ATICXXBR.ServiceInstall]
DisplayName   = %ATICXXBR.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\aticxxbr.sys


;------------------
; TELETEXT DECODER
;------------------

[TTDec.Device]
AddReg=     TTDec.Device.AddReg
CopyFiles=  TTDec.CopyDrivers
DelFiles =  TTDec.DelDrivers

[TTDec.CopyDrivers]
;ativtttw.sys

[TTDec.DelDrivers]

[TTDec.Device.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ativtttw.sys
HKR,,DebugLevel,0,0

[TTDec.Device.Interfaces]
AddInterface=%KSCATEGORY_VBICODEC%,"GLOBAL",VBICodec,

[VBICodec]
AddReg=VBICodec.AddReg

[VBICodec.AddReg]
HKR,,CLSID,,%CLSID_Proxy%
HKR,,FriendlyName,,%TTDec.FriendlyName%
HKLM,Software\CLASSES\CLSID\%CLSID_AMCat%\Instance\%KSCATEGORY_VBICODEC%
HKLM,Software\CLASSES\CLSID\%CLSID_AMCat%\Instance\%KSCATEGORY_VBICODEC%,,,%WDMCodecs%
HKLM,Software\CLASSES\CLSID\%CLSID_AMCat%\Instance\%KSCATEGORY_VBICODEC%,FriendlyName,,%WDMCodecs%
HKLM,Software\CLASSES\CLSID\%CLSID_AMCat%\Instance\%KSCATEGORY_VBICODEC%,CLSID,,%KSCATEGORY_VBICODEC%

[TTDec.Device.Services]
AddService = TTDecTW2,0x00000002,TTDec.ServiceInstall

[TTDec.ServiceInstall]
DisplayName   = %TTDec.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\system32\drivers\ativtttw.sys

;----------------
; STRINGS
;----------------

[Strings]
Mfg                    = "ATI Technologies"
DiskId                 = "ATI TV Wonder Pro Driver Disk"

ATICXCAP.DeviceDesc    = "ATI TV Wonder Pro A/V Capture"
ATICXCAP.Capture       = "ATI TV Wonder Pro A/V Capture"
ATICXCAP.TvAudio       = "ATI TV Wonder Pro TV Audio"

ATICXXBR.DeviceDesc    = "ATI TV Wonder Pro A/V Crossbar"
ATICXXBR.Crossbar      = "ATI TV Wonder Pro A/V Crossbar"

ATICXTUN.DeviceDesc      = "ATI TV Wonder Pro Tuner"
ATICXTUN.DeviceDescP4in1 = "ATI TV Wonder Pro Tuner (Philips 4-in-1)"
ATICXTUN.DeviceDescPMK3  = "ATI TV Wonder Pro Tuner (Philips 1236 MK3)"
ATICXTUN.Tuner           = "ATI TV Wonder Pro Tuner"

TTDec.DeviceDesc       = "ATI TV Wonder Pro Teletext Decoder"
TTDec.FriendlyName     = "ATI TV Wonder Pro Teletext Decoder"
WDMCodecs              = "WDM Streaming VBI Codecs"

;RunOnce               = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SERVICE_KERNEL_DRIVER  = 1
SERVICE_DEMAND_START   = 3
SERVICE_ERROR_NORMAL   = 1

GUID_NULL	       = "{00000000-0000-0000-0000-000000000000}"
GUID_0		       = "{A19DC0E0-3B39-11D1-905F-0000C0CC16BA}"
GUID_3		       = "{A19DC0E3-3B39-11D1-905F-0000C0CC16BA}"
GUID_4		       = "{A19DC0E4-3B39-11D1-905F-0000C0CC16BA}"
GUID_5		       = "{A19DC0E5-3B39-11D1-905F-0000C0CC16BA}"

; KsProxy.ax's ID, REQUIRED
CLSID_Proxy            = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"	
CLSID_AMCat            = "{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}"
KSCATEGORY_VBICODEC    = "{07DAD660-22F1-11d1-A9F4-00C04FBBDE8F}"
