[Version] 
Signature = "$Windows NT$" 
CLASS=Media
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%OEM% 
DriverVer=12/02/2020,1.1.0.81
CatalogFile = hifntamd64.cat


[DestinationDirs] 
USBSPDIF.Files.ntx86 = 12 
USBSPDIF.Files.ntamd64 = 12 

[SourceDisksNames]
0=%Desc_ntx860%


[_AddReg_ClassInstall]
HKR,,,,"%USBSPDIFDesc%"
HKR,,Icon,,"-5"

[SourceDisksFiles.x86]
uac2cmb.sys=0 

[SourceDisksFiles.amd64]
uac2cmb64.sys=0 


[Manufacturer] 
%OEM%=OEM,ntx86,ntamd64,NT

[OEM.ntx86]
%USBSPDIFDesc%=USBSPDIF_Inst,USB\VID_16D0&PID_0A23
[OEM.ntamd64]
%USBSPDIFDesc%=USBSPDIF_Inst,USB\VID_16d0&PID_0A23,CCGPDriverInstall,


[USBSPDIF_Inst.ntx86] 
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles = USBSPDIF.Files.ntx86 
AddReg=USBSPDIF_Inst.ntx86.AddReg
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration

[USBSPDIF_Inst.ntamd64] 
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles = USBSPDIF.Files.ntamd64
AddReg=USBSPDIF_Inst.ntamd64.AddReg
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration

[CCGPDriverInstall.NT]
Include=usb.inf
Needs=Composite.Dev.NT
AddReg=CCGPDriverInstall.AddReg

[CCGPDriverInstall.NT.Services]
Include=usb.inf
Needs=Composite.Dev.NT.Services

[CCGPDriverInstall.AddReg]
HKR,,EnumeratorClass,0x00000001,01,0x00,0x00


[USBSPDIF_Inst.ntx86.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,uac2cmb.sys
HKR,,NTMPDriver,,"uac2cmb.sys,sbemul.sys"
HKR,,SetupPreferredAudioDevices,3,00,00,00,00
HKLM,%MediaCategories%\%Simple.NameGuid%,Name,,%Simple.Name%
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,,%USBSPDIF_Inst.DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%USBSPDIF_Inst.DeviceDesc%
HKR,,PageOutWhenUnopened,3,01


[USBSPDIF_Inst.ntamd64.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,uac2cmb64.sys
HKR,,NTMPDriver,,"uac2cmb64.sys,sbemul.sys"
HKR,,SetupPreferredAudioDevices,3,00,00,00,00
HKLM,%MediaCategories%\%Simple.NameGuid%,Name,,%Simple.Name%
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,,%USBSPDIF_Inst.DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%USBSPDIF_Inst.DeviceDesc%
HKR,,PageOutWhenUnopened,3,01



[USBSPDIF_Inst.ntx86.Interfaces]
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,MSVAD.I.Wave
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topology%,MSVAD.I.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,MSVAD.I.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,MSVAD.I.Wave

[USBSPDIF_Inst.ntamd64.Interfaces]
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,MSVAD.I.Wave
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topology%,MSVAD.I.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,MSVAD.I.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,MSVAD.I.Wave


[USBSPDIF_Inst.ntx86.Services] 
AddService = uac2cmb,0x00000002,USBSPDIF_Service_Inst.ntx86, 

[USBSPDIF_Inst.ntamd64.Services] 
Include=usb.inf
AddService = uac2cmb64,0x00000002,USBSPDIF_Service_Inst.ntamd64, 


[USBSPDIF_Service_Inst.ntx86] 
ServiceType = %SERVICE_KERNEL_DRIVER% 
StartType = %SERVICE_DEMAND_START% 
ErrorControl = %SERVICE_ERROR_IGNORE% 
ServiceBinary = %12%\uac2cmb.sys 



[USBSPDIF_Service_Inst.ntamd64] 
ServiceType = %SERVICE_KERNEL_DRIVER% 
StartType = %SERVICE_DEMAND_START% 
ErrorControl = %SERVICE_ERROR_IGNORE% 
ServiceBinary = %12%\uac2cmb64.sys 



[USBSPDIF.Files.ntamd64] 
uac2cmb64.sys


[USBSPDIF.Files.ntx86] 
uac2cmb.sys




;======================================================
; COMMON
;======================================================
[MSVAD.I.Wave]
AddReg=MSVAD.I.Wave.AddReg
[MSVAD.I.Wave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%MSVAD.Wave.szPname%

[MSVAD.I.Topo]
AddReg=MSVAD.I.Topo.AddReg
[MSVAD.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%MSVAD.Topo.szPname%

[Strings] 

;  *******Localizable Strings******* 
OEM= "Amanero UAC2" 
Desc_ntx860= "USB Amanero UAC2 Disk Driver" 
USBSPDIFDesc= "Amanero UAC2" 
USBSPDIF_Inst.DeviceDesc="Amanero UAC2"

MSVAD.Wave.szPname="Amanero UAC2 Streaming"
MSVAD.Topo.szPname="Amanero UAC2 Topology"

;  *******Non Localizable Strings******* 

Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_TOPOLOGY="{DDA54A40-1E4C-11D1-A050-405705C10000}"

KSNAME_Wave="Wave"
KSNAME_Topology="Topology"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

Simple.NameGuid="{1A26EC07-5CF6-499f-90E7-A3DB8310519A}"
Simple.Name="Amanero UAC2 Streaming"


SERVICE_BOOT_START = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED = 0x4 

SERVICE_KERNEL_DRIVER = 0x1 
SERVICE_ERROR_IGNORE = 0x0 
SERVICE_ERROR_NORMAL = 0x1 
SERVICE_ERROR_SEVERE = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ = 0x00020000 
REG_DWORD = 0x00010001 
