; Installation inf for the Intel CE9500 USB DVB-T receiver
;
; (c) Copyright 2006 Intel Corporation
;

[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%INTEL%
DriverVer=04/30/2008,2.1.0.136
CatalogFile=ce9500enh.cat

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
ce9500enh.sys = 1,,


;===========================Device Install===========================

[Manufacturer]
%MfgName%=IntelCorp

[IntelCorp]
; Intel CE9500 DVB-T Receiver
%DeviceDesc%=CE9500.Dev, USB\VID_8086&PID_9500

[DestinationDirs]
CE9500.Files.Ext = 10,System32\Drivers

[CE9500.Dev.NT]
; The Include and Needs lines cause the installation support devices
; and registration of required DShow categories.
Include     = ks.inf, kscaptur.inf, bda.inf
Needs       = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT
CopyFiles=CE9500.Files.Ext


;==========================Service install for the device=================

[CE9500.Dev.NT.Services]
Addservice = CE9500, 0x00000002, CE9500.AddService, Logging.AddService

[CE9500.AddService]
DisplayName    = %CE9500.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\ce9500enh.sys
AddReg         = CE9500.AddReg
LoadOrderGroup = Base

[CE9500.Files.Ext]
ce9500enh.sys

[Logging.AddService]
AddReg         = Logging.AddReg

[Logging.AddReg]
HKR,,EventMessageFile,0x00020000,"%10%\System32\iologmsg.dll;%10%\System32\Drivers\ce9500enh.sys"
HKR,,TypesSupported,0x00010001,7


;===============================BDA Specifc Entries======================

[CE9500.Dev.NT.Interfaces]
; Add an interface for each type of filter exposed by this device driver.
; The format of each line is as follows
;
; AddInterface = DSHOW_CATEGORY, FILTER_REFERENCE_GUID, INSTALLATION_SECTION
;
; DSHOW_CATEGORY is the GUID for the Direct Show category in which the
; filter should appear.  A filter that appears in multiple categories should
; have a line for each category.
;
; FILTER_REFERENC_GUID should be the same as the ReferenceGuid in the
; the KSFILTER_DESCRIPTOR for the filter.
;
; INSTALLATION_SECTION specifies the section that the installer should call
; to add the ring 3 filter class to the registry.  Except for legacy analog
; tuner and crossbar, all BDA filters should specify KSProxy as the ring 3
; filter class.
;
AddInterface = %KSCATEGORY_BDARECEIVER%, %KSSTRING_CE9500CaptureFilter%, CE9500.Dev.CaptureFilter
AddInterface = %KSCATEGORY_BDATUNER%, %KSSTRING_CE9500TunerFilter%, CE9500.Dev.TunerFilter

[CE9500.Dev.CaptureFilter]
; This is the install section for the CE9500 filter.
;
AddReg = CE9500.Dev.CaptureFilter.AddReg

[CE9500.Dev.TunerFilter]
; This is the install section for the CE9500 filter.
;
AddReg = CE9500.Dev.TunerFilter.AddReg

[CE9500.Dev.TunerFilter.AddReg]
; The BDA tuner driver uses KSProxy for its ring 3 filter class.
;
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CE9500.TunerFilterDesc%

[CE9500.Dev.CaptureFilter.AddReg]
; The BDA tuner driver uses KSProxy for its ring 3 filter class.
;
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CE9500.CaptureFilterDesc%

;=====================================Strings=================================

[Strings]
INTEL="IntelCorp"
Disk_Description="BDA Installation Disk for CE6230-based DVB receivers"
MfgName="Intel Corporation (UK)"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
FLG_ADDREG_TYPE_DWORD=0x00010001
FLG_ADDREG_TYPE_SZ=0x00000000
FLG_ADDREG_BINVALUETYPE=0x00000001

CE9500.SvcDesc="CE9500.Sys (Enh) driver"
DeviceDesc="Intel CE9500 DVB-T (Enh) Receiver"
CE9500.TunerFilterDesc="Intel CE9500 DVB-T"
CE9500.CaptureFilterDesc="Intel CE9500 Capture"


;=====================================KS Entries=================================

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

; Specify the GUID for the BDA Receiver Filters category in GraphEdit.
;
KSCATEGORY_BDARECEIVER="{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"

; Specify the GUID for the BDA Source Filters category in GraphEdit.
;
KSCATEGORY_BDATUNER="{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"		

; Specify the GUID for the first tuner Filter.
; NOTE!  This must match the reference guid specified in the driver's filter descriptor.
;
KSSTRING_CE9500TunerFilter="{265A9505-317B-4356-BE48-70648F875BEE}"
KSSTRING_CE9500CaptureFilter="{1B176C51-80EB-4a8f-811E-F2D6AFCD6F62}"


;=====================================Config Entries=================================

[CE9500.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ce9500.sys

HKR,"Parameters\0\Demod", "Type",          %FLG_ADDREG_TYPE_SZ%,      "Internal"
HKR,"Parameters\0\Demod", "Address",       %FLG_ADDREG_TYPE_DWORD%,   0x0000000f
HKR,"Parameters\0\Demod", "Enable",	       %FLG_ADDREG_TYPE_DWORD%,   0x00000000
HKR,"Parameters\0\Demod", "TunerAddress",  %FLG_ADDREG_TYPE_DWORD%,   0x00000263
HKR,"Parameters\0\Demod", "Overrides",     %FLG_ADDREG_BINVALUETYPE%, 0x9c,0xa1,0xba,0xfd,0x7c,0x2b
HKR,"Parameters\0\Demod", "Version",       %FLG_ADDREG_TYPE_DWORD%,   0x00020100

HKR,"Parameters\0\Demod\Clocks", "Input", %FLG_ADDREG_TYPE_DWORD%, 24000
HKR,"Parameters\0\Demod\Clocks", "Ctl0",  %FLG_ADDREG_TYPE_DWORD%, 0x00000044
HKR,"Parameters\0\Demod\Clocks", "Ctl1",  %FLG_ADDREG_TYPE_DWORD%, 0x00000034
HKR,"Parameters\0\Demod\Clocks", "PLL0",  %FLG_ADDREG_TYPE_DWORD%, 0x0000000e
HKR,"Parameters\0\Demod\Clocks", "PLL1",  %FLG_ADDREG_TYPE_DWORD%, 0x0000000f

HKR,"Parameters\0\Tuner", "Type",          %FLG_ADDREG_TYPE_SZ%,      "MXL5005"
HKR,"Parameters\0\Tuner", "Name",          %FLG_ADDREG_TYPE_SZ%,      "MaxLinear MXL5005"
HKR,"Parameters\0\Tuner", "IfFreq",        %FLG_ADDREG_TYPE_DWORD%,   4570
HKR,"Parameters\0\Tuner", "RefFreq",       %FLG_ADDREG_TYPE_DWORD%,   16000
HKR,"Parameters\0\Tuner", "MinFreq",       %FLG_ADDREG_TYPE_DWORD%,   50
HKR,"Parameters\0\Tuner", "MaxFreq",       %FLG_ADDREG_TYPE_DWORD%,   858
HKR,"Parameters\0\Tuner", "RssiWeighting", %FLG_ADDREG_BINVALUETYPE%, 0x00,0x01,0xea
HKR,"Parameters\0\Tuner", "Version",       %FLG_ADDREG_TYPE_DWORD%,   0x00010000
HKR,"Parameters\0\Tuner", "Rssi",          %FLG_ADDREG_BINVALUETYPE%, \
			0x0e,0xf8,0xff,0xff,0xf6,0xff,0x17,0xf8,0xff,0xff,0xd8,0xff,0x1e,0xf8,0xff,0xff,0xba,0xff,\
			0x27,0xf8,0xff,0xff,0x9c,0xff,0x36,0xf8,0xff,0xff,0x7e,0xff,0x4c,0xf8,0xff,0xff,0x60,0xff,\
			0x68,0xf8,0xff,0xff,0x42,0xff,0x8b,0xf8,0xff,0xff,0x24,0xff,0xb0,0xf8,0xff,0xff,0x06,0xff,\
			0xcc,0xf8,0xff,0xff,0xe8,0xfe,0xe4,0xf8,0xff,0xff,0xca,0xfe,0x05,0xf9,0xff,0xff,0xac,0xfe,\
			0x2e,0xf9,0xff,0xff,0x8e,0xfe,0x4d,0xf9,0xff,0xff,0x70,0xfe,0x59,0xf9,0xff,0xff,0x52,0xfe,\
			0x78,0xf9,0xff,0xff,0x34,0xfe,0x93,0xf9,0xff,0xff,0x16,0xfe,0xa1,0xf9,0xff,0xff,0xf8,0xfd,\
			0xb5,0xf9,0xff,0xff,0xda,0xfd,0xbf,0xf9,0xff,0xff,0xbc,0xfd,0xde,0xf9,0xff,0xff,0x9e,0xfd,\
			0xfb,0xf9,0xff,0xff,0x80,0xfd,0x0a,0xfa,0xff,0xff,0x62,0xfd,0x16,0xfa,0xff,0xff,0x44,0xfd,\
			0x36,0xfa,0xff,0xff,0x26,0xfd,0x54,0xfa,0xff,0xff,0x08,0xfd,0x6b,0xfa,0xff,0xff,0xea,0xfc,\
			0x79,0xfa,0xff,0xff,0xcc,0xfc,0x89,0xfa,0xff,0xff,0xae,0xfc,0xa0,0xfa,0xff,0xff,0x90,0xfc,\
			0xbf,0xfa,0xff,0xff,0x72,0xfc,0xda,0xfa,0xff,0xff,0x54,0xfc,0xf0,0xfa,0xff,0xff,0x36,0xfc,\
			0x1e,0xfb,0xff,0xff,0x18,0xfc,0x51,0xfb,0xff,0xff,0xfa,0xfb,0x7d,0xfb,0xff,0xff,0xdc,0xfb,\
			0xa9,0xfb,0xff,0xff,0xbe,0xfb

HKR,"Parameters\0\Tuner\AGC", "AgcIfSlope",      %FLG_ADDREG_TYPE_DWORD%, 0x00000001
HKR,"Parameters\0\Tuner\AGC", "AgcIfTarget",     %FLG_ADDREG_TYPE_DWORD%, 0x00000035
HKR,"Parameters\0\Tuner\AGC", "AgcNoLockPeriod", %FLG_ADDREG_TYPE_DWORD%, 0x00000003
HKR,"Parameters\0\Tuner\AGC", "AgcIfLoLim",      %FLG_ADDREG_TYPE_DWORD%, 0x0000007f
HKR,"Parameters\0\Tuner\AGC", "AgcIfMax",        %FLG_ADDREG_TYPE_DWORD%, 0x0000004c
HKR,"Parameters\0\Tuner\AGC", "AgcIfMin",        %FLG_ADDREG_TYPE_DWORD%, 0x00000019
HKR,"Parameters\0\Tuner\AGC", "AgcIfK",          %FLG_ADDREG_TYPE_DWORD%, 0x00000019


HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "DebugFlags",	%FLG_ADDREG_TYPE_DWORD%, 0x0000010f
HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "DebugLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x0000000a
HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "MinInfoLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "MinWarnLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "MinErrorLevel",%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{1ef8b805-f219-471f-b27f-baa15396ce8b}", "Module", %FLG_ADDREG_TYPE_SZ%, "DVB-T Filter"

HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "DebugFlags",	%FLG_ADDREG_TYPE_DWORD%, 0x0000000f
HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "DebugLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "MinInfoLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "MinWarnLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "MinErrorLevel",%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{26a4191b-5865-4da1-81bc-bc808a89857e}", "Module", %FLG_ADDREG_TYPE_SZ%, "DvbAdapter"

HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "DebugFlags",	%FLG_ADDREG_TYPE_DWORD%, 0x0000000f
HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "DebugLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "MinInfoLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "MinWarnLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "MinErrorLevel",%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{56fb9536-401c-4f0a-b884-028fd130c933}", "Module", %FLG_ADDREG_TYPE_SZ%, "CHardware"

HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "DebugFlags",	%FLG_ADDREG_TYPE_DWORD%, 0x00000010
HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "DebugLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "MinInfoLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "MinWarnLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "MinErrorLevel",%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{74b7554a-2802-43b5-b580-7861fd70a721}", "Module", %FLG_ADDREG_TYPE_SZ%, "CDevice"

HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "DebugFlags",	%FLG_ADDREG_TYPE_DWORD%, 0x00000010
HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "DebugLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "MinInfoLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "MinWarnLevel",	%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "MinErrorLevel",%FLG_ADDREG_TYPE_DWORD%, 0x00000005
HKR,"Debug\{442ea6d0-093e-4e7b-8e3d-acbb175b2271}", "Module", %FLG_ADDREG_TYPE_SZ%, "Capture Filter"

