;===========================================================================
; atidtvxp.inf
;
; WinXP Drivers for ATI DTV Wonder video capture and playback devices
; Copyright (C) 2004 ATI Technologies Inc.
;===========================================================================

[Version]
DriverVer=09/26/2005, 3.0.83.2036
Provider                = %Mfg%
Signature               = "$CHICAGO$"
Class                   = MEDIA
ClassGUID               = {4d36e96c-e325-11ce-bfc1-08002be10318}
CatalogFile             = atidtvxp.cat

;---------------------------------------------------------------------------
[SourceDisksNames]
1                       = %DiskId%,,,

[SourceDisksFiles]
atidvcxx.sys            = 1
atidtuxx.sys            = 1
atidxbxx.sys            = 1
atiddcxx.sys            = 1
atidacxx.sys            = 1
atidtvxp.inf            = 1

[DestinationDirs]
DefaultDestDir          = 10,system32
ATIDVCXX.CopyFiles      = 10,system32\drivers
ATIDTUXX.CopyFiles      = 10,system32\drivers
ATIDXBXX.CopyFiles      = 10,system32\drivers
ATIDDCXX.CopyFiles      = 10,system32\drivers
ATIDACXX.CopyFiles      = 10,system32\drivers
ATIDXXXX.INFFiles		= 17,inf

[ATIDXXXX.INFFiles]
atidtvxp.inf

[ControlFlags]
ExcludeFromSelect       = *

;---------------------------------------------------------------------------
[Manufacturer]
%Mfg%                   = ATI

[ATI]
%ATIDVCXX.DeviceDesc%   = ATIDVCXX, PCI\VEN_14F1&DEV_8800&SUBSYS_A1011002
%ATIDTUXX.DeviceDesc%   = ATIDTUXX, STREAM\ATIDTUXX.#PCI#VEN_14F1&DEV_8800&SUBSYS_A1011002
%ATIDXBXX.DeviceDesc%   = ATIDXBXX, STREAM\ATIDXBXX.#PCI#VEN_14F1&DEV_8800&SUBSYS_A1011002
%ATIDACXX.DeviceDesc%   = ATIDACXX, PCI\VEN_14F1&DEV_8801&SUBSYS_A1011002
%ATIDDCXX.DeviceDesc%   = ATIDDCXX, PCI\VEN_14F1&DEV_8802&SUBSYS_A1011002


;===========================================================================
; ANALOG VIDEO CAPTURE
;===========================================================================
;---------------------------------------------------------------------------
; NT Install
[ATIDVCXX.NT]
Include                 = ks.inf, kscaptur.inf
Needs                   = KS.Registration, KSCAPTUR.Registration.NT
AddReg                  = ATIDVCXX.AddReg,ATIDVCXX.PinNameRegistration,Categories,TopologyNodes,Plugins,Filters
CopyFiles               = ATIDVCXX.CopyFiles,ATIDTUXX.CopyFiles,ATIDXBXX.CopyFiles

[ATIDVCXX.NT.Interfaces]
AddInterface            = %KSCATEGORY_CAPTURE%,"GLOBAL",ATIDVCXX_VIDEOCAP,
AddInterface            = %KSCATEGORY_TVAUDIO%,"GLOBAL",ATIDVCXX_TVAUDIO,

[ATIDVCXX.NT.Services]
AddService              = ATIDVCXX,0x00000002,ATIDVCXX.ServiceInstall

;---------------------------------------------------------------------------
; Common Install
[ATIDVCXX.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,atidvcxx.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
; extra regs
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,,"ATIDTUXX.#PCI#VEN_14F1&DEV_8800&SUBSYS_A1011002"
HKR,"ENUM\Device2",pnpid,,"ATIDXBXX.#PCI#VEN_14F1&DEV_8800&SUBSYS_A1011002"
; Generic Audio Capture Pin
HKLM,%MediaCategories%\%GUID.AUDIO_OUT%,Name,,%Node.AudioOut%

[ATIDVCXX.PinNameRegistration]
HKLM,%MediaCategories%\%PinAnalogAudioIn.GUID%,Name,,%PinAnalogAudioIn%

;------------------------------
[ATIDVCXX.CopyFiles]
atidvcxx.sys

;------------------------------
[ATIDVCXX_VIDEOCAP]
AddReg                  = ATIDVCXX_VIDEOCAP.AddReg

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

[ATIDVCXX_TVAUDIO]
AddReg                  = ATIDVCXX_TVAUDIO.AddReg

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

;------------------------------
[ATIDVCXX.ServiceInstall]
DisplayName             = %ATIDVCXX.DeviceDesc%
ServiceType             = %SERVICE_KERNEL_DRIVER%
StartType               = %SERVICE_DEMAND_START%
ErrorControl            = %SERVICE_ERROR_NORMAL%
ServiceBinary           = %10%\system32\drivers\atidvcxx.sys


;===========================================================================
; DIGITAL & ANALOG UNIFIED TUNER
;===========================================================================
;---------------------------------------------------------------------------
; NT Install
[ATIDTUXX.NT]
Include                 = ks.inf, bda.inf
Needs                   = KS.Registration, BDA.Installation.NT
AddReg                  = ATIDTUXX.AddReg,Categories,TopologyNodes,Plugins,Filters
CopyFiles               = ATIDTUXX.CopyFiles

[ATIDTUXX.NT.Interfaces]
AddInterface            = %KSCATEGORY_TVTUNER%, %KSSTRING_ATIDTUXX_ANALOG%, ATIDTUXX_ANALOG
AddInterface            = %KSCATEGORY_BDATUNER%, %KSSTRING_ATIDTUXX_DIGITAL%, ATIDTUXX_DIGITAL

[ATIDTUXX.NT.Services]
AddService              = ATIDTUXX,0x00000002,ATIDTUXX.ServiceInstall

;---------------------------------------------------------------------------
; Common Install
[ATIDTUXX.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,atidtuxx.sys
HKR,,OkToHibernate,3,01
HKR,,PageOutWhenUnopened,3,00
; extra regs
HKR,"DriverData","TunerBrand",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerI2CAddress",0x00010001, 0xc2, 0x00, 0x00, 0x00
HKR,"DriverData","TunerType",0x00010001, 0x04, 0x00, 0x00, 0x00
HKR,"DriverData","TunerMode",0x0010001, 0x01, 0x00, 0x00, 0x00
HKR,"DriverData","TunerInput",0x00010001, 0x00, 0x00, 0x00, 0x00

;------------------------------
[ATIDTUXX.CopyFiles]
atidtuxx.sys

;------------------------------
[ATIDTUXX_ANALOG]
AddReg                  = ATIDTUXX_ANALOG.AddReg

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

[ATIDTUXX_DIGITAL]
AddReg                  = ATIDTUXX_DIGITAL.AddReg

[ATIDTUXX_DIGITAL.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%ATIDTUXX_DIGITAL.FriendlyName%

;------------------------------
[ATIDTUXX.ServiceInstall]
DisplayName             = %ATIDTUXX.DeviceDesc%
ServiceType             = %SERVICE_KERNEL_DRIVER%
StartType               = %SERVICE_DEMAND_START%
ErrorControl            = %SERVICE_ERROR_NORMAL%
ServiceBinary           = %10%\system32\drivers\atidtuxx.sys


;===========================================================================
; ANALOG CROSSBAR
;===========================================================================
;---------------------------------------------------------------------------
; 9X & NT Install
[ATIDXBXX]
Include                 = ks.inf
Needs                   = KS.Registration
AddReg                  = ATIDXBXX.AddReg,Categories,TopologyNodes,Plugins,Filters
CopyFiles               = ATIDXBXX.CopyFiles

[ATIDXBXX.Interfaces]
AddInterface            = %KSCATEGORY_CROSSBAR%,"GLOBAL",Crossbar,

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

;---------------------------------------------------------------------------
; Common Install
[ATIDXBXX.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,atidxbxx.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

;In the customized driver, AudioType MUST BE ATI_AUDIO (enum)
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%

;------------------------------
[ATIDXBXX.CopyFiles]
atidxbxx.sys

;------------------------------
[Crossbar]
AddReg                  = Crossbar.AddReg

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

;------------------------------
[ATIDXBXX.ServiceInstall]
DisplayName             = %ATIDXBXX.DeviceDesc%
ServiceType             = %SERVICE_KERNEL_DRIVER%
StartType               = %SERVICE_DEMAND_START%
ErrorControl            = %SERVICE_ERROR_NORMAL%
ServiceBinary           = %10%\system32\drivers\atidxbxx.sys


;===========================================================================
; DIGITAL VIDEO CAPTURE
;===========================================================================
;---------------------------------------------------------------------------
; PnP Installation
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; NT Install
[ATIDDCXX.NT]
Include                 = ks.inf, kscaptur.inf, bda.inf
Needs                   = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg                  = ATIDDCXX.AddReg
CopyFiles               = ATIDDCXX.CopyFiles

[ATIDDCXX.NT.Interfaces]
AddInterface            = %KSCATEGORY_BDARECEIVER%, %KSSTRING_ATIDDCXX%, ATIDDCXX.Filter

[ATIDDCXX.NT.Services]
AddService              = ATIDDCXX, 0x00000002, ATIDDCXX.ServiceInstall

;---------------------------------------------------------------------------
; Common Install
[ATIDDCXX.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,atiddcxx.sys

;------------------------------
[ATIDDCXX.CopyFiles]
atiddcxx.sys

;------------------------------
[ATIDDCXX.Filter]
; This is the install section for the sample BDA capture filter.
;
AddReg                  = ATIDDCXX.Filter.AddReg

[ATIDDCXX.Filter.AddReg]
; The sample BDA digital capture driver uses KSProxy for its ring 3 filter class.
;
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%ATIDDCXX.FriendlyName%

;------------------------------
[ATIDDCXX.ServiceInstall]
DisplayName             = %ATIDDCXX.DeviceDesc%
ServiceType             = %SERVICE_KERNEL_DRIVER%
StartType               = %SERVICE_DEMAND_START%
ErrorControl            = %SERVICE_ERROR_NORMAL%
ServiceBinary           = %10%\system32\drivers\atiddcxx.sys


;===========================================================================
; ANALOG AUDIO CAPTURE
;===========================================================================
;---------------------------------------------------------------------------
; 9X & NT Install
[ATIDACXX]
Include                 = ks.inf
Needs                   = KS.Registration
AddReg                  = ATIDACXX.AddReg,ATIDACXX.PinNameRegistration
CopyFiles               = ATIDACXX.CopyFiles

[ATIDACXX.Interfaces]
AddInterface            = %KSCATEGORY_CAPTURE%,"GLOBAL",ATIDACXX_Interface,

[ATIDACXX.Services]
AddService              = ATIDACXX,2,ATIDACXX.ServiceInstall

;---------------------------------------------------------------------------
; Common Install
[ATIDACXX.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,atidacxx.sys
HKR,,OkToHibernate,3,01
; Disable driver page out
HKR,,PageOutWhenUnopened,3,0
;HKR,,PageOutWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKLM,System\CurrentControlSet\Control\MediaCategories\%PinPCMAudio.GUID%,Display,1, 00,00,00,00
HKLM,System\CurrentControlSet\Control\MediaCategories\%PinPCMAudio.GUID%,Name,,%PinPCMAudio%
; extra regs
; Default to tuner input
HKR,"DriverData","InputSelect",0x00010001,   0x00,0x00,0x00,0x00
; 48 KHz operation
HKR,"DriverData","SampleRate" ,0x00010001,   0x80,0xBB,0x00,0x00

[ATIDACXX.PinNameRegistration]
HKLM,%MediaCategories%\%PinAnalogAudioIn.GUID%,Name,,%PinAnalogAudioIn%

;------------------------------
[ATIDACXX.CopyFiles]
atidacxx.sys

;------------------------------
[ATIDACXX_Interface]
AddReg                  = ATIDACXX_Interface.AddReg

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

;------------------------------
[ATIDACXX.ServiceInstall]
DisplayName             = %ATIDACXX.DeviceDesc%
ServiceType             = %SERVICE_KERNEL_DRIVER%
StartType               = %SERVICE_DEMAND_START%
ErrorControl            = %SERVICE_ERROR_NORMAL%
ServiceBinary           = %10%\system32\drivers\atidacxx.sys


;===========================================================================
; STRINGS
;===========================================================================

[Strings]
;---------------------------------------------------------------------------
; Common
Mfg                         = "ATI Technologies"
DiskId                      = "ATI DTV Wonder Driver Installation Disk"

; Specify the GUID for the Ksproxy plugin..
Proxy.CLSID                 = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

; Others
RunOnce                     = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

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

;---------------------------------------------------------------------------
; Analog Video Capture
ATIDVCXX.DeviceDesc         = "ATI DTV Wonder Analog AV Capture Device"

KSCATEGORY_CAPTURE          = "{65e8773d-8f56-11d0-a3b9-00a0c9223196}"
ATIDVCXX_VIDEOCAP.FriendlyName = "ATI DTV Wonder Analog AV Capture"

KSCATEGORY_TVAUDIO          = "{a799a802-a46d-11d0-a18c-00a02401dcd4}"
ATIDVCXX_TVAUDIO.FriendlyName  = "ATI DTV Wonder Analog TV Audio"

GUID.AUDIO_OUT              = "{EDB51ACA-8A62-402f-8B88-047FD813DCC5}"
Node.AudioOut               = "Audio Capture"

;---------------------------------------------------------------------------
; Digital & Analog Unified Tuner
ATIDTUXX.DeviceDesc         = "ATI DTV Wonder Digital And Analog Tuner Device"

KSCATEGORY_TVTUNER          = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
KSSTRING_ATIDTUXX_ANALOG    = "{5964E22F-A6C1-4169-9DCF-AB41982706AF}"
ATIDTUXX_ANALOG.FriendlyName= "ATI DTV Wonder Analog TV Tuner"

KSCATEGORY_BDATUNER         = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSSTRING_ATIDTUXX_DIGITAL   = "{CEADFFE0-F344-41b6-B58C-C165FCEB22C7}"
ATIDTUXX_DIGITAL.DeviceId   = "{828B00F0-9A04-4692-8573-535B05DFF3F4}"
ATIDTUXX_DIGITAL.FriendlyName= "ATI DTV Wonder Digital BDA Tuner"

;---------------------------------------------------------------------------
; Analog AV Crossbar
ATIDXBXX.DeviceDesc         = "ATI DTV Wonder Analog AV Crossbar Device"

KSCATEGORY_CROSSBAR         = "{a799a801-a46d-11d0-a18c-00a02401dcd4}"
ATIDXBXX.FriendlyName       = "ATI DTV Wonder Analog AV Crossbar"

; Crossbar Input Settings
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}"

;---------------------------------------------------------------------------
; Digital Video Capture
ATIDDCXX.DeviceDesc         = "ATI DTV Wonder Digital BDA Capture Device"

KSCATEGORY_BDARECEIVER      = "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"
KSSTRING_ATIDDCXX           = "{074649FE-2DD8-4c12-8A23-BD828BADFFFA}"
ATIDDCXX.DeviceId           = "{AA7F4F0A-A95B-42d1-B9DD-EE3AC9AB39A8}"
ATIDDCXX.FriendlyName       = "ATI DTV Wonder Digital BDA Capture"

;---------------------------------------------------------------------------
; Analog Audio Capture
ATIDACXX.DeviceDesc         = "ATI DTV Wonder Analog Audio Capture Device"

;KSCATEGORY_CAPTURE         = "{65e8773d-8f56-11d0-a3b9-00a0c9223196}"
ATIDACXX.FriendlyName       = "ATI DTV Wonder Analog Audio Capture"

; Audio Pin Specification
MediaCategories             = "SYSTEM\CurrentControlSet\Control\MediaCategories"
PinAnalogAudioIn            = "Analog Audio In"
PinAnalogAudioIn.GUID       = "{04394D28-52A7-4c46-AED0-65D62CC64DA6}"
PinPCMAudio                 = "PCM Audio"
PinPCMAudio.GUID            = "{27C304E1-80F6-11d5-AFD4-0001032B6C31}"

