TransWikia.com

Как переделать драйвер от Windows XP под Windows 7

Stack Overflow на русском Asked by Hellraiser on February 26, 2021

Может кто из людей, кто умеет писать драйвера под Windows подскажет, можно ли как нибудь отредактировать файл .inf драйвера звуковой карты от Windows XP 32-бит под Windows 7 64-бит. А то на звуковую Yamaha 744 нет нигде драйверов под Windows 7 64-бит.

[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%MSFT%
LayoutFile=layout.inf
DriverVer =07/01/2001,5.1.2535.0

[Manufacturer]
%YamahaMfg%=Yamaha

;; Excluding drivers from the "Add New Hardware" list.
[ControlFlags]

ExcludeFromSelect = *


[Yamaha]
%*WDM_DS1Legacy.DeviceDesc%=WDM_Le, *YMH0100
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0004
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0005
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0006
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0008
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000A
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000C
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000D
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0010
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0012
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0020
%*PNPB02F.DeviceDesc%=MSJSTICK, *YMH0101


;; The following PnP ID addition is used to forced the Windows supplied ds1wdm 
;; driver to replace a incompatible ds1.sys(ydsxgdk.sys) driver package during 
;; upgrade from OEM preinstalled Win2k system on certain Toshiba notebooks

%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0004&SUBSYS_00041073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0005&SUBSYS_00051073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0006&SUBSYS_00061073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0008&SUBSYS_00081073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000A&SUBSYS_000A1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000C&SUBSYS_000C1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000D&SUBSYS_000D1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_00101073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_00011179
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_00121073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_00011179
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0020&SUBSYS_00201073




;;=============
;; The following PnP ID addition is used to forced the Windows supplied ds1wdm 
;; driver to replace a incompatible ds1.sys(ydsxgdk.sys) driver package during 
;; upgrade from OEM preinstalled Win2k system on on certain Sony systems.

%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_804E104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_805E104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8064104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8072104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8081104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_8096104D
;;=============

%*UnsupportedDev.DeviceDesc%=UnsupportYMH0110, *YMH0110
%*UnsupportedDev.DeviceDesc%=UnsupportYMH0110, *SNY5011



[DestinationDirs]
WDM_Na.CopyList = 10,system32drivers ; %SystemRoot%system32drivers
WDM_Le.CopyList = 10,system32drivers ; %SystemRoot%system32drivers
MSJSTICK.CopyList      = 11          ; LDID_SYS
GAMEPORT.CopyList      = 11;
GAMEENUM.CopyList      = 10,system32drivers ;  %SystemRoot%system32drivers

;;--------------------------------------------------------------------------
;;            MS Joystick
;;--------------------------------------------------------------------------
[MSJSTICK]
LogConfig=BasicJoyStick.LC0,BasicJoystick.LC1
CopyFiles=MSJSTICK.CopyList, GAMEPORT.CopyList
AddReg=JOYSTICK.AddReg, MSJSTICK.AddReg
UpdateInis=MSJSTICK.UpdateInis
KnownFiles=MSJSTICK.KnownFiles

[BasicJoyStick.LC0]
ConfigPriority=HARDWIRED
IOConfig=201-201(3ff::)

[BasicJoyStick.LC1]
ConfigPriority=HARDWIRED
IOConfig=200-207(3ff::)

[MSJSTICK.CopyList]
vjoyd.vxd,,
msjstick.drv,,

[MSJSTICK.KnownFiles]
essjoy.vxd.4.3.0=force
essjoy.drv.4.3.0=force

[GAMEPORT.CopyList]
msanalog.vxd,,

[JOYSTICK.AddReg]
HKR,,DevLoader,,mmdevldr.vxd
HKR,Drivers,MIGRATED,,0
HKR,Driversjoystick,,,

[MSJSTICK.AddReg]
HKR,,Driver,,vjoyd.vxd
HKR,Driversjoystickmsjstick.drv,Description,,%*PNPB02F.DeviceDesc%
HKR,Driversjoystickmsjstick.drv,Driver,,msjstick.drv
HKR,Drivers,SubClasses,,"joystick"

[MSJSTICK.UpdateInis]
system.ini,drivers,"joystick="

;;--------------------------------------------------------------------------
;;            Native DS1
;;--------------------------------------------------------------------------
[WDM_NaT]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg
DelReg=WDM_DS1CUSTOM.DelReg

[WDM_NaT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus


[WDM_Na]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration

CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg

[WDM_Na.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[YmhAud.Interface.Wav1]
AddReg=YmhAud.Interface.Wav1.AddReg

[YmhAud.Interface.Wav1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%YmhAud.Wav1.szPname%

[YmhAud.Interface.Topo]
AddReg=YmhAud.Interface.Topo.AddReg

[YmhAud.Interface.Topo.AddReg]
HKR,,FriendlyName,,%YmhAud.Topo.szPname%

[YmhAud.Interface.DMus]
AddReg=YmhAud.Interface.DMus.AddReg

[YmhAud.Interface.DMus.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%YmhAud.DMus.szPname%


[WDM_Na.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,ds1wdm.sys
HKR,,NTMPDriver,,"ds1wdm.sys,sbemul.sys"

HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Driverswavewdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmidiwdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmixerwdmaud.drv,Driver,,wdmaud.drv
HKR,Driversauxwdmaud.drv,Driver,,wdmaud.drv

HKR,Driverswavewdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%
HKR,Driversmidiwdmaud.drv,Description,,%*WDM_DMUSIC.DeviceDesc%
HKR,Driversmixerwdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%
HKR,Driversauxwdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%

[WDM_DS1GUID.AddReg]
;;DS1 Friendly Names
HKLM,%MediaCategories%%DS1GUID.Mic1%,Name,,%DS1Pin.Mic1%
HKLM,%MediaCategories%%DS1GUID.Mic1%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.LineIn%,Name,,%DS1Pin.LineIn%
HKLM,%MediaCategories%%DS1GUID.LineIn%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.CD%,Name,,%DS1Pin.CD%
HKLM,%MediaCategories%%DS1GUID.CD%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Video%,Name,,%DS1Pin.Video%
HKLM,%MediaCategories%%DS1GUID.Video%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Aux%,Name,,%DS1Pin.Aux%
HKLM,%MediaCategories%%DS1GUID.Aux%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Phone%,Name,,%DS1Pin.Phone%
HKLM,%MediaCategories%%DS1GUID.Phone%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.PCBeep%,Name,,%DS1Pin.PCBeep%
HKLM,%MediaCategories%%DS1GUID.PCBeep%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Master%,Name,,%DS1Pin.Master%
HKLM,%MediaCategories%%DS1GUID.Master%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Mono%,Name,,%DS1Pin.Mono%
HKLM,%MediaCategories%%DS1GUID.Mono%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.AGC%,Name,,%DS1Pin.AGC%
HKLM,%MediaCategories%%DS1GUID.AGC%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.FM%,Name,,%DS1Pin.FM%
HKLM,%MediaCategories%%DS1GUID.FM%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.SMIX%,Name,,%DS1Pin.SMIX%
HKLM,%MediaCategories%%DS1GUID.SMIX%,Display,1,00,00,00,00


[WDM_DS1CUSTOM.AddReg]
HKLM,%CustomizeYamaha%,MaxModVoices,  1,38,00,00,00
HKLM,%CustomizeYamaha%,MaxWodVoices,  1,04,00,00,00
HKLM,%CustomizeYamaha%,EnableControls,1,01,01,00,00,00,00,00,00,00,00, 01,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,01,01,01,01,01, 01,01,01,01,01,01,01,01,01,00, 00,00,01,01,00,01,01,00,01,00, 01,00,01,00,01,00,01,00,01,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,01,01,01,01 
HKLM,%CustomizeYamaha%,VolumeMax,     1,96,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,96,00,A2,00,A2, 00,A2,00,A2,00,A2,00,A2,00,A2, 00,00,96,00,00,00,AC,00,AC,00, AC,00,AC,00,AC,00,AC,00,AC,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,96,00,96,00
HKLM,%CustomizeYamaha%,VolumeMin,     1,67,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,69,00,73,00,73, 00,73,00,73,00,73,00,73,00,73, 00,00,7A,00,00,00,96,00,96,00, 96,00,96,00,96,00,96,00,96,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,67,00,7E,00
HKLM,%CustomizeYamaha%,ControlsDef,   1,90,00,00,00,00,00,00,00,00,00, 01,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,90,00,9C,00,9C, 01,9C,01,9C,00,9C,00,9C,00,9C, 00,00,88,00,00,00,A1,00,A1,00, A1,00,A1,00,A1,00,A1,00,A1,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,90,00,8A,00


;;This DelReg section is used to blow away the registry keys left by 
;;ds1.sys driver package during upgrade from Win2k.

[WDM_DS1CUSTOM.DelReg]
HKLM,%CustomizeYamaha%

[WDM_DIRECTMUSIC.AddReg]
HKLM,%YamahaDMusicPort%,DefaultOutputPort,0,"{93701B63-79C6-11d2-AFC5-00AA005104EC}"


[WDM_Na.CopyList]
ds1wdm.sys

;;--------------------------------------------------------------------------
;;            Legacy DS1
;;--------------------------------------------------------------------------
[WDM_Le]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Le.CopyList
AddReg=WDM_Le.AddReg

[WDM_Le.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2

[WDM.Interface.FMSyn2]
AddReg=WDM.Interface.FMSyn2.AddReg

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

[WDM.Interface.UART]
AddReg=WDM.Interface.UART.AddReg

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

[WDM_Le.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,ds1wdm.sys
HKR,,NTMPDriver,,"ds1wdm.sys,sbemul.sys"

HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Driverswavewdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmidiwdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmixerwdmaud.drv,Driver,,wdmaud.drv
HKR,Driversauxwdmaud.drv,Driver,,wdmaud.drv

HKR,Driverswavewdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%
HKR,Driversmidiwdmaud.drv,Description,,%WDM_MIDI%
HKR,Driversmixerwdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%
HKR,Driversauxwdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%

[WDM_Le.CopyList]
ds1wdm.sys

;;**************** NT Install ****************
;;--------------------------------------------------
;;       JoyStick (Standrad)
;;--------------------------------------------------
[MSJSTICK.NTX86]
CopyFiles=GAMEENUM.CopyList

[MSJSTICK.NTX86.Services]
AddService = gameenum,%SPSVCINST_ASSOCSERVICE%,GamePort_Service_Inst

[GAMEENUM.CopyList]
gameenum.sys

[GamePort_Service_Inst]
DisplayName    = %gameport.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%system32driversgameenum.sys
LoadOrderGroup = Extended Base

;;--------------------------------------------------------
;;                  Native
;;--------------------------------------------------------
[WDM_Na.NTX86]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg,WDM_DIRECTMUSIC.AddReg


[WDM_Na.NTX86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[WDM_Na.NTX86.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst


[WDM_NaT.NTX86]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DIRECTMUSIC.AddReg,WDM_DS1CUSTOM.AddReg
DelReg=WDM_DS1CUSTOM.DelReg

[WDM_NaT.NTX86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[WDM_NaT.NTX86.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst



;;-------------------------------------------------------------------------
;;          Legacy
;;-------------------------------------------------------------------------

[WDM_Le.NTX86]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=WDM_Le.CopyList
AddReg=WDM_Le.AddReg



[WDM_Le.NTX86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2

[WDM_Le.NTX86.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst

[ds1_Service_Inst]
DisplayName    = %wdm_DS1Native.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%system32driversds1wdm.sys


[UnsupportYMH0110.NTX86]
; empty
[UnsupportYMH0110.NTX86.SERVICES]
AddService=,0x2




[Strings]

YMH="Yamaha "
YamahaMfg="Yamaha"
MSFT="Microsoft"

*WDM_DS1Legacy.DeviceDesc="YAMAHA Legacy DS1 WDM Driver"
*WDM_DS1Native.DeviceDesc="YAMAHA Native DS1 WDM Driver"
*WDM_DMUSIC.DeviceDesc="Yamaha Direct Music(WDM)"
*PNPB02F.DeviceDesc="Game port for Yamaha DS1"
*UnsupportedDev.DeviceDesc="Unsupported Yamaha Audio CODEC"
;;----------------------------------------
;; Native Part
;;-----------------------------------------
YmhAud.Wav1.szPname="Yamaha DS1x Native Audio"
YmhAud.Topo.szPname="Yamaha DS1x Topology"
YmhAud.DMus.szPname="Yamaha DMusic"

;;----------------------------------------
;; Legacy Part
;;-----------------------------------------
WDM.FMSyn2.szPname="Yamaha PCI FM Synthesizer"
WDM.UART.szPname="Yamaha PCI External MIDI"

;;Friendly Name (Non Localised)
DS1GUID.Mic1    ="{48F3FC01-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.LineIn  ="{48F3FC03-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.CD      ="{48F3FC04-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Video   ="{48F3FC05-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Aux     ="{48F3FC06-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Phone   ="{48F3FC07-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.PCBeep  ="{48F3FC08-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Master  ="{48F3FC09-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Mono    ="{48F3FC0A-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.AGC     ="{AA6FBBA1-BE52-11d1-BDBA-00AA00374674}"
DS1GUID.FM      ="{8F89D0C2-C495-11d1-981C-006008034FD1}"
DS1GUID.SMIX    ="{9FE6E641-E99A-11d1-8A41-00A0C9776188}"

;;Friendly Name (Localised)
DS1Pin.Mic1     ="Microphone"
DS1Pin.LineIn   ="Line"
DS1Pin.CD       ="CD Audio"
DS1Pin.Video    ="Video"
DS1Pin.Aux      ="Auxilliary"
DS1Pin.Phone    ="Telephone"
DS1Pin.PCBeep   ="PC Beep"
DS1Pin.Master   ="Volume"
DS1Pin.Mono     ="Mono Out"
DS1Pin.AGC      ="Mic 20dB Enable"
DS1Pin.FM       ="MIDI"
DS1Pin.SMIX     ="Stereo Out"

MediaCategories="SYSTEMCurrentControlSetControlMediaCategories"
CustomizeYamaha="SYSTEMCurrentControlSetServicesYAMAHADriverDSXGWDM"
YamahaDMusicPort="SOFTWAREMicrosoftDirectMusicDefaults"

WDM_MIDI="WDM-based Device"

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

KSNAME_Wav1="Wave"
KSNAME_DMUS="DMusic"
KSNAME_Topo="Topology"

;;----------------------------------------
;; Legacy Part
;;-----------------------------------------
KSNAME_FMSyn2="FMSynth"
KSNAME_UART="UART"

wdm_DS1Native.SvcDesc="Yamaha DS1 Audio Driver (WDM)"
;;-----------------------------------------------
;;   Gameport
;;---------------------------------------------
SPSVCINST_ASSOCSERVICE= 0x00000002
StdMfg="(Standard system devices)"
gameport.SvcDesc="Game port for Yamaha DS1"

One Answer

Попробуйте етот .inf

[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%MSFT%
LayoutFile=layout.inf
DriverVer =07/01/2001,5.1.2535.0

[Manufacturer]
%YamahaMfg%=Yamaha, NTamd64

;; Excluding drivers from the "Add New Hardware" list.
[ControlFlags]

ExcludeFromSelect = *


[Yamaha]
%*WDM_DS1Legacy.DeviceDesc%=WDM_Le, *YMH0100
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0004
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0005
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0006
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0008
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000A
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000C
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_000D
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0010
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0012
%*WDM_DS1Native.DeviceDesc%=WDM_Na, PCIVEN_1073&DEV_0020
%*PNPB02F.DeviceDesc%=MSJSTICK, *YMH0101


;; The following PnP ID addition is used to forced the Windows supplied ds1wdm 
;; driver to replace a incompatible ds1.sys(ydsxgdk.sys) driver package during 
;; upgrade from OEM preinstalled Win2k system on certain Toshiba notebooks

%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0004&SUBSYS_00041073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0005&SUBSYS_00051073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0006&SUBSYS_00061073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0008&SUBSYS_00081073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000A&SUBSYS_000A1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000C&SUBSYS_000C1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_000D&SUBSYS_000D1073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_00101073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_00011179
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_00121073
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_00011179
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0020&SUBSYS_00201073




;;=============
;; The following PnP ID addition is used to forced the Windows supplied ds1wdm 
;; driver to replace a incompatible ds1.sys(ydsxgdk.sys) driver package during 
;; upgrade from OEM preinstalled Win2k system on on certain Sony systems.

%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_804E104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_805E104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8064104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8072104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0010&SUBSYS_8081104D
%*WDM_DS1Native.DeviceDesc%=WDM_NaT, PCIVEN_1073&DEV_0012&SUBSYS_8096104D
;;=============

%*UnsupportedDev.DeviceDesc%=UnsupportYMH0110, *YMH0110
%*UnsupportedDev.DeviceDesc%=UnsupportYMH0110, *SNY5011



[DestinationDirs]
WDM_Na.CopyList = 10,system32drivers ; %SystemRoot%system32drivers
WDM_Le.CopyList = 10,system32drivers ; %SystemRoot%system32drivers
MSJSTICK.CopyList      = 11          ; LDID_SYS
GAMEPORT.CopyList      = 11;
GAMEENUM.CopyList      = 10,system32drivers ;  %SystemRoot%system32drivers

;;--------------------------------------------------------------------------
;;            MS Joystick
;;--------------------------------------------------------------------------
[MSJSTICK]
LogConfig=BasicJoyStick.LC0,BasicJoystick.LC1
CopyFiles=MSJSTICK.CopyList, GAMEPORT.CopyList
AddReg=JOYSTICK.AddReg, MSJSTICK.AddReg
UpdateInis=MSJSTICK.UpdateInis
KnownFiles=MSJSTICK.KnownFiles

[BasicJoyStick.LC0]
ConfigPriority=HARDWIRED
IOConfig=201-201(3ff::)

[BasicJoyStick.LC1]
ConfigPriority=HARDWIRED
IOConfig=200-207(3ff::)

[MSJSTICK.CopyList]
vjoyd.vxd,,
msjstick.drv,,

[MSJSTICK.KnownFiles]
essjoy.vxd.4.3.0=force
essjoy.drv.4.3.0=force

[GAMEPORT.CopyList]
msanalog.vxd,,

[JOYSTICK.AddReg]
HKR,,DevLoader,,mmdevldr.vxd
HKR,Drivers,MIGRATED,,0
HKR,Driversjoystick,,,

[MSJSTICK.AddReg]
HKR,,Driver,,vjoyd.vxd
HKR,Driversjoystickmsjstick.drv,Description,,%*PNPB02F.DeviceDesc%
HKR,Driversjoystickmsjstick.drv,Driver,,msjstick.drv
HKR,Drivers,SubClasses,,"joystick"

[MSJSTICK.UpdateInis]
system.ini,drivers,"joystick="

;;--------------------------------------------------------------------------
;;            Native DS1
;;--------------------------------------------------------------------------
[WDM_NaT]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg
DelReg=WDM_DS1CUSTOM.DelReg

[WDM_NaT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus


[WDM_Na]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration

CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg

[WDM_Na.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[YmhAud.Interface.Wav1]
AddReg=YmhAud.Interface.Wav1.AddReg

[YmhAud.Interface.Wav1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%YmhAud.Wav1.szPname%

[YmhAud.Interface.Topo]
AddReg=YmhAud.Interface.Topo.AddReg

[YmhAud.Interface.Topo.AddReg]
HKR,,FriendlyName,,%YmhAud.Topo.szPname%

[YmhAud.Interface.DMus]
AddReg=YmhAud.Interface.DMus.AddReg

[YmhAud.Interface.DMus.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%YmhAud.DMus.szPname%


[WDM_Na.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,ds1wdm.sys
HKR,,NTMPDriver,,"ds1wdm.sys,sbemul.sys"

HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Driverswavewdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmidiwdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmixerwdmaud.drv,Driver,,wdmaud.drv
HKR,Driversauxwdmaud.drv,Driver,,wdmaud.drv

HKR,Driverswavewdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%
HKR,Driversmidiwdmaud.drv,Description,,%*WDM_DMUSIC.DeviceDesc%
HKR,Driversmixerwdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%
HKR,Driversauxwdmaud.drv,Description,,%*WDM_DS1Native.DeviceDesc%

[WDM_DS1GUID.AddReg]
;;DS1 Friendly Names
HKLM,%MediaCategories%%DS1GUID.Mic1%,Name,,%DS1Pin.Mic1%
HKLM,%MediaCategories%%DS1GUID.Mic1%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.LineIn%,Name,,%DS1Pin.LineIn%
HKLM,%MediaCategories%%DS1GUID.LineIn%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.CD%,Name,,%DS1Pin.CD%
HKLM,%MediaCategories%%DS1GUID.CD%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Video%,Name,,%DS1Pin.Video%
HKLM,%MediaCategories%%DS1GUID.Video%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Aux%,Name,,%DS1Pin.Aux%
HKLM,%MediaCategories%%DS1GUID.Aux%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Phone%,Name,,%DS1Pin.Phone%
HKLM,%MediaCategories%%DS1GUID.Phone%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.PCBeep%,Name,,%DS1Pin.PCBeep%
HKLM,%MediaCategories%%DS1GUID.PCBeep%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Master%,Name,,%DS1Pin.Master%
HKLM,%MediaCategories%%DS1GUID.Master%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.Mono%,Name,,%DS1Pin.Mono%
HKLM,%MediaCategories%%DS1GUID.Mono%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.AGC%,Name,,%DS1Pin.AGC%
HKLM,%MediaCategories%%DS1GUID.AGC%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.FM%,Name,,%DS1Pin.FM%
HKLM,%MediaCategories%%DS1GUID.FM%,Display,1,00,00,00,00
HKLM,%MediaCategories%%DS1GUID.SMIX%,Name,,%DS1Pin.SMIX%
HKLM,%MediaCategories%%DS1GUID.SMIX%,Display,1,00,00,00,00


[WDM_DS1CUSTOM.AddReg]
HKLM,%CustomizeYamaha%,MaxModVoices,  1,38,00,00,00
HKLM,%CustomizeYamaha%,MaxWodVoices,  1,04,00,00,00
HKLM,%CustomizeYamaha%,EnableControls,1,01,01,00,00,00,00,00,00,00,00, 01,00,00,00,00,00,00,00,00,00, 

00,00,00,00,00,01,01,01,01,01, 01,01,01,01,01,01,01,01,01,00, 00,00,01,01,00,01,01,00,01,00, 

01,00,01,00,01,00,01,00,01,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,01,01,01,01 
HKLM,%CustomizeYamaha%,VolumeMax,     1,96,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 

00,00,00,00,00,96,00,A2,00,A2, 00,A2,00,A2,00,A2,00,A2,00,A2, 00,00,96,00,00,00,AC,00,AC,00, 

AC,00,AC,00,AC,00,AC,00,AC,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,96,00,96,00
HKLM,%CustomizeYamaha%,VolumeMin,     1,67,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 

00,00,00,00,00,69,00,73,00,73, 00,73,00,73,00,73,00,73,00,73, 00,00,7A,00,00,00,96,00,96,00, 

96,00,96,00,96,00,96,00,96,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,67,00,7E,00
HKLM,%CustomizeYamaha%,ControlsDef,   1,90,00,00,00,00,00,00,00,00,00, 01,00,00,00,00,00,00,00,00,00, 

00,00,00,00,00,90,00,9C,00,9C, 01,9C,01,9C,00,9C,00,9C,00,9C, 00,00,88,00,00,00,A1,00,A1,00, 

A1,00,A1,00,A1,00,A1,00,A1,00, 00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00, 00,90,00,8A,00


;;This DelReg section is used to blow away the registry keys left by 
;;ds1.sys driver package during upgrade from Win2k.

[WDM_DS1CUSTOM.DelReg]
HKLM,%CustomizeYamaha%

[WDM_DIRECTMUSIC.AddReg]
HKLM,%YamahaDMusicPort%,DefaultOutputPort,0,"{93701B63-79C6-11d2-AFC5-00AA005104EC}"


[WDM_Na.CopyList]
ds1wdm.sys

;;--------------------------------------------------------------------------
;;            Legacy DS1
;;--------------------------------------------------------------------------
[WDM_Le]
Include=   ks.inf, wdmaudio.inf
Needs=     KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Le.CopyList
AddReg=WDM_Le.AddReg

[WDM_Le.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2

[WDM.Interface.FMSyn2]
AddReg=WDM.Interface.FMSyn2.AddReg

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

[WDM.Interface.UART]
AddReg=WDM.Interface.UART.AddReg

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

[WDM_Le.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,ds1wdm.sys
HKR,,NTMPDriver,,"ds1wdm.sys,sbemul.sys"

HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Driverswavewdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmidiwdmaud.drv, Driver,,wdmaud.drv
HKR,Driversmixerwdmaud.drv,Driver,,wdmaud.drv
HKR,Driversauxwdmaud.drv,Driver,,wdmaud.drv

HKR,Driverswavewdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%
HKR,Driversmidiwdmaud.drv,Description,,%WDM_MIDI%
HKR,Driversmixerwdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%
HKR,Driversauxwdmaud.drv,Description,,%*WDM_DS1Legacy.DeviceDesc%

[WDM_Le.CopyList]
ds1wdm.sys

;;**************** NT Install ****************
;;--------------------------------------------------
;;       JoyStick (Standrad)
;;--------------------------------------------------
[MSJSTICK.NTamd64]
CopyFiles=GAMEENUM.CopyList

[MSJSTICK.NTamd64.Services]
AddService = gameenum,%SPSVCINST_ASSOCSERVICE%,GamePort_Service_Inst

[GAMEENUM.CopyList]
gameenum.sys

[GamePort_Service_Inst]
DisplayName    = %gameport.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%system32driversgameenum.sys
LoadOrderGroup = Extended Base

;;--------------------------------------------------------
;;                  Native
;;--------------------------------------------------------
[WDM_Na.NTamd64]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DS1CUSTOM.AddReg,WDM_DIRECTMUSIC.AddReg


[WDM_Na.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[WDM_Na.NTamd64.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst


[WDM_NaT.NTamd64]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration
CopyFiles=WDM_Na.CopyList
AddReg=WDM_Na.AddReg,WDM_DS1GUID.AddReg,WDM_DIRECTMUSIC.AddReg,WDM_DS1CUSTOM.AddReg
DelReg=WDM_DS1CUSTOM.DelReg

[WDM_NaT.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wav1%,YmhAud.Interface.Wav1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topo%,YmhAud.Interface.Topo
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DMUS%,YmhAud.Interface.DMus
AddInterface=%KSCATEGORY_SYNTHESIZER%,%KSNAME_DMUS%,YmhAud.Interface.DMus

[WDM_NaT.NTamd64.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst


;;-------------------------------------------------------------------------
;;          Legacy
;;-------------------------------------------------------------------------

[WDM_Le.NTamd64]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=WDM_Le.CopyList
AddReg=WDM_Le.AddReg



[WDM_Le.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_FMSyn2%,WDM.Interface.FMSyn2

[WDM_Le.NTamd64.Services]
AddService = ds1, 0x00000002, ds1_Service_Inst

[ds1_Service_Inst]
DisplayName    = %wdm_DS1Native.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%system32driversds1wdm.sys


[UnsupportYMH0110.NTamd64]
; empty
[UnsupportYMH0110.NTamd64.SERVICES]
AddService=,0x2




[Strings]

YMH="Yamaha "
YamahaMfg="Yamaha"
MSFT="Microsoft"

*WDM_DS1Legacy.DeviceDesc="YAMAHA Legacy DS1 WDM Driver"
*WDM_DS1Native.DeviceDesc="YAMAHA Native DS1 WDM Driver"
*WDM_DMUSIC.DeviceDesc="Yamaha Direct Music(WDM)"
*PNPB02F.DeviceDesc="Game port for Yamaha DS1"
*UnsupportedDev.DeviceDesc="Unsupported Yamaha Audio CODEC"
;;----------------------------------------
;; Native Part
;;-----------------------------------------
YmhAud.Wav1.szPname="Yamaha DS1x Native Audio"
YmhAud.Topo.szPname="Yamaha DS1x Topology"
YmhAud.DMus.szPname="Yamaha DMusic"

;;----------------------------------------
;; Legacy Part
;;-----------------------------------------
WDM.FMSyn2.szPname="Yamaha PCI FM Synthesizer"
WDM.UART.szPname="Yamaha PCI External MIDI"

;;Friendly Name (Non Localised)
DS1GUID.Mic1    ="{48F3FC01-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.LineIn  ="{48F3FC03-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.CD      ="{48F3FC04-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Video   ="{48F3FC05-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Aux     ="{48F3FC06-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Phone   ="{48F3FC07-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.PCBeep  ="{48F3FC08-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Master  ="{48F3FC09-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.Mono    ="{48F3FC0A-BDB3-11d1-BDBA-00AA00374674}"
DS1GUID.AGC     ="{AA6FBBA1-BE52-11d1-BDBA-00AA00374674}"
DS1GUID.FM      ="{8F89D0C2-C495-11d1-981C-006008034FD1}"
DS1GUID.SMIX    ="{9FE6E641-E99A-11d1-8A41-00A0C9776188}"

;;Friendly Name (Localised)
DS1Pin.Mic1     ="Microphone"
DS1Pin.LineIn   ="Line"
DS1Pin.CD       ="CD Audio"
DS1Pin.Video    ="Video"
DS1Pin.Aux      ="Auxilliary"
DS1Pin.Phone    ="Telephone"
DS1Pin.PCBeep   ="PC Beep"
DS1Pin.Master   ="Volume"
DS1Pin.Mono     ="Mono Out"
DS1Pin.AGC      ="Mic 20dB Enable"
DS1Pin.FM       ="MIDI"
DS1Pin.SMIX     ="Stereo Out"

MediaCategories="SYSTEMCurrentControlSetControlMediaCategories"
CustomizeYamaha="SYSTEMCurrentControlSetServicesYAMAHADriverDSXGWDM"
YamahaDMusicPort="SOFTWAREMicrosoftDirectMusicDefaults"

WDM_MIDI="WDM-based Device"

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

KSNAME_Wav1="Wave"
KSNAME_DMUS="DMusic"
KSNAME_Topo="Topology"

;;----------------------------------------
;; Legacy Part
;;-----------------------------------------
KSNAME_FMSyn2="FMSynth"
KSNAME_UART="UART"

wdm_DS1Native.SvcDesc="Yamaha DS1 Audio Driver (WDM)"
;;-----------------------------------------------
;;   Gameport
;;---------------------------------------------
SPSVCINST_ASSOCSERVICE= 0x00000002
StdMfg="(Standard system devices)"
gameport.SvcDesc="Game port for Yamaha DS1"

Answered by SPQR on February 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP