;------------------------------------------------------------------------------
; C0130Aud.INF -- Creative Camera Model Number VC0130 installation
; Copyright (c) 2009 Creative Technology Ltd. All rights reserved.
;------------------------------------------------------------------------------

[Version]
Signature =$Windows NT$
Class =Media
ClassGuid ={4D36E96C-E325-11CE-BFC1-08002BE10318}
Provider =%Provider%
CatalogFile =C0130Aud.cat
DriverVer =07/06/2009,%VersionNumber%

[SourceDisksNames]
1 =%DiskDescription%

[SourceDisksFiles]
CTAFX32.dll    =1
CTAFX64.dll    =1
C0130Afx.dll   =1
C0130Afx.sys   =1
C0130Afx64.sys =1

[DestinationDirs]
DefaultDestDir =11 ; %SystemRoot%\system32
CtlCam.CopyKnlDrv.XP       =10,System32\Drivers
CtlCam.CopyKnlDrv.XP64     =10,System32\Drivers
CtlCam.CopyUserDrv         =11
CtlCam.CopyUserDrv.WOW     =10,SysWow64
CtlCam.CopyUserDrv.Vista   =11
CtlCam.CopyKnlDrv.Vista64  =10,System32\Drivers
CtlCam.CopyUserDrv.Vista64 =11

[ControlFlags]
ExcludeFromSelect =*

[Manufacturer]
%Provider% =Creative,NTamd64.5.1,NTx86.6,NTamd64.6

[Creative]
%AudioDeviceDescription% =CtlCamAud.XP,USB\VID_041E&PID_405B&MI_01

[Creative.NTamd64.5.1]
%AudioDeviceDescription% =CtlCamAud.XP64,USB\VID_041E&PID_405B&MI_01

[Creative.NTx86.6] ; for Windows Vista x86 and later
%AudioDeviceDescription% =CtlCamAud.Vista,USB\VID_041E&PID_405B&MI_01

[Creative.NTamd64.6] ; for Windows Vista amd64 and later
%AudioDeviceDescription% =CtlCamAud.Vista64,USB\VID_041E&PID_405B&MI_01

[CtlCamAud.XP]
CopyFiles =CtlCam.CopyKnlDrv.XP,CtlCam.CopyUserDrv
AddReg =CtlCamAud.XP.AddReg
Include =wdma_usb.inf,ks.inf,wdmaudio.inf
Needs =USBAudio.NT,KS.Registration,WDMAUDIO.Registration

[CtlCamAud.XP64]
CopyFiles =CtlCam.CopyKnlDrv.XP64,CtlCam.CopyUserDrv.WOW
AddReg =CtlCamAud.XP.AddReg
Include =wdma_usb.inf,ks.inf,wdmaudio.inf
Needs =USBAudio.NT,KS.Registration,WDMAUDIO.Registration

[CtlCamAud.Vista]
Include=ks.inf, wdmaudio.inf, wdma_usb.inf
Needs=KS.Registration, WDMAUDIO.Registration, USBAudioOEM.CopyFiles, USBAudioOEM.AddReg
CopyFiles =CtlCam.CopyUserDrv,CtlCam.CopyUserDrv.Vista
AddReg =CtlCamAud.Vista.AddReg
RegisterDlls=CTAFx.RegisterDlls.Vista

[CtlCamAud.Vista64]
Include=ks.inf, wdmaudio.inf, wdma_usb.inf
Needs=KS.Registration, WDMAUDIO.Registration, USBAudioOEM.CopyFiles, USBAudioOEM.AddReg
CopyFiles =CtlCam.CopyUserDrv.WOW,CtlCam.CopyUserDrv.Vista64,CtlCam.CopyKnlDrv.Vista64,
AddReg =CtlCamAud.Vista.AddReg
RegisterDlls=CTAFx.RegisterDlls.Vista64

;XP========================================================================

[CtlCamAud.XP.Services]
AddService =%AFXFilterServiceName%,,AFXFilter.ServiceInstall
Include =wdma_usb.inf
Needs =USBAudio.NT.Services

[CtlCamAud.XP64.Services]
AddService =%AFXFilterServiceName%,,AFXFilter.ServiceInstall
Include =wdma_usb.inf
Needs =USBAudio.NT.Services

[CtlCamAud.XP.HW]
AddReg =AudioFilter.AddReg

[CtlCamAud.XP64.HW]
AddReg =AudioFilter.AddReg

[CtlCamAud.XP.Interfaces]
AddInterface =%KSCATEGORY_AUDIO%,GLOBAL,CtlCamAud.Interface
AddInterface =%KSCATEGORY_CAPTURE%,GLOBAL,CtlCamAud.Interface
AddInterface =%KSCATEGORY_RENDER%,GLOBAL,CtlCamAud.Interface

[CtlCamAud.XP64.Interfaces]
AddInterface =%KSCATEGORY_AUDIO%,GLOBAL,CtlCamAud.Interface
AddInterface =%KSCATEGORY_CAPTURE%,GLOBAL,CtlCamAud.Interface
AddInterface =%KSCATEGORY_RENDER%,GLOBAL,CtlCamAud.Interface

[CtlCamAud.XP.AddReg]
HKR,,DriverDesc,,%AudioDeviceDescription%
HKR,,FriendlyName,,%AudioDeviceDescription%
HKLM,Software\Creative Tech\Web Cameras\Noise Cancellation,,,

[AudioFilter.AddReg]
HKR,,UpperFilters,%FLG_ADDREG_APPEND&FLG_ADDREG_TYPE_MULTI_SZ%,%AFXFilterServiceName%
HKR,,DriverDesc,,%AudioDeviceDescription%
HKR,,FriendlyName,,%AudioDeviceDescription%

[CtlCamAud.Interface]
AddReg =CtlCamAud.Interface.AddReg

[CtlCamAud.Interface.AddReg]
HKR,,FriendlyName,,%AudioDeviceDescription%
HKR,,CurveType,%FLG_ADDREG_BINVALUETYPE%,01,00,00,00
HKR,,CLSID,,%Proxy.CLSID%
HKR,,Reserved,%FLG_ADDREG_TYPE_DWORD%,%AUDIO_EFFECTS_SUPPORT%


[AFXFilter.ServiceInstall]
DisplayName =%AFXFilterServiceDisplayName%
Description =%AFXFilterServiceDescription%" "%AudioDeviceDescription%.
ServiceType =%SERVICE_KERNEL_DRIVER%
StartType =%SERVICE_DEMAND_START%
ErrorControl =%SERVICE_ERROR_NORMAL%
ServiceBinary =%12%\%AFXFilterServiceName%.sys

;Vista========================================================================

[CtlCamAud.Vista.Services]
Include =wdma_usb.inf
Needs =USBAudio.Services

[CtlCamAud.Vista64.Services]
Include =wdma_usb.inf
Needs =USBAudio.Services

[CtlCamAud.Vista.HW]
AddReg =AudioFilter.Vista.AddReg

[CtlCamAud.Vista64.HW]
AddReg =AudioFilter.Vista.AddReg

[CtlCamAud.Vista.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,"GLOBAL",CtlCamAud.Vista.Interface
AddInterface=%KSCATEGORY_RENDER%,"GLOBAL",CtlCamAud.Vista.Interface
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",CtlCamAud.Vista.Interface

[CtlCamAud.Vista64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,"GLOBAL",CtlCamAud.Vista.Interface
AddInterface=%KSCATEGORY_RENDER%,"GLOBAL",CtlCamAud.Vista.Interface
AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",CtlCamAud.Vista.Interface

[CtlCamAud.Vista.AddReg]
HKR,,DriverDesc,,%AudioDeviceDescription%
HKR,,FriendlyName,,%AudioDeviceDescription%
HKLM,Software\Creative Tech\Web Cameras\Noise Cancellation,,,

[AudioFilter.Vista.AddReg]
HKR,,DriverDesc,,%AudioDeviceDescription%
HKR,,FriendlyName,,%AudioDeviceDescription%

[CtlCamAud.Vista.Interface]
AddReg=CtlCamAud.Interface.AddReg,CtlCamAud.Vista.SysFx.Render
DelReg=CtlCamAud.Vista.SysFx.Render.DelReg

[CtlCamAud.Vista.SysFx.Render]
HKR,"FX\\0",%PKEY_ItemNameDisplay%,,%SYSFX_FriendlyName%
HKR,"FX\\0",%PKEY_SYSFX_PreMixClsid%,,%SYSFX_PREMIX_CLSID%
HKR,"FX\\0",%PKEY_SYSFX_PostMixClsid%,,%SYSFX_POSTMIX_CLSID%
;;HKR,"FX\\0",%PKEY_SYSFX_UiClsid%,,%SYSFX_UI_CLSID%
HKR,"FX\\0",%PKEY_SYSFX_Association%,,%KSNODETYPE_ANY%
HKR,"FX\\0",%PKEY_AudioEndpoint_Disable_SysFx%,0x00010001,0
HKR,"FX\\0","{78161BAE-71FF-4bd2-AE42-60E708274054},0",0x00010001,%AUDIO_EFFECTS_SUPPORT% ;Creative custom PKEY

[CtlCamAud.Vista.SysFx.Render.DelReg]
HKR,"FX\\0",%PKEY_SYSFX_UiClsid%

[CTAFx.RegisterDlls.Vista]
11,,CTAFX32.dll,1

[CTAFx.RegisterDlls.Vista64]
11,,CTAFX64.dll,1

;==============================================================================

[CtlCam.CopyKnlDrv.XP]
C0130Afx.sys,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyKnlDrv.XP64]
C0130Afx.sys,C0130Afx64.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyUserDrv]
C0130Afx.dll,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyUserDrv.WOW]
C0130Afx.dll,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyUserDrv.Vista]
CTAFX32.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyKnlDrv.Vista64]
; temporary workaround for software first installation fails in Vista 64
C0130Afx.sys,C0130Afx64.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[CtlCam.CopyUserDrv.Vista64]
CTAFX64.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Strings]
Proxy.CLSID                ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO           ="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_CAPTURE         ="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_RENDER          ="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSNODETYPE_ANY             = "{00000000-0000-0000-0000-000000000000}"
KSNODETYPE_MICROPHONE      = "{DFF21BE1-F70F-11D0-B917-00A0C9223196}"

NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY =0x00000060
SERVICE_KERNEL_DRIVER                  =1
SERVICE_DEMAND_START                   =0x3
SERVICE_ERROR_NORMAL                   =0x1
FLG_ADDREG_BINVALUETYPE                =0x00000001
FLG_ADDREG_TYPE_MULTI_SZ               =0x00010000
FLG_ADDREG_APPEND&FLG_ADDREG_TYPE_MULTI_SZ =0x00010008
FLG_ADDREG_TYPE_DWORD                  =0x00010001

;Information for FX
PKEY_SYSFX_Association           = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},0"
PKEY_SYSFX_PreMixClsid           = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},1"
PKEY_SYSFX_PostMixClsid          = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},2"
PKEY_SYSFX_UiClsid               = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},3"
PKEY_ItemNameDisplay             = "{B725F130-47EF-101A-A5F1-02608C9EEBAC},10"
PKEY_AudioEndpoint_Disable_SysFx = "{1da5d803-d492-4edd-8c23-e0c0ffee7f0e},5"
PKEY_AudioEndpoint_Ext_UiClsid   = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},1"
PKEY_AudioEndpoint_Association   = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"
PKEY_AudioEndpoint_ControlPanelPageProvider = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E}"

SYSFX_UI_CLSID                   = "{00000000-0000-0000-0000-000000000000}"
SYSFX_PREMIX_CLSID               = "{A7A3723C-EC2A-443a-9EC0-DD97BA011CDF}"
SYSFX_POSTMIX_CLSID              = "{00000000-0000-0000-0000-000000000000}"
;; Change the following name to any name you want
SYSFX_FriendlyName               = "Creative VC0130 Audio Enhancements"

AudioDeviceDescription           ="VC0130 Live! Cam Notebook Ultra"
AFXFilterServiceDisplayName      ="Creative Camera VC0130 Audio Effects Driver"
AFXFilterServiceDescription      ="Provides a software interface to control audio effects of"
AFXFilterServiceName             ="C0130Afx"

AUDIO_EFFECTS_SUPPORT            =0x3

Provider                         ="Creative Technology Ltd."
DiskDescription                  ="Creative Camera VC0130 Driver Disk"

VersionNumber ="1.04.01.00" ; Release on 07/06/2009.
