; Installation inf for the AIRA MODULAR
;
; Copyright (c) 2015 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1165.CAT
DriverVer=04/06/2015,1.00.00.0000

;---------------------------------------------------------------;

[DestinationDirs]
RDID0165.Files.Asio	= 11
RDID0165.Files.User	= 11
RDID0165.Files.Inst	= 11
RDID0165.Files.As32	= 10,syswow64
RDID0165.Files.Ext	= 10,system32\drivers ; %SystemRoot%\system32\drivers
DefaultDestDir 	    = 10,system32\drivers ; %SystemRoot%\system32\drivers

[SourceDisksNames]
1=%RDID0165DiskName%,,

[SourceDisksFiles]
RDWM1165.SYS=1
RDAS1165.DLL=1
RDDP1165.EXE=1
RDCP1165.CPL=1
RDCI1165.DLL=1
RDAW1165.DLL=1
RDAH1165.DAT=1

;---------------------------------------------------------------;

[Manufacturer]
%MfgName%=Roland,NTamd64.6.2,NTamd64.6.3

;[ControlFlags]
;ExcludeFromSelect=*

[Roland]
;; Windows7 - Windows XP 64
;; not supported

[Roland.NTamd64.6.2]
%RDID0165DeviceDesc%=RDID0165Install, USB\VID_0582&PID_01AF ; AIRA MODULAR

[Roland.NTamd64.6.3]
%RDID0165DeviceDesc%=RDID0165Install, USB\VID_0582&PID_01AF ; AIRA MODULAR

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

[RDID0165Install.NTamd64]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=RDID0165.Files.User,RDID0165.Files.Ext,RDID0165.Files.Asio,RDID0165.Files.As32
AddReg=RDID0165AddReg

[RDID0165Install.NTamd64.CoInstallers]
AddReg=RDID0165CoInstallers.AddReg
CopyFiles=RDID0165.Files.Inst

[RDID0165CoInstallers.AddReg]
HKR,,CoInstallers32,%REG_MSZ%,"RdCi1165.dll,ProcCoInst"

[RDID0165AddReg]
HKR,,DevLoader,,"*ntkern"
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,rdwm1165.sys
HKR,,NTMPDriver,,"rdwm1165.sys"

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,,%RDID0165DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%RDID0165DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%RDID0165DeviceDesc%

HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Name,,%WDM.Tp11.szPname%
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Name,,%WDM.Tp12.szPname%
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Name,,%WDM.Tp13.szPname%
HKLM,%MediaCategories%\%WDM.Tp14.szPname.GUID%,Name,,%WDM.Tp14.szPname%
HKLM,%MediaCategories%\%WDM.Tp15.szPname.GUID%,Name,,%WDM.Tp15.szPname%
HKLM,%MediaCategories%\%WDM.Tp16.szPname.GUID%,Name,,%WDM.Tp16.szPname%
HKLM,%MediaCategories%\%WDM.Tp17.szPname.GUID%,Name,,%WDM.Tp17.szPname%

HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp14.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp15.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp16.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp17.szPname.GUID%,Display,1,00,00,00,00


[RDID0165Install.NTamd64.Services]
AddService = RDID1165, 0x00000002, RDID0165_Service_Inst

[RDID0165_Service_Inst]
DisplayName   = %RDID0165DeviceDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\Drivers\rdwm1165.sys

;;;
;;
[RDID0165.Files.Ext]
RDWM1165.sys

[RDID0165.Files.User]
RDCP1165.CPL
RDDP1165.EXE

[RDID0165.Files.Inst]
RDCI1165.DLL

[RDID0165.Files.Asio]
RDAS1165.DLL

[RDID0165.Files.As32]
RDAW1165.DLL
RDAH1165.DAT


[RDID0165Install.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wo11%, WDM.Interface.Wo11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wo11%, WDM.Interface.Wo11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wo11%, WDM.Interface.Wo11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wo12%, WDM.Interface.Wo12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wo12%, WDM.Interface.Wo12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wo12%, WDM.Interface.Wo12
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wo13%, WDM.Interface.Wo13
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wo13%, WDM.Interface.Wo13
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wo13%, WDM.Interface.Wo13
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wo14%, WDM.Interface.Wo14
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wo14%, WDM.Interface.Wo14
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wo14%, WDM.Interface.Wo14
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wo15%, WDM.Interface.Wo15
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wo15%, WDM.Interface.Wo15
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wo15%, WDM.Interface.Wo15

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wi11%, WDM.Interface.Wi11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi11%, WDM.Interface.Wi11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi11%, WDM.Interface.Wi11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wi12%, WDM.Interface.Wi12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi12%, WDM.Interface.Wi12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi12%, WDM.Interface.Wi12
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wi13%, WDM.Interface.Wi13
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi13%, WDM.Interface.Wi13
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi13%, WDM.Interface.Wi13
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wi14%, WDM.Interface.Wi14
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi14%, WDM.Interface.Wi14
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi14%, WDM.Interface.Wi14
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wi15%, WDM.Interface.Wi15
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi15%, WDM.Interface.Wi15
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi15%, WDM.Interface.Wi15

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md12%, WDM.Interface.Md12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md12%, WDM.Interface.Md12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md12%, WDM.Interface.Md12

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Topology%,  WDM.Interface.Topology

[WDM.Interface.Wo11]
AddReg=WDM.Interface.Wo11.AddReg
[WDM.Interface.Wo11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wo11.szPname%

[WDM.Interface.Wo12]
AddReg=WDM.Interface.Wo12.AddReg
[WDM.Interface.Wo12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wo12.szPname%

[WDM.Interface.Wo13]
AddReg=WDM.Interface.Wo13.AddReg
[WDM.Interface.Wo13.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wo13.szPname%

[WDM.Interface.Wo14]
AddReg=WDM.Interface.Wo14.AddReg
[WDM.Interface.Wo14.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wo14.szPname%

[WDM.Interface.Wo15]
AddReg=WDM.Interface.Wo15.AddReg
[WDM.Interface.Wo15.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wo15.szPname%

[WDM.Interface.Wi11]
AddReg=WDM.Interface.Wi11.AddReg
[WDM.Interface.Wi11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi11.szPname%

[WDM.Interface.Wi12]
AddReg=WDM.Interface.Wi12.AddReg
[WDM.Interface.Wi12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi12.szPname%

[WDM.Interface.Wi13]
AddReg=WDM.Interface.Wi13.AddReg
[WDM.Interface.Wi13.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi13.szPname%

[WDM.Interface.Wi14]
AddReg=WDM.Interface.Wi14.AddReg
[WDM.Interface.Wi14.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi14.szPname%

[WDM.Interface.Wi15]
AddReg=WDM.Interface.Wi15.AddReg
[WDM.Interface.Wi15.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi15.szPname%

[WDM.Interface.Md11]
AddReg=WDM.Interface.Md11.AddReg
[WDM.Interface.Md11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md11.szPname%

[WDM.Interface.Md12]
AddReg=WDM.Interface.Md12.AddReg
[WDM.Interface.Md12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md12.szPname%

[WDM.Interface.Topology]
AddReg=WDM.Interface.Topo.AddReg
;; warning!! must be "Topo" because "Topology" is too long
[WDM.Interface.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Topology.szPname%

;---------------------------------------------------------------;
[Strings]
MfgName="Roland"

RDID0165DiskName="AIRA MODULAR Driver Installation disk"
RDID0165DeviceDesc="AIRA MODULAR"

Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"


KSNAME_Wo11="WaveOut1-1"
KSNAME_Wo12="WaveOut1-2"
KSNAME_Wo13="WaveOut1-3"
KSNAME_Wo14="WaveOut1-4"
KSNAME_Wo15="WaveOut1-5"

KSNAME_Wi11="WaveIn1-1"
KSNAME_Wi12="WaveIn1-2"
KSNAME_Wi13="WaveIn1-3"
KSNAME_Wi14="WaveIn1-4"
KSNAME_Wi15="WaveIn1-5"

WDM.Wo11.szPname="OUTPUT 1-2 (AIRA MODULAR)"
WDM.Wo12.szPname="INPUT 1-2 (AIRA MODULAR)"
WDM.Wo13.szPname="GRIFFER 1-2 (AIRA MODULAR)"
WDM.Wo14.szPname="GRIFFER 3-4 (AIRA MODULAR)"
WDM.Wo15.szPname="GRIFFER 5-6 (AIRA MODULAR)"

WDM.Wi11.szPname="OUTPUT 1-2 (AIRA MODULAR)"
WDM.Wi12.szPname="INPUT 1-2 (AIRA MODULAR)"
WDM.Wi13.szPname="GRIFFER 1-2 (AIRA MODULAR)"
WDM.Wi14.szPname="GRIFFER 3-4 (AIRA MODULAR)"
WDM.Wi15.szPname="GRIFFER 5-6 (AIRA MODULAR)"

KSNAME_Md11="Midi1-1"
KSNAME_Md12="Midi1-2"
WDM.Md11.szPname="AIRA MODULAR"
WDM.Md12.szPname="AIRA MODULAR CTRL"

KSNAME_Topology="Topology"
WDM.Topology.szPname="AIRA MODULAR Mixer"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

WDM.Tp11.szPname="OUTPUT 1-2"
WDM.Tp12.szPname="OUTPUT 1-2"
WDM.Tp13.szPname="INPUT 1-2"
WDM.Tp14.szPname="INPUT 1-2"
WDM.Tp15.szPname="GRIFFER 1-2"
WDM.Tp16.szPname="GRIFFER 3-4"
WDM.Tp17.szPname="GRIFFER 5-6"
WDM.Tp11.szPname.GUID = "{3FFC2051-8D57-47cf-886C-C40F2E6E1462}"
WDM.Tp12.szPname.GUID = "{0F1B413B-DCEE-4c67-A5BD-ED58CA856462}"
WDM.Tp13.szPname.GUID = "{47F08B58-AC0D-4fc6-BBB6-F9D30EB55A9E}"
WDM.Tp14.szPname.GUID = "{3F624D55-6E73-4a86-96C3-3F44A3ACCCBA}"
WDM.Tp15.szPname.GUID = "{A5B5D2DA-89EC-40c6-8D71-4E16D5C712CA}"
WDM.Tp16.szPname.GUID = "{0D3E2F7F-7161-47a3-9362-E7A681425D36}"
WDM.Tp17.szPname.GUID = "{88E0BE0F-D1FA-4cb2-8BAD-866640235176}"

REG_MSZ = 0x00010000
