; Copyright (c) 1999-2001 SigmaTel Inc.
; for www.skyun.org 2009-08-13 ZYDF

[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%SGTML%
DriverVer=03/04/2003, 6.14.01.3767

[SourceDisksNames]
222="AC97 WDM SigmaTel Driver Disk",,,

[SourceDisksFiles]
stac97.sys=222

[Manufacturer]
%SgtmlMfg%=SigmaTel

[SigmaTel]
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_2415
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_2425
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_2445
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_2485
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_24C5
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_24D5
%STAC97.DvDscInt%=STAC97, PCI\VEN_8086&DEV_266E
%STAC97.DvDscInt%=STAC97, PCI\VEN_1106&DEV_3058
%STAC97.DvDscInt%=STAC97, PCI\VEN_1106&DEV_3059
%STAC97.DvDscInt%=STAC97, PCI\VEN_1002&DEV_4370
%STAC97.DvDscInt%=STAC97, PCI\VEN_1039&DEV_7012
%STAC97.DvDscInt%=STAC97, PCI\VEN_10DE&DEV_01B1
%STAC97.DvDscInt%=STAC97, PCI\VEN_1022&DEV_7445
%STAC97.DvDscInt%=STAC97, PCI\VEN_1022&DEV_746D
%STAC97.DvDscInt%=STAC97, PCI\VEN_1039&DEV_7018
%STAC97.DvDscInt%=STAC97, PCI\VEN_10B9&DEV_5451
%STAC97.DvDscInt%=STAC97, PCI\VEN_10DE&DEV_00DA

[DestinationDirs]
STAC97.CopyList=10,system32\drivers

[STAC97]
AlsoInstall=ks.registration(ks.inf),wdmaudio.registration(wdmaudio.inf)
CopyFiles=STAC97.CopyList
AddReg=STAC97.AddReg, STAC97Names.AddReg, STAC97_MC.AddReg
DelReg=STAC97.DelReg
DriverVer=03/04/2003, 6.14.01.3767

[STAC97.nt]
Include=LayoutFile=layout.inf,ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=STAC97.CopyList
AddReg=STAC97.AddReg, STAC97Names.AddReg, STAC97_MC.AddReg
DelReg=STAC97.DelReg
DriverVer=03/04/2003, 6.14.01.3767

[STAC97.Interfaces]
AddInterface=%KSC_A%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_R%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_C%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_A%,%KSN_AW%,STAC97.ItFc.AWave
AddInterface=%KSC_C%,%KSN_AW%,STAC97.ItFc.AWave
AddInterface=%KSC_A%,%KSN_T%,STAC97.ItFc.Topology
AddInterface=%KSC_A%,%KSN_U%,STAC97.ItFc.UART
AddInterface=%KSC_R%,%KSN_U%,STAC97.ItFc.UART
AddInterface=%KSC_C%,%KSN_U%,STAC97.ItFc.UART

[STAC97.nt.Interfaces]
AddInterface=%KSC_A%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_R%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_C%,%KSN_W%,STAC97.ItFc.Wave
AddInterface=%KSC_A%,%KSN_AW%,STAC97.ItFc.AWave
AddInterface=%KSC_C%,%KSN_AW%,STAC97.ItFc.AWave
AddInterface=%KSC_A%,%KSN_T%,STAC97.ItFc.Topology
AddInterface=%KSC_A%,%KSN_U%,STAC97.ItFc.UART
AddInterface=%KSC_R%,%KSN_U%,STAC97.ItFc.UART
AddInterface=%KSC_C%,%KSN_U%,STAC97.ItFc.UART

[STAC97.Services]
AddService = STAC97, 0x00000002, STAC97_Service_Inst

[STAC97.nt.Services]
AddService = STAC97, 0x00000002, STAC97_Service_Inst


;** Common **
;Affects all drivers

[STAC97.CopyList]
STAC97.sys

[STAC97.ItFc.Wave]
AddReg=STAC97.I.Wave.AddReg

[STAC97.I.Wave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%STAC97.Wave.szPname%

[STAC97.ItFc.AWave]
AddReg=STAC97.I.AWave.AddReg

[STAC97.I.AWave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%STAC97.AWave.szPname%

[STAC97.ItFc.Topology]
AddReg=STAC97.I.Topo.AddReg

[STAC97.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%STAC97.Topology.szPname%

[STAC97.ItFc.UART]
AddReg=STAC97.ItFc.UART.AddReg
[STAC97.ItFc.UART.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%STAC97.UART.szPname%

[STAC97.DelReg]
HKCU,%SndVolSigKey%
HKU,%SndVolSigKey%
HKR,%CfKyNm%

[STAC97.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,STAC97.sys
HKR,,NTMPDriver,,"STAC97.sys,sbemul.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,,%STAC97.DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%WDM_MIDI%
HKR,Drivers\mixer\wdmaud.drv,Description,,%STAC97.DeviceDesc%

[STAC97_Service_Inst]
DisplayName   = %STAC97.SvcDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\drivers\STAC97.sys

[STAC97Names.AddReg]
;; Nodes
HKLM,%MdCtg%\%ST97GD.PhoneVolume%,Name,,%ST97Nd.PhoneVolume%
HKLM,%MdCtg%\%ST97GD.PhoneVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.PhoneMute%,Name,,%ST97Nd.PhoneMute%
HKLM,%MdCtg%\%ST97GD.PhoneMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LineInMute%,Name,,%ST97Nd.LineInMute%
HKLM,%MdCtg%\%ST97GD.LineInMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MainMix%,Name,,%ST97Nd.MainMix%
HKLM,%MdCtg%\%ST97GD.MainMix%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.3DBypass%,Name,,%ST97Nd.3DBypass%
HKLM,%MdCtg%\%ST97GD.3DBypass%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.3DEnable%,Name,,%ST97Nd.3DEnable%
HKLM,%MdCtg%\%ST97GD.3DEnable%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.BeepMix%,Name,,%ST97Nd.BeepMix%
HKLM,%MdCtg%\%ST97GD.BeepMix%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.HPVolume%,Name,,%ST97Nd.HPVolume%
HKLM,%MdCtg%\%ST97GD.HPVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.HPMute%,Name,,%ST97Nd.HPMute%
HKLM,%MdCtg%\%ST97GD.HPMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LnlvlVolume%,Name,,%ST97Nd.LnlvlVolume%
HKLM,%MdCtg%\%ST97GD.LnlvlVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LnlvlMute%,Name,,%ST97Nd.LnlvlMute%
HKLM,%MdCtg%\%ST97GD.LnlvlMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MonoOutSelect%,Name,,%ST97Nd.MonoOutSelect%
HKLM,%MdCtg%\%ST97GD.MonoOutSelect%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.WaveInSelect%,Name,,%ST97Nd.WaveInSelect%
HKLM,%MdCtg%\%ST97GD.WaveInSelect%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MasterInVolume%,Name,,%ST97Nd.MasterInVolume%
HKLM,%MdCtg%\%ST97GD.MasterInVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MasterInMute%,Name,,%ST97Nd.MasterInMute%
HKLM,%MdCtg%\%ST97GD.MasterInMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MicInVolume%,Name,,%ST97Nd.MicInVolume%
HKLM,%MdCtg%\%ST97GD.MicInVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MicInMute%,Name,,%ST97Nd.MicInMute%
HKLM,%MdCtg%\%ST97GD.MicInMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.SurroundVolume%,Name,,%ST97Nd.SurroundVolume%
HKLM,%MdCtg%\%ST97GD.SurroundVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.SurroundMute%,Name,,%ST97Nd.SurroundMute%
HKLM,%MdCtg%\%ST97GD.SurroundMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.CenterVolume%,Name,,%ST97Nd.CenterVolume%
HKLM,%MdCtg%\%ST97GD.CenterVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.CenterMute%,Name,,%ST97Nd.CenterMute%
HKLM,%MdCtg%\%ST97GD.CenterMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LFEVolume%,Name,,%ST97Nd.LFEVolume%
HKLM,%MdCtg%\%ST97GD.LFEVolume%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LFEMute%,Name,,%ST97Nd.LFEMute%
HKLM,%MdCtg%\%ST97GD.LFEMute%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.DigitalEnable%,Name,,%ST97Nd.DigitalEnable%
HKLM,%MdCtg%\%ST97GD.MultiChannelEnable%,Name,,%ST97Nd.MultiChannelEnable%
HKLM,%MdCtg%\%ST97GD.GPIOControl%,Name,,%ST97Nd.GPIOControl%
HKLM,%MdCtg%\%ST97GD.HPOutPin%,Name,,%STAC97Pin.HPOutPin%
HKLM,%MdCtg%\%ST97GD.HPOutPin%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LnlvlOutPin%,Name,,%STAC97Pin.LnlvlOutPin%
HKLM,%MdCtg%\%ST97GD.LnlvlOutPin%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.Mic2Pin%,Name,,%STAC97Pin.Mic2Pin%
HKLM,%MdCtg%\%ST97GD.Mic2Pin%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.LineIn2Pin%,Name,,%STAC97Pin.LineIn2Pin%
HKLM,%MdCtg%\%ST97GD.LineIn2Pin%,Display,1,00,00,00,00
HKLM,%MdCtg%\%ST97GD.MonoMuteInMasterAdvanced%,Name,,%ST97Nd.MonoMuteInMasterAdvanced%
HKLM,%MdCtg%\%ST97GD_ALTNAME.PcSpeaker%,Name,,%STAC97Pin.PcSpeaker%
HKLM,%MdCtg%\%ST97GD_ALTNAME.PcSpeaker%,Display,1,00,00,00,00

[STAC97_MC.AddReg]
HKR,%CfKyNm%,DisableHeadphone,                    1, 1
HKR,%CfKyNm%,DisableLnlvl,                        1, 1
HKR,%CfKyNm%,DisableWaveIn2,                      1, 1
HKR,%CfKyNm%,MasterMute,                          1, 0                    ; 0, unmuted, 1 muted
HKR,%CfKyNm%,EnableExtAmpControl,                  1, 1
HKR,%CfKyNm%,ExtAmpPowerDownTimeInMCS,             0x00010001, 5000
HKR,%CfKyNm%,ExtAmpPowerUpTimeInMCS,               0x00010001, 5000
HKR,%CfKyNm%,CodecPowerUpDelayInMCS,             0x00010001, 1000

[Strings]
SGTML="SigmaTel"
SgtmlMfg="SigmaTel"

STAC97.DeviceDesc="Audio controller - SigmaTel CODEC"
STAC97.DvDscInt="SigmaTel C-Major Audio"

STAC97.Wave.szPname="SigmaTel Audio"
STAC97.AWave.szPname="SigmaTel Alternate"
STAC97.Topology.szPname="SigmaTel"

SndVolSigKey="Software\Microsoft\Windows\CurrentVersion\Applets\Volume Control\SigmaTel Audio"

MdCtg="SYSTEM\CurrentControlSet\Control\MediaCategories"

WDM_MIDI="WDM-based devices"

CfKyNm="Settings"

Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSC_A="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSC_R="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSC_C="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSN_W="Wave"
KSN_AW="AWave"
KSN_T="Topology"
KSN_U="UART"
STAC97.UART.szPname="MIDI External Port"

STAC97.SvcDesc = "Audio Driver (WDM) - SigmaTel CODEC"

;; Nodes (non-localizeable)
ST97GD.PhoneVolume          ="{981DFEA0-27DB-11d3-99FC-00500483AC28}"
ST97GD.PhoneMute            ="{981DFEA1-27DB-11d3-99FC-00500483AC28}"
ST97GD.LineInMute           ="{981DFEA2-27DB-11d3-99FC-00500483AC28}"
ST97GD.MainMix              ="{981DFEA3-27DB-11d3-99FC-00500483AC28}"
ST97GD.3DBypass             ="{981DFEA4-27DB-11d3-99FC-00500483AC28}"
ST97GD.3DEnable             ="{981DFEA5-27DB-11d3-99FC-00500483AC28}"
ST97GD.BeepMix              ="{981DFEA6-27DB-11d3-99FC-00500483AC28}"
ST97GD.HPVolume             ="{981DFEA7-27DB-11d3-99FC-00500483AC28}"
ST97GD.HPMute               ="{981DFEA8-27DB-11d3-99FC-00500483AC28}"
ST97GD.LnlvlVolume          ="{301892ac-2f58-41c7-88b4-4c1d72501c83}"
ST97GD.LnlvlMute            ="{c5cb62ac-f62f-4569-b66b-6a1d3afe3388}"
ST97GD.MonoOutSelect        ="{981DFEA9-27DB-11d3-99FC-00500483AC28}"
ST97GD.WaveInSelect         ="{981DFEAA-27DB-11d3-99FC-00500483AC28}"
ST97GD.WaveIn2Select        ="{A514AD4E-CFB5-4ecc-9691-36494FBE0481}"
ST97GD.MasterInVolume       ="{981DFEAB-27DB-11d3-99FC-00500483AC28}"
ST97GD.MasterInMute         ="{981DFEAC-27DB-11d3-99FC-00500483AC28}"
ST97GD.MicInVolume          ="{981DFEAD-27DB-11d3-99FC-00500483AC28}"
ST97GD.MicInMute            ="{981DFEAE-27DB-11d3-99FC-00500483AC28}"
ST97GD.SurroundVolume       ="{81FBB14B-1BEE-4bf5-92EE-FFC4F75F326D}"
ST97GD.SurroundMute         ="{22654FBC-AC8F-4224-B19F-D858D2E10BDD}"
ST97GD.CenterVolume         ="{2D97372F-9CF6-4fd6-9E56-C68BACDF360D}"
ST97GD.CenterMute           ="{BEEF51ED-1041-43f8-9B96-5863D0A9342D}"
ST97GD.LFEVolume            ="{B60C4274-3BFD-430b-8364-D947E7D304B1}"
ST97GD.LFEMute              ="{4A4D9210-C780-4768-BFD2-525FDBF4FCB4}"
ST97GD.DigitalEnable        ="{56D8C1D0-58FB-4927-9CD2-8E3BD3E5A922}"
ST97GD.MultiChannelEnable   ="{A9D8349B-45CC-4A0B-97A2-D6AC7738F27D}"
ST97GD.GPIOControl          ="{88E542C4-1540-4a40-95D1-8CCC9A4B6245}"
ST97GD.HPOutPin             ="{981DFEB1-27DB-11d3-99FC-00500483AC28}"
ST97GD.LnlvlOutPin          ="{5A9EBEC6-FCA2-4fcd-AB11-04D6C3C6266A}"
ST97GD.Mic2Volume           ="{D68EA4BA-4E5B-45c4-9E80-AE7A959B969D}"
ST97GD.LineIn2Volume        ="{DD5102D5-9931-484c-8B47-FB9B75FE63A2}"
ST97GD.Mic2Pin              ="{A72A6A9C-896A-45ce-AD88-6BB096B11B36}"
ST97GD.LineIn2Pin           ="{CC57D9E2-9750-4b74-B509-41B9B30DC0B5}"
ST97GD.MonoMuteInMasterAdvanced="{A601A3BC-066E-4800-8922-6772422C0F18}"
ST97GD_ALTNAME.PcSpeaker    ="{88C02F6A-D1E7-4fe3-A506-9E0AE51D7820}"

;; Nodes (localizeable)
ST97Nd.PhoneVolume          ="Phone Volume"
ST97Nd.PhoneMute            ="Phone Mute"
ST97Nd.LineInMute           ="LineIn Mute"
ST97Nd.MainMix              ="Main Mix"
ST97Nd.3DBypass             ="3D Bypass"
ST97Nd.3DEnable             ="3D Enable"
ST97Nd.BeepMix              ="Beep Mix"
ST97Nd.HPVolume             ="Headphone Volume"
ST97Nd.HPMute               ="Headphone Mute"
ST97Nd.LnlvlVolume          ="Line Level Volume"
ST97Nd.LnlvlMute            ="Line Level Mute"
ST97Nd.MonoOutSelect        ="Mono Out Select"
ST97Nd.WaveInSelect         ="WaveIn Select"
ST97Nd.WaveIn2Select        ="Alt WaveIn Select"
ST97Nd.MasterInVolume       ="WaveIn Volume"
ST97Nd.MasterInMute         ="WaveIn Mute"
ST97Nd.MicInVolume          ="Mic In Volume"
ST97Nd.MicInMute            ="Mic In Mute"
ST97Nd.SurroundVolume       ="Surround Volume"
ST97Nd.SurroundMute         ="Surround Mute"
ST97Nd.CenterVolume         ="Center Volume"
ST97Nd.CenterMute           ="Center Mute"
ST97Nd.LFEVolume            ="LFE Volume"
ST97Nd.LFEMute              ="LFE Mute"
ST97Nd.DigitalEnable        ="Enable SPDIF"
ST97Nd.MultiChannelEnable   ="Enable Multi-Channel"
ST97Nd.GPIOControl          ="Enable SPDIF"
ST97Nd.Mic2Volume           ="Mic2 Volume"
ST97Nd.LineIn2Volume        ="LineIn2 Volume"
STAC97Pin.HPOutPin              ="Headphone"
STAC97Pin.LnlvlOutPin           ="Line Out"
STAC97Pin.Mic2Pin               ="Alt MIC"
STAC97Pin.LineIn2Pin            ="Alt LineIn"
ST97Nd.MonoMuteInMasterAdvanced ="Mute Internal Speaker"
STAC97Pin.PcSpeaker             ="PC BEEP"
