; Installation inf for the VS-20
;
; Copyright (c) 2013 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1106.CAT
DriverVer=09/30/2013,1.00.01.0000

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

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

[SourceDisksNames]
1=%RDID0106DiskName%,,

[SourceDiskSFiles]
RDWM1106.SYS=1
RDAS1106.DLL=1
RDDP1106.EXE=1
RDCP1106.CPL=1
RDCI1106.DLL=1

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

[Manufacturer]
%MfgName%=Roland,NTx86.6.2,NTx86.7

;[ControlFlags]
;ExcludeFromSelect=*

[Roland]
;; Windows7 - Windows2000 or Windows9X / ME
;; not supported

[Roland.NTx86.6.2]
;; Windows8
%RDID0106DeviceDesc%=RDID0106Install, USB\VID_0582&PID_0117 ; VS-20

[Roland.NTx86.7]
;; not supported

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

[RDID0106Install]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=RDID0106.Files.User,RDID0106.Files.Ext,RDID0106.Files.Asio
AddReg=RDID0106AddReg

[RDID0106Install.CoInstallers]
AddReg=RDID0106CoInstallers.AddReg
CopyFiles=RDID0106.Files.Inst

[RDID0106CoInstallers.AddReg]
HKR,,CoInstallers32,%REG_MSZ%,"RdCi1106.dll,ProcCoInst"

[RDID0106AddReg]
HKR,,DevLoader,,"*ntkern"
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,rdwm1106.sys
HKR,,NTMPDriver,,"rdwm1106.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,,%RDID0106DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%RDID0106DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%RDID0106DeviceDesc%

HKLM,%MediaCategories%\%WDM.To11.szPname.GUID%,Name,,%WDM.To11.szPname%
HKLM,%MediaCategories%\%WDM.To11.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Ti11.szPname.GUID%,Name,,%WDM.Ti11.szPname%
HKLM,%MediaCategories%\%WDM.Ti11.szPname.GUID%,Display,1,00,00,00,00

[RDID0106Install.Services]
AddService = RDID1106, 0x00000002, RDID0106_Service_Inst

[RDID0106_Service_Inst]
DisplayName   = %RDID0106DeviceDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\Drivers\rdwm1106.sys

;;;
;;
[RDID0106.Files.Ext]
Rdwm1106.sys

[RDID0106.Files.User]
RDCP1106.CPL
RDDP1106.EXE

[RDID0106.Files.Inst]
RdCi1106.dll

[RDID0106.Files.Asio]
rdas1106.dll

[RDID0106Install.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_Wi11%, WDM.Interface.Wi11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wi11%, WDM.Interface.Wi11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wi11%, WDM.Interface.Wi11

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.Wi11]
AddReg=WDM.Interface.Wi11.AddReg
[WDM.Interface.Wi11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wi11.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"

RDID0106DiskName="VS-20 Driver Installation disk"
RDID0106DeviceDesc="VS-20"

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"
WDM.Wo11.szPname="OUT (VS-20)"

KSNAME_Wi11="WaveIn1-1"
WDM.Wi11.szPname="IN (VS-20)"

KSNAME_Md11="Midi1-1"
WDM.Md11.szPname="VS-20 DAW Control"

KSNAME_Md12="Midi1-2"
WDM.Md12.szPname="VS-20 Effect Control"

KSNAME_Topology="Topology"
WDM.Topology.szPname="VS-20 Mixer"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

WDM.To11.szPname="OUT"
WDM.Ti11.szPname="IN"
WDM.To11.szPname.GUID = "{41DC355F-EC2B-494a-BE55-8CA692530F63}"
WDM.Ti11.szPname.GUID = "{2CEBC780-0590-43f4-86F7-46927FD23D97}"

REG_MSZ = 0x00010000
