;
;C-Media USB Audio Class 1.0/2.0 UAA Driver
;

[Version]
signature="$WINDOWS NT$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%CMEDIA%
Catalogfile=CMUAC.cat
DriverVer=07/14/2011,6.0.1.16

[SourceDisksNames]
1000=%cdname%,,,

[SourceDisksFiles.x86]
CMUAC.SYS=1000,\x86
CMEffectGFX.dll=1000,\x86
CMEffectLFX.dll=1000,\x86
CMMicEffectLFX.dll=1000,\x86
CMEffectPropPage.dll=1000,\x86

[SourceDisksFiles.amd64]
CMUAC.SYS=1000,\x64
CMEffectGFX.dll=1000,\x64
CMEffectLFX.dll=1000,\x64
CMMicEffectLFX.dll=1000,\x64
CMEffectPropPage.dll=1000,\x64

[DestinationDirs]
DefaultDestDir=12
CMUAC.CopyFiles=12
SfxFx.CopyList=11     ; %windir%\system32

[Manufacturer]
%CMEDIA%=C-MEDIA,NTamd64

[C-MEDIA]
%CMUAC.DeviceDesc%=CMUAC,USB\VID_0D8C&PID_0102&MI_00
%CMUAC.DeviceDesc%=CMUAC,USB\VID_0D8C&PID_016F&MI_00
%CMUAC.DeviceDesc%=CMUAC,USB\VID_2516&PID_9494&MI_00

[C-MEDIA.NTamd64]
%CMUAC.DeviceDesc%=CMUAC,USB\VID_0D8C&PID_0102&MI_00
%CMUAC.DeviceDesc%=CMUAC,USB\VID_0D8C&PID_016F&MI_00
%CMUAC.DeviceDesc%=CMUAC,USB\VID_2516&PID_9494&MI_00

;---------------------------------------------------------------
;                x 86  D D I n s t a l l
;---------------------------------------------------------------

[CMUAC]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
AddReg=CMUAC.AddReg
AddProperty=OEMCustomBranding.AddProperty
CopyFiles=CMUAC.CopyFiles, SfxFx.CopyList
RegisterDlls=SfxFx.RegisterDlls

;---------------------------------------------------------------
;                A M D 64  D D I n s t a l l
;---------------------------------------------------------------

[CMUAC.NTamd64]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
AddReg=CMUAC.AddReg
AddProperty=OEMCustomBranding.AddProperty
CopyFiles=CMUAC.CopyFiles, SfxFx.CopyList
RegisterDlls=SfxFx.RegisterDlls

[OEMCustomBranding.AddProperty]
DeviceVendorWebSite,,,,"http://www.cmedia.com.tw" ; Place your URL here
;---------------------------------------------------------------
;                I n t e r f a c e s
;---------------------------------------------------------------

[CMUAC.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPEAKER.WAVE%,Audio.I.SPEAKER.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_SPEAKER.WAVE%,Audio.I.SPEAKER.WAVE
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPEAKER.TOPO%,Audio.I.SPEAKER.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_SPEAKER.TOPO%,Audio.I.SPEAKER.TOPO

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MICIN.WAVE%,Audio.I.MICIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MICIN.WAVE%,Audio.I.MICIN.WAVE
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MICIN.TOPO%,Audio.I.MICIN.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_MICIN.TOPO%,Audio.I.MICIN.TOPO

[CMUAC.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPEAKER.WAVE%,Audio.I.SPEAKER.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_SPEAKER.WAVE%,Audio.I.SPEAKER.WAVE
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPEAKER.TOPO%,Audio.I.SPEAKER.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_SPEAKER.TOPO%,Audio.I.SPEAKER.TOPO

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MICIN.WAVE%,Audio.I.MICIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_MICIN.WAVE%,Audio.I.MICIN.WAVE
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_MICIN.TOPO%,Audio.I.MICIN.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_MICIN.TOPO%,Audio.I.MICIN.TOPO

[Audio.I.SPEAKER.WAVE]
AddReg=CMUAC.I.SPEAKER.WAVE.AddReg

[Audio.I.MICIN.WAVE]
AddReg=CMUAC.I.MICIN.WAVE.AddReg

[Audio.I.SPEAKER.TOPO]
AddReg=CMUAC.I.SPEAKER.TOPO.AddReg, SysFx.AddReg, OEMSettingsOverride.AddReg

[Audio.I.MICIN.TOPO]
AddReg=CMUAC.I.MICIN.TOPO.AddReg, SysFx.CaptureMic.AddReg, OEMSettingsOverride.AddReg

;---------------------------------------------------------------
;                A d d R e g
;---------------------------------------------------------------
[CMUAC.AddReg]
HKR,,Driver,,CMUAC.sys
HKR,,AssociatedFilters,,"wdmaud"
HKR,Drivers,SubClasses,,"wave,mixer"
HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%CMUAC.Audio.DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%CMUAC.Audio.DeviceDesc%

[CMUAC.I.SPEAKER.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CMUAC.SPEAKER.WAVE.szPname%

[CMUAC.I.MICIN.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CMUAC.MICIN.WAVE.szPname%

[CMUAC.I.SPEAKER.TOPO.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CMUAC.SPEAKER.TOPO.szPname%

[CMUAC.I.MICIN.TOPO.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%CMUAC.MICIN.TOPO.szPname%

[SysFx.AddReg]
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_SPEAKER%

HKR,"FX\\1",%PKEY_ItemNameDisplay%,,%SYSFX_FriendlyName%
HKR,"FX\\1",%PKEY_SYSFX_PreMixClsid%,,%SYSFX_PREMIX_CLSID%
HKR,"FX\\1",%PKEY_SYSFX_PostMixClsid%,,%SYSFX_POSTMIX_CLSID%
HKR,"FX\\1",%PKEY_SYSFX_UiClsid%,,%SYSFX_UI_CLSID%
HKR,"FX\\1",%PKEY_SYSFX_Association%,,%KSNODETYPE_SPDIF_INTERFACE%

[SysFx.CaptureMic.AddReg]
HKR,"FX\\0",%PKEY_ItemNameDisplay%,,%SYSFX_FriendlyName%
HKR,"FX\\0",%PKEY_SYSFX_PreMixClsid%,,%SYSFX_PREMIX_CLSID_MIC%
HKR,"FX\\0",%PKEY_SYSFX_UiClsid%,,%SYSFX_UI_CLSID%
HKR,"FX\\0",%PKEY_SYSFX_Association%,,%KSNODETYPE_MICROPHONE%

[OEMSettingsOverride.AddReg]
HKR,"EP\\0", %PKEY_AudioEngine_OEMFormat%, %REG_BINARY%, 41,00,8C,70,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,EE,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71

[OEMSettingsOverrideSPDIF.AddReg]
HKR,"EP\\0", %PKEY_AudioEndpoint_Association%,,%KSNODETYPE_SPDIF_INTERFACE%
HKR,"EP\\0", %PKEY_AudioEngine_OEMFormat%, %REG_BINARY%, 41,00,8C,70,28,00,00,00,FE,FF,02,00,80,BB,00,00,00,EE,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,00,00,00,10,00,80,00,00,AA,00,38,9B,71

;---------------------------------------------------------------
;                Copy Files
;---------------------------------------------------------------

[CMUAC.CopyFiles]
CMUAC.SYS

[SfxFx.CopyList]
CMEffectGFX.dll,,,0x00000020
CMEffectLFX.dll,,,0x00000020
CMMicEffectLFX.dll,,,0x00000020
CMEffectPropPage.dll,,,0x00000020

;---------------------------------------------------------------
;                S e r v i c e s  
;---------------------------------------------------------------

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

[CMUAC.NTamd64.Services]
AddService=CMUAC, 0x00000002, CMUAC.ServiceInstall

[CMUAC.ServiceInstall]
DisplayName=%CMUAC.DeviceDesc%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\CMUAC.SYS

;---------------------------------------------------------------
; 	Register custom SYSFX and property page
;---------------------------------------------------------------
[SfxFx.RegisterDlls]
11,,CMEffectGFX.dll,1
11,,CMEffectLFX.dll,1
11,,CMMicEffectLFX.dll,1
11,,CMEffectPropPage.dll,1

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

[Strings]
; non-localizeable
Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_TOPOLOGY = "{DDA54A40-1E4C-11D1-A050-405705C10000}" ; non-localizable
KSCATEGORY_REALTIME = "{EB115FFC-10C8-4964-831D-6DCB02E6F23F}" ; non-localizable

KSNAME_SPEAKER.WAVE="SPKOut00Wave"
KSNAME_SPEAKER.TOPO="SPKOut00Topo"
KSNAME_MICIN.WAVE="MicIn00Wave"
KSNAME_MICIN.TOPO="MicIn00Topo"


SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
REG_DWORD=0x00010001

;localizeable
CMEDIA="C-MEDIA Inc."
CMUAC.DeviceDesc="USB Audio Class 1.0 and 2.0 Device Driver"
CMUAC.SPEAKER.WAVE.szPname="CMUAC Speaker"
CMUAC.MICIN.WAVE.szPname="CMUAC MicIn"
CMUAC.SPEAKER.TOPO.szPname="CMUAC Speaker Mixer"
CMUAC.MICIN.TOPO.szPname="CMUAC MicIn Mixer"
CMUAC.Audio.DeviceDesc="CMUAC Audio"
cdname="USB Audio Class 2.0 Device Installation Disk"


;; These are the name strings for the wave miniports displayed in mmsys.cpl
;;
PrimaryDeviceName  = "CM6400X1 USB Device"

KSNODETYPE_ANY      			  = "{00000000-0000-0000-0000-000000000000}"
KSNODETYPE_SPEAKER  			  = "{DFF21CE1-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_LINE_CONNECTOR 		  = "{DFF21FE3-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_HEADSET_SPEAKERS               = "{DFF21CE6-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_HEADPHONES                     = "{DFF21CE2-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_DESKTOP_SPEAKER                = "{DFF21CE4-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_SPDIF_INTERFACE                = "{DFF21FE5-F70F-11D0-B917-00A0C9223196}"
KSNODETYPE_MICROPHONE 			  = "{DFF21BE1-F70F-11D0-B917-00A0C9223196}"

;;
;; PropertyKey GUIDS
;;

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_ControlPanelPageProvider = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},1"
PKEY_AudioEndpoint_Association  = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},2"

PKEY_AudioEngine_OEMFormat = "{E4870E26-3CC5-4CD2-BA46-CA0A9A70ED04},3"

AUDIOENDPOINT_EXT_UI_CLSID = "{6C57B2A2-91F5-4b90-93D5-FAB82485ECA6}"

SYSFX_UI_CLSID      = "{47FFB27D-2916-46bd-8238-27B0C6232C5A}"
SYSFX_PREMIX_CLSID  = "{B48DEA3F-D962-425a-8D9A-9A5BB37A9904}"
SYSFX_PREMIX_CLSID_MIC  = "{5123F0D9-6AD5-47ea-8C99-145EE9633CE1}"
SYSFX_POSTMIX_CLSID = "{B4184CB7-DB0A-48de-B597-571AFF61718A}"
SYSFX_FriendlyName  = "CMedia Audio with System Effects"

REG_BINARY          = 0x00000001
