[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider="DVR"
DriverVer=07/22/2010, 4.0.0
CatalogFile=cxathena64.cat

[Manufacturer]
"Conexant"=Conexant, NTx86, NTamd64

[SourceDisksNames]
1="Conexant CX25821 Drivers",,,""

[SourceDisksFiles]
cxathena64.sys=1
;mg1264.bin=1
;cxathena.ax=1
;cxvidcvt.ax=1
;cxaudsep.ax=1
;Dump.ax=1

[Conexant.NTx86]
%CX25821.Athena%=CX25821.AthenaTen,PCI\VEN_14F1&DEV_8200&SUBSYS_00000000

[Conexant.NTamd64]
%CX25821.Athena%=CX25821.AthenaTen,PCI\VEN_14F1&DEV_8200&SUBSYS_00000000

[CX25821.AthenaTen]
;Include=    ks.inf, kscaptur.inf, wdmaudio.inf
;Needs=      KS.Registration,KSCAPTUR.Registration.NT, WDMAUDIO.Registration 
;AddReg=     Athena_Common.AddReg,AthenaXBAR.AddReg
CopyFiles=  Athena.CopyDrivers
;RegisterDlls=DSFilters.RegDLL

[DestinationDirs]
Athena.CopyDrivers=10,system32\drivers
DSFilters.CopyFiles=11

[Athena.CopyDrivers]
cxathena64.sys
;mg1264.bin


[DSFilters.CopyFiles]
CxAthena.ax
cxvidcvt.ax
cxaudsep.ax
Dump.ax

[DSFilters.RegDLL]
11,,CxAthena.ax,1
11,,cxvidcvt.ax,1
11,,cxaudsep.ax,1
11,,Dump.ax,1

[Athena_Common.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,cxathena64.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%

;
;Register the name of the 656 and MPEG pins
;
HKLM,%MediaCategories%\%GUID.PINNAME_656_OUT%,Name,,%PinName.656_OUT%
HKLM,%MediaCategories%\%GUID.PINNAME_656_IN%,Name,,%PinName.656_IN%
HKLM,%MediaCategories%\%GUID.PINNAME_MPEG_OUT%,Name,,%PinName.MpegOut%

;Video standard default NTSC_M
HKR,"DriverData","VideoStandard",0x00010001, 0x01,0x00,0x00,0x00

;Mobilygen Enable - FALSE
HKR,"DriverData","EncoderEnable",0x00010001, 0x01, 0x00, 0x00, 0x00

;Multiple instances default to disable
HKR,"DriverData","EnableMultiInstances",0x00010001, 0x00, 0x00, 0x00, 0x00

;Add the property pages
HKCR,CLSID\%GUID.General_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.General_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_VERSION_PROPERTIES%\PropertyPages\%GUID.General_Properties%,,,

HKCR,CLSID\%GUID.Camera_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.Camera_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_CAMERA_PROPERTIES%\PropertyPages\%GUID.Camera_Properties%,,,

HKCR,CLSID\%GUID.Gain_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.Gain_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_GAIN_PROPERTIES%\PropertyPages\%GUID.Gain_Properties%,,,

HKCR,CLSID\%GUID.Color_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.Color_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_COLOR_PROPERTIES%\PropertyPages\%GUID.Color_Properties%,,,

HKCR,CLSID\%GUID.FPS_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.FPS_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_FPS_PROPERTIES%\PropertyPages\%GUID.FPS_Properties%,,,

HKCR,CLSID\%GUID.Upstrm_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.Upstrm_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_UPSTRM_PROPERTIES%\PropertyPages\%GUID.Upstrm_Properties%,,,

HKCR,CLSID\%GUID.Encoder_Properties%\InprocServer32,,,CxAthena.ax
HKCR,CLSID\%GUID.Encoder_Properties%\InprocServer32,ThreadingModel,,Both
HKLM,%MediaSets%\%GUID.ATHENA_ENCODER_PROPERTIES%\PropertyPages\%GUID.Encoder_Properties%,,,

;Register the encoder and multiplexer classes with Direct X
HKCR,%ActiveMovieCategories%\%GUID.Encoder%,CLSID,,%GUID.Encoder%
HKCR,%ActiveMovieCategories%\%GUID.Encoder%,FriendlyName,,%Category_Encoders%
HKCR,%ActiveMovieCategories%\%GUID.Multiplexer%,CLSID,,%GUID.Multiplexer%
HKCR,%ActiveMovieCategories%\%GUID.Multiplexer%,FriendlyName,,%Category_Multiplexers%

;Register the names of the encoder and multiplexer nodes
HKLM,%MediaCategories%\%GUID.Encoder%,Name,,%Node.Encoder%
HKLM,%MediaCategories%\%GUID.Encoder%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%GUID.Multiplexer%,Name,,%Node.Multiplexer%
HKLM,%MediaCategories%\%GUID.Multiplexer%,Display,1,00,00,00,00

;
; Driver Configuration Registry Entries
;

;-------------------------------------------------------------------
; Crossbar AddReg sections
;
;---Crossbar registry values---
;
; Note: For each pin on the crossbar, specify the following:
;
; (1) Pin type 
;     0 - Composite 
;     2 - SVideo 
;     3 - Component
;
; (2) InputMux (optional) - input mux to use for the selected pin
;     in 0xAA, 0xBB, 0xCC, 0x00 format
;     where AA is the input mux for Composite/S-Video Luma/Component Luma
;           BB is the input mux for Tuner Audio/S-Video Chroma/Component YPr
;           CC is the input mux for Component YPb
;
; (3) InputChannel (optional, but required if InputMux present) - Input channel to use for mux 
;     in 0xAA, 0xBB, 0xCC, 0xDD format
;     where AA is the input channel for Composite/S-Video Luma/Component Luma
;           BB is the input channel for Tuner Audio/S-Video Chroma/Component YPr
;           CC is the input channel for Component YPb 
;           DD = 1 if dual ADC2 mode required, zero if single mode
;
; (4) RelatedPinIndex 

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

[AthenaXBAR.AddReg]

;---Crossbar registry values---


;Pin 0 - Composite 
; Input Mux: 7 
HKR,"DriverData\XBarPin0","PinType",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","InputMux",0x00010001, 0x07,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","InputChannel",0x00010001, 0x01,0x00,0x00,0x00
HKR,"DriverData\XBarPin0","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00

;Pin 3 - Audio Line In 1
; Related PinIndex: Composite 0 - Pin0
HKR,"DriverData\XBarPin1","PinType",0x00010001, 0x03,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","GpioPin",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin1","GpioValue",0x00010001, 0x00,0x00,0x00,0x00

;Pin 4 - Audio Line In 2
; Related PinIndex: Composite 0 - Pin0
HKR,"DriverData\XBarPin2","PinType",0x00010001, 0x04,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","RelatedPinIndex",0x00010001, 0x00,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","GpioPin",0x00010001, 0x02,0x00,0x00,0x00
HKR,"DriverData\XBarPin2","GpioValue",0x00010001, 0x01,0x00,0x00,0x00

;Composite input is the default
HKR,"DriverData","VideoInputPin",0x00010001, 0x00,0x00,0x00,0x00

;---Video Decoder and Camera setup registry values---

; VDEC_A 
HKR,"DriverData","DurationVDEC_0",0x00010001, 0x78,0x00,0x00,0x00
; VDEC_B 
HKR,"DriverData","DurationVDEC_1",0x00010001, 0x78,0x00,0x00,0x00
; VDEC_C 
HKR,"DriverData","DurationVDEC_2",0x00010001, 0x78,0x00,0x00,0x00
; VDEC_D 
HKR,"DriverData","DurationVDEC_3",0x00010001, 0x78,0x00,0x00,0x00

; Camera enabled list default for cameras: 1,2,3 and 4 
HKR,"DriverData","CameraList",0x00010001, 0x0F,0x00,0x00,0x00

; Line-locked Camera list 
HKR,"DriverData","LineLockedCameraList",0x00010001, 0x00,0x00,0x00,0x00

; Master duration for all active decoders
HKR,"DriverData","MasterDuration",0x00010001, 0x00,0x00,0x00,0x00

; Enable all cameras swicth
HKR,"DriverData","EnableAllCameras",0x00010001, 0x00,0x00,0x00,0x00

; Rotate display sequence
HKR,"DriverData","RotateDisplaySequence",0x00010001, 0x01,0x00,0x00,0x00

; Number cameras
HKR,"DriverData","CameraCount",0x00010001, 0x04,0x00,0x00,0x00

; Current selected camera for manual gain control.
HKR,"DriverData","GainCtrlCameraSelected",0x00010001, 0x00,0x00,0x00,0x00 


; Current selected decoder for video color control.
HKR,"DriverData","ColorDecoderSelected",0x00010001, 0x00,0x00,0x00,0x00


;
; Interfaces installation
;

;
; Video
;
[CX25821.AthenaTen.Interfaces]
Needs=VID.Interfaces

[VID.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},%KsNameFilter%,CX821VID_Interface,
AddInterface={a799a801-a46d-11d0-a18c-00a02401dcd4},%XBARReferenceGUID%,CX821XBAR_Interface,
AddInterface=%GUID.Encoder%,%EncoderReferenceGuid%,ENCODER_Interface,
AddInterface=%GUID.Multiplexer%,%EncoderReferenceGuid%,ENCODER_Interface,

[CX821VID_Interface]
AddReg=CX821VID_Interface.AddReg

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

[CX821XBAR_Interface]
AddReg=CX821XBAR_Interface.AddReg

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

[ENCODER_Interface]
AddReg=ENCODER_Interface.AddReg

[ENCODER_Interface.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%EncoderFriendlyName%
;Add an interface for Microsoft's video bit rate property set
HKR,Interfaces\{B43C4EEC-8C32-4791-9102-508ADA5EE8E7},,,
HKR,Interfaces\{b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c},,,
HKR,Capabilities,,,
HKR,Capabilities,"{BB4FAA02-596C-4129-8FB3-74E75421FA02}", 0x00010001,1

;
; Services installation
;
[CX25821.AthenaTen.Services]
AddService = CXATHENA,2,VID.ServiceInstall


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

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

[Strings]
KsNameFilter                 = "{9B365890-165F-11D0-A195-0020AFD156E4}"
Proxy.CLSID                  = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
CX25821.DeviceDesc           = "Video Capture Device 64bit(CX25820)"
CX25821.Athena               = "Video Capture Device 64bit(CX25820)"
VIDFriendlyName              = "Video Capture Device 64bit(CX25820)"
MediaCategories              = "SYSTEM\CurrentControlSet\Control\MediaCategories"
MediaInterfaces              = "System\CurrentControlSet\Control\MediaInterfaces"
MediaSets                    = "System\CurrentControlSet\Control\MediaSets"
ActiveMovieCategories        = "CLSID\{da4e3da0-d07d-11d0-bd50-00a0c911ce86}\Instance"

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"

XBARFriendlyName             = "Conexant CX25821 Crossbar"
XBARReferenceGUID            = "{77F656DA-696D-407c-BA1C-50E4457C12E8}"

EncoderFriendlyName          = "Conexant 25821 Mobilygen Encoder"
EncoderReferenceGuid         = "{1C10193D-7DCA-4f55-99D8-B017AAD3921D}"
GUID.Encoder                 = "{19689BF6-C384-48fd-AD51-90E58C79F70B}"
GUID.Multiplexer             = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}"
Category_Encoders            = "WDM Streaming Encoder Devices"
Category_Multiplexers        = "WDM Streaming Multiplexer Devices"
Node.Encoder                 = "Encoder"
Node.Multiplexer             = "Multiplexer"
GUID.PINNAME_656_IN          = "{DFD530C7-36D9-47ff-B838-9A11D215B140}"
PinName.656_IN               = "656"
GUID.PINNAME_656_OUT         = "{E2EEB283-EB84-4910-BABE-037FFBB03249}"
PinName.656_OUT              = "656"
GUID.PINNAME_MPEG_OUT        = "{78216A81-CFA8-493e-9711-36A61C08BD9D}"
PinName.MpegOut              = "MPEG"

GUID.ATHENA_VERSION_PROPERTIES  = "{A9B2A90B-D6E0-4f0b-B273-EB3D7FFFAB85}"
GUID.General_Properties         = "{063108C1-C019-4d4a-8145-7C7A8AA1E700}"

GUID.ATHENA_CAMERA_PROPERTIES  = "{54531E3A-B3F9-4fcd-B935-2776798BDA36}"
GUID.Camera_Properties         = "{1060EEB5-410F-46b4-84C7-8EDAC377295B}"

GUID.ATHENA_GAIN_PROPERTIES     = "{51235F9C-68F5-4a18-8D6A-24F4D136FA3A}"
GUID.Gain_Properties            = "{997F814E-AD6E-4cdb-B55A-7D3BFC811C03}"

GUID.ATHENA_COLOR_PROPERTIES     = "{18206CA0-2FCD-4667-AD2B-A39B65CFE235}"
GUID.Color_Properties            = "{2C34F7A7-7A17-4cd6-8FEA-7A7E8E6B7A0E}"

GUID.ATHENA_FPS_PROPERTIES     = "{AE522E27-6A05-483f-B1A2-B89ED21AB36E}"
GUID.FPS_Properties            = "{2990F8B6-DED1-4393-94A8-B23DCE881BCC}"

GUID.ATHENA_UPSTRM_PROPERTIES  = "{253B7604-88E1-4c25-8DE0-20E8FDB1BC82}"
GUID.Upstrm_Properties         = "{430A1534-DD69-4bf8-A053-BB4759C66F16}"

GUID.ATHENA_ENCODER_PROPERTIES  = "{D6B4EA16-65D1-45bc-B1DE-8C8B3628BE6F}"
GUID.Encoder_Properties         = "{0B6EEFEF-BB0C-4c7e-BC1F-0792E25C1DB8}"
