;
;TempoTec Corp Fantasia Usb Audio Driver
;

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

[SourceDisksNames]
1000=%cdname%,,,

[SourceDisksFiles.x86]
TEMPOTEC_DAII.sys=1000,\x86

[SourceDisksFiles.amd64]
TEMPOTEC_DAII.sys=1000,\x64

[DestinationDirs]
DefaultDestDir=12
TEMPOTEC_DAII.CopyFiles=12

[SignatureAttributes]
TEMPOTEC_DAII.sys=SignatureAttributes.DRM

[SignatureAttributes.DRM]
DRMLevel=1300

[Manufacturer]
%ManufacturerString%=ManufacturerID,NTamd64

[ManufacturerID]
%TEMPOTEC_DAII.DeviceDesc%=TEMPOTEC_DAII,USB\VID_22E1&PID_CA03&MI_00

[ManufacturerID.NTamd64]
%TEMPOTEC_DAII.DeviceDesc%=TEMPOTEC_DAII,USB\VID_22E1&PID_CA03&MI_00

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

[TEMPOTEC_DAII]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration,mssysfx.CopyFilesAndRegister
DelReg=TEMPOTEC_DAII.DelReg
AddReg=TEMPOTEC_DAII.AddReg, TEMPOTEC_DAII_NAMES.AddReg
AddProperty=TEMPOTEC_DAIIBranding.AddProperty
CopyFiles=TEMPOTEC_DAII.CopyFiles

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

[TEMPOTEC_DAII.NTamd64]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration,mssysfx.CopyFilesAndRegister
DelReg=TEMPOTEC_DAII.DelReg
AddReg=TEMPOTEC_DAII.AddReg, TEMPOTEC_DAII_NAMES.AddReg
AddProperty=TEMPOTEC_DAIIBranding.AddProperty
CopyFiles=TEMPOTEC_DAII.CopyFiles

[TEMPOTEC_DAIIBranding.AddProperty]
DeviceVendorWebSite,,,,"http://www.tempotec.com.cn" ; Place your URL here

;---------------------------------------------------------------
;                I n t e r f a c e s
;---------------------------------------------------------------

[TEMPOTEC_DAII.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_SPDIFOUT.WAVE%,Audio.I.SPDIFOUT.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_SPDIFOUT.WAVE%,Audio.I.SPDIFOUT.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_HPOUT.WAVE%,Audio.I.HPOUT.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_HPOUT.WAVE%,Audio.I.HPOUT.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_RECIN.WAVE%,Audio.I.RECIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_RECIN.WAVE%,Audio.I.RECIN.WAVE

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

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_LINEIN.WAVE%,Audio.I.LINEIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_LINEIN.WAVE%,Audio.I.LINEIN.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPDIFIN.WAVE%,Audio.I.SPDIFIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_SPDIFIN.WAVE%,Audio.I.SPDIFIN.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_GLOBAL.TOPO%,Audio.I.GLOBAL.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_GLOBAL.TOPO%,Audio.I.GLOBAL.TOPO

[TEMPOTEC_DAII.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_SPDIFOUT.WAVE%,Audio.I.SPDIFOUT.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_SPDIFOUT.WAVE%,Audio.I.SPDIFOUT.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_HPOUT.WAVE%,Audio.I.HPOUT.WAVE
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_HPOUT.WAVE%,Audio.I.HPOUT.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_RECIN.WAVE%,Audio.I.RECIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_RECIN.WAVE%,Audio.I.RECIN.WAVE

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

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_LINEIN.WAVE%,Audio.I.LINEIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_LINEIN.WAVE%,Audio.I.LINEIN.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_SPDIFIN.WAVE%,Audio.I.SPDIFIN.WAVE
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_SPDIFIN.WAVE%,Audio.I.SPDIFIN.WAVE

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_GLOBAL.TOPO%,Audio.I.GLOBAL.TOPO
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_GLOBAL.TOPO%,Audio.I.GLOBAL.TOPO

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

[Audio.I.SPDIFOUT.WAVE]
AddReg=TEMPOTEC_DAII.I.SPDIFOUT.WAVE.AddReg

[Audio.I.HPOUT.WAVE]
AddReg=TEMPOTEC_DAII.I.HPOUT.WAVE.AddReg

[Audio.I.RECIN.WAVE]
AddReg=TEMPOTEC_DAII.I.RECIN.WAVE.AddReg

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

[Audio.I.LINEIN.WAVE]
AddReg=TEMPOTEC_DAII.I.LINEIN.WAVE.AddReg

[Audio.I.SPDIFIN.WAVE]
AddReg=TEMPOTEC_DAII.I.SPDIFIN.WAVE.AddReg

[Audio.I.GLOBAL.TOPO]
AddReg=TEMPOTEC_DAII.I.GLOBAL.TOPO.AddReg, SysFx.AddReg, TEMPOTEC_DAII.EPProperties.AddReg

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

[TEMPOTEC_DAII_NAMES.AddReg]
HKLM,%MediaCategories%\%TEMPOTEC_DAIIGUID.SpdifOut%,Name,,%TEMPOTEC_DAIINode.SpdifOut%
HKLM,%MediaCategories%\%TEMPOTEC_DAIIGUID.SpdifOut%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%TEMPOTEC_DAIIGUID.SpdifIn%,Name,,%TEMPOTEC_DAIINode.SpdifIn%
HKLM,%MediaCategories%\%TEMPOTEC_DAIIGUID.SpdifIn%,Display,1,00,00,00,00

HKLM,%MediaCategories%\%HDAGuidStereoMixPin%,Name,,%HDAStereoMixPinName%
HKLM,%MediaCategories%\%HDAGuidStereoMixPin%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%HDAGuidAuxInPin%,Name,,%HDAAuxInPinName%
HKLM,%MediaCategories%\%HDAGuidAuxInPin%,Display,1,00,00,00,00

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

[TEMPOTEC_DAII.I.SPDIFOUT.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.SPDIFOUT.WAVE.szPname%

[TEMPOTEC_DAII.I.HPOUT.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.HPOUT.WAVE.szPname%

[TEMPOTEC_DAII.I.RECIN.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.RECIN.WAVE.szPname%

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

[TEMPOTEC_DAII.I.LINEIN.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.LINEIN.WAVE.szPname%

[TEMPOTEC_DAII.I.SPDIFIN.WAVE.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.SPDIFIN.WAVE.szPname%

[TEMPOTEC_DAII.I.GLOBAL.TOPO.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%TEMPOTEC_DAII.GLOBAL.TOPO.szPname%

[TEMPOTEC_DAII.EPProperties.AddReg]
HKR,"EP\\0",%PKEY_AudioEndpoint_Association%,,%KSNODETYPE_ANY%
HKR,"EP\\0",%PKEY_AudioEndpoint_Supports_EventDriven_Mode%,0x00010001,0x1

[SysFx.AddReg]
HKR,"FX\\0",%PKEY_ItemNameDisplay%,,%FX_FriendlyName%
HKR,"FX\\0",%PKEY_FX_PreMixClsid%,,%FX_PREMIX_CLSID%
HKR,"FX\\0",%PKEY_FX_PostMixClsid%,,%FX_POSTMIX_CLSID%
HKR,"FX\\0",%PKEY_FX_UiClsid%,,%FX_UI_CLSID%
HKR,"FX\\0",%PKEY_FX_Association%,,%KSNODETYPE_SPEAKER%

HKR,"FX\\1",%PKEY_ItemNameDisplay%,,%FX_FriendlyName%
HKR,"FX\\1",%PKEY_FX_PreMixClsid%,,%FX_PREMIX_CLSID%
HKR,"FX\\1",%PKEY_FX_PostMixClsid%,,%FX_POSTMIX_CLSID%
HKR,"FX\\1",%PKEY_FX_UiClsid%,,%FX_UI_CLSID%
HKR,"FX\\1",%PKEY_FX_Association%,,%KSNODETYPE_HEADPHONES%

HKR,"FX\\2",%PKEY_ItemNameDisplay%,,%FX_FriendlyName%
HKR,"FX\\2",%PKEY_FX_PreMixClsid%,,%FX_PREMIX_CLSID%
HKR,"FX\\2",%PKEY_FX_PostMixClsid%,,%FX_POSTMIX_CLSID%
HKR,"FX\\2",%PKEY_FX_UiClsid%,,%FX_UI_CLSID%
HKR,"FX\\2",%PKEY_FX_Association%,,%KSNODETYPE_DESKTOP_SPEAKER%

HKR,"FX\\3",%PKEY_ItemNameDisplay%,,%FX_FriendlyName%
HKR,"FX\\3",%PKEY_FX_PreMixClsid%,,%FX_PREMIX_CLSID%
HKR,"FX\\3",%PKEY_FX_PostMixClsid%,,%FX_POSTMIX_CLSID%
HKR,"FX\\3",%PKEY_FX_UiClsid%,,%FX_UI_CLSID%
HKR,"FX\\3",%PKEY_FX_Association%,,%KSNODETYPE_HEADSET_SPEAKERS%

;---------------------------------------------------------------
;                D e l R e g
;---------------------------------------------------------------

[TEMPOTEC_DAII.DelReg]
HKR,Settings

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

[TEMPOTEC_DAII.CopyFiles]
TEMPOTEC_DAII.sys

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

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

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

[TEMPOTEC_DAII.ServiceInstall]
DisplayName=%TEMPOTEC_DAII.SvcDesc%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\TEMPOTEC_DAII.sys

;---------------------------------------------------------------
;                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_SPDIFOUT.WAVE="SPDIFOut00Wave"
KSNAME_SPDIFOUT.TOPO="SPDIFOut00Topo"
KSNAME_HPOUT.WAVE="HPOut00Wave"
KSNAME_HPOUT.TOPO="HPOut00Topo"
KSNAME_RECIN.WAVE="RecIn00Wave"
KSNAME_RECIN.TOPO="RecIn00Topo"
KSNAME_MICIN.WAVE="MicIn00Wave"
KSNAME_MICIN.TOPO="MicIn00Topo"
KSNAME_LINEIN.WAVE="LineIn00Wave"
KSNAME_LINEIN.TOPO="LineIn00Topo"
KSNAME_SPDIFIN.WAVE="SPDIFIn00Wave"
KSNAME_SPDIFIN.TOPO="SPDIFIn00Topo"
KSNAME_GLOBAL.TOPO="GlobalTopo"


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

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

;localizeable
TEMPOTEC_DAIIGUID.SpdifOut	="{12C15946-BA58-42c1-9F11-8341E2198622}"
TEMPOTEC_DAIIGUID.SpdifIn		="{017D895C-7AE7-4f4d-B78C-CD1FFC0CE776}"
HDAGuidStereoMixPin 			    ="{8c5716e6-c984-492e-a2fb-1385f2d0f3c9}"
HDAGuidAuxInPin 			        ="{5f4bb488-a646-408a-9265-8647f9c374d4}"

CMEDIA="C-MEDIA Inc."
ManufacturerString="TempoTec Corp"
TEMPOTEC_DAII.DeviceDesc="Fantasia Usb Audio"
TEMPOTEC_DAII.SvcDesc="Tempotec USB Audio Service"
TEMPOTEC_DAII.SPEAKER.WAVE.szPname="Speaker"
TEMPOTEC_DAII.SPDIFOUT.WAVE.szPname="SpdifOut"
TEMPOTEC_DAII.HPOUT.WAVE.szPname="Headphone"
TEMPOTEC_DAII.RECIN.WAVE.szPname="Capture"
TEMPOTEC_DAII.MICIN.WAVE.szPname="MicIn"
TEMPOTEC_DAII.LINEIN.WAVE.szPname="LineIn"
TEMPOTEC_DAII.SPDIFIN.WAVE.szPname="SpdifIn"
TEMPOTEC_DAII.SPEAKER.TOPO.szPname="Speaker Mixer"
TEMPOTEC_DAII.SPDIFOUT.TOPO.szPname="SpdifOut Mixer"
TEMPOTEC_DAII.HPOUT.TOPO.szPname="Headphone Mixer"
TEMPOTEC_DAII.RECIN.TOPO.szPname="Capture Mixer"
TEMPOTEC_DAII.MICIN.TOPO.szPname="MicIn Mixer"
TEMPOTEC_DAII.LINEIN.TOPO.szPname="LineIn Mixer"
TEMPOTEC_DAII.SPDIFIN.TOPO.szPname="SpdifIn Mixer"
TEMPOTEC_DAII.GLOBAL.TOPO.szPname="Global Mixer"
TEMPOTEC_DAII.Audio.DeviceDesc="Fantasia Usb Audio Audio"
cdname="TempoTec Corp Fantasia Usb Audio Installation Disk"
TEMPOTEC_DAIINode.SpdifOut="SPDIF Out"
TEMPOTEC_DAIINode.SpdifIn="SPDIF In"
HDAStereoMixPinName="Stereo Mix"
HDAAuxInPinName="Aux In"

;; These are the name strings for the wave miniports displayed in mmsys.cpl
;;

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_FX_Association          = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},0"
PKEY_FX_PreMixClsid          = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},1"
PKEY_FX_PostMixClsid         = "{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},2"
PKEY_FX_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_AudioEndpoint_Supports_EventDriven_Mode = "{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E},7"

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

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

FX_UI_CLSID      = "{5860E1C5-F95C-4a7a-8EC8-8AEF24F379A1}"
FX_PREMIX_CLSID  = "{62dc1a93-ae24-464c-a43e-452f824c4250}"
FX_POSTMIX_CLSID = "{637c490d-eee3-4c0a-973f-371958802da2}"

FX_FriendlyName  = "Microsoft Audio Home Theater Effects"

REG_BINARY          = 0x00000001
