Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

296 lines
14 KiB

  1. [Version]
  2. Signature="$CHICAGO$"
  3. Class=MEDIA
  4. ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
  5. provider=%MSFT%
  6. LayoutFile=layout.inf
  7. DriverVer = 12/1/1998, 5.0.0.0
  8. [ControlFlags]
  9. ExcludeFromSelect=PCI\VEN_1106&DEV_3058
  10. [Manufacturer]
  11. %VIAMfgName%=VIAAudio
  12. ;;---------------------------------------------------------------;
  13. ;;
  14. ;; D E V I C E C A L L O U T S E C T I O N
  15. ;;
  16. [VIAAudio]
  17. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_45521106
  18. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_45511106
  19. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_45111106
  20. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_45411106
  21. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_41611106
  22. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_78D21106
  23. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_30581106
  24. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_59134352
  25. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_B1940E11
  26. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_3705144D
  27. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_0E8014FF
  28. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_51331071
  29. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058&SUBSYS_80C21033
  30. %*WDM_VIAudio.DeviceDesc%=WDM_VIAudio, PCI\VEN_1106&DEV_3058
  31. [WDM_VIAudio]
  32. AlsoInstall=KS.Registration(ks.inf), WDMAUDIO.Registration(wdmaudio.inf)
  33. CopyFiles=VIAAudio.CopyList
  34. DelReg=WDM_VIAudio.DelReg
  35. AddReg=WDM_VIAudio.AddReg, WDM_VIAGUID.AddReg, WDM_Config.AddReg, VIAUDIO_OEM.AddReg
  36. [WDM_VIAudio.Interfaces]
  37. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  38. AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  39. AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  40. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,WDM_VIAudio.Interface.Topology
  41. AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_Topology%,WDM_VIAudio.Interface.Topology
  42. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
  43. AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
  44. AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
  45. [WDM_VIAudio.Interface.Wave]
  46. AddReg=WDM_VIA.Interface.Wave.AddReg
  47. [WDM_VIA.Interface.Wave.AddReg]
  48. HKR,,FriendlyName,,%WDM_VIA.Wave.szPname%
  49. HKR,,CLSID,,%Proxy.CLSID%
  50. [WDM_VIAudio.Interface.Topology]
  51. AddReg=WDM_VIA.Interface.Topo.AddReg
  52. [WDM_VIA.Interface.Topo.AddReg]
  53. HKR,,FriendlyName,,%WDM_VIA.Topology.szPname%
  54. HKR,,CLSID,,%Proxy.CLSID%
  55. [WDM.Interface.UART]
  56. AddReg=WDM.Interface.UART.AddReg
  57. [WDM.Interface.UART.AddReg]
  58. HKR,,FriendlyName,,%WDM.UART.szPname%
  59. HKR,,CLSID,,%Proxy.CLSID%
  60. ;; How can they make sure they are deleting their own REGISTRY
  61. ;;
  62. [WDM_VIAudio.DelReg]
  63. HKLM,Enum\Root\*PNPB002
  64. HKLM,Enum\Root\*PNPB006
  65. HKLM,Enum\Root\*PNPB02F
  66. [WDM_VIAudio.AddReg]
  67. HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
  68. HKR,,Driver,,ac97via.SYS
  69. HKR,,NTMPDriver,,"ac97via.sys,sbemul.sys"
  70. HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"
  71. HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv
  72. HKR,Drivers\midi\wdmaud.drv, Driver,,wdmaud.drv
  73. HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
  74. HKR,Drivers\aux\wdmaud.drv,Driver,,wdmaud.drv
  75. HKR,Drivers\wave\wdmaud.drv,Description,,%*WDMVIAAudio.DeviceDesc%
  76. HKR,Drivers\midi\wdmaud.drv,Description,,%*WDMVIAAudio.DeviceDesc%
  77. HKR,Drivers\mixer\wdmaud.drv,Description,,%*WDMVIAAudio.DeviceDesc%
  78. HKR,Drivers\aux\wdmaud.drv,Description,,%*WDMVIAAudio.DeviceDesc%
  79. [WDM_VIAGUID.AddReg]
  80. ;; VIA Audio friendly names
  81. HKLM,%MediaCategories%\%VIAGUID.Phone%,Name,,%VIAPin.Phone%
  82. HKLM,%MediaCategories%\%VIAGUID.Phone%,Display,1,00,00,00,00
  83. HKLM,%MediaCategories%\%VIAGUID.Mic1%,Name,,%VIAPin.Mic1%
  84. HKLM,%MediaCategories%\%VIAGUID.Mic1%,Display,1,00,00,00,00
  85. HKLM,%MediaCategories%\%VIAGUID.Mic2%,Name,,%VIAPin.Mic2%
  86. HKLM,%MediaCategories%\%VIAGUID.Mic2%,Display,1,00,00,00,00
  87. HKLM,%MediaCategories%\%VIAGUID.Video%,Name,,%VIAPin.Video%
  88. HKLM,%MediaCategories%\%VIAGUID.Video%,Display,1,00,00,00,00
  89. HKLM,%MediaCategories%\%VIAGUID.MonoOut%,Name,,%VIAPin.MonoOut%
  90. HKLM,%MediaCategories%\%VIAGUID.MonoOut%,Display,1,00,00,00,00
  91. HKLM,%MediaCategories%\%VIAGUID.PcBeep%,Name,,%VIAPin.PcBeep%
  92. HKLM,%MediaCategories%\%VIAGUID.PcBeep%,Display,1,00,00,00,00
  93. HKLM,%MediaCategories%\%VIAGUID.LineIn%,Name,,%VIAPin.LineIn%
  94. HKLM,%MediaCategories%\%VIAGUID.LineIn%,Display,1,00,00,00,00
  95. HKLM,%MediaCategories%\%VIAGUID.CD%,Name,,%VIAPin.CD%
  96. HKLM,%MediaCategories%\%VIAGUID.CD%,Display,1,00,00,00,00
  97. HKLM,%MediaCategories%\%VIAGUID.AUX%,Name,,%VIAPin.AUX%
  98. HKLM,%MediaCategories%\%VIAGUID.AUX%,Display,1,00,00,00,00
  99. HKLM,%MediaCategories%\%VIAGUID.MicMux%,Name,,%VIANode.MicMux%
  100. HKLM,%MediaCategories%\%VIAGUID.MicMux%,Display,1,00,00,00,00
  101. HKLM,%MediaCategories%\%VIAGUID.WaveInMux%,Name,,%VIANode.WaveInMux%
  102. HKLM,%MediaCategories%\%VIAGUID.WaveInMux%,Display,1,00,00,00,00
  103. HKLM,%MediaCategories%\%VIAGUID.MonoOutMux%,Name,,%VIANode.MonoOutMux%
  104. HKLM,%MediaCategories%\%VIAGUID.MonoOutMux%,Display,1,00,00,00,00
  105. HKLM,%MediaCategories%\%VIAGUID.MonoOutMixDown%,Name,,%VIANode.MonoOutMixDown%
  106. HKLM,%MediaCategories%\%VIAGUID.MonoOutMixDown%,Display,1,00,00,00,00
  107. HKLM,%MediaCategories%\%VIAGUID.LineOutMainMix%,Name,,%VIANode.LineOutMainMix%
  108. HKLM,%MediaCategories%\%VIAGUID.LineOutMainMix%,Display,1,00,00,00,00
  109. HKLM,%MediaCategories%\%VIAGUID.LineOutMiscMix%,Name,,%VIANode.LineOutMiscMix%
  110. HKLM,%MediaCategories%\%VIAGUID.LineOutMiscMix%,Display,1,00,00,00,00
  111. HKLM,%MediaCategories%\%VIAGUID.MicIn20DB_Gain%,Name,,%VIANode.MicIn20DB_Gain%
  112. HKLM,%MediaCategories%\%VIAGUID.MicIn20DB_Gain%,Display,1,00,00,00,00
  113. HKLM,%MediaCategories%\%VIAGUID.MonoOutVol%,Name,,%VIANode.MonoOutVol%
  114. HKLM,%MediaCategories%\%VIAGUID.MonoOutVol%,Display,1,00,00,00,00
  115. HKLM,%MediaCategories%\%VIAGUID.MonoOutMute%,Name,,%VIANode.MonoOutMute%
  116. HKLM,%MediaCategories%\%VIAGUID.MonoOutMute%,Display,1,00,00,00,00
  117. HKLM,%MediaCategories%\%VIAGUID.WaveOut%,Name,,%VIAPin.WaveOut%
  118. HKLM,%MediaCategories%\%VIAGUID.WaveOut%,Display,1,00,00,00,00
  119. HKLM,%MediaCategories%\%VIAGUID.3DCenterCtrl%,Name,,%VIANode.3DCenter%
  120. HKLM,%MediaCategories%\%VIAGUID.3DCenterCtrl%,Display,1,00,00,00,00
  121. HKLM,%MediaCategories%\%VIAGUID.3DDepthCtrl%,Name,,%VIANode.3DDepth%
  122. HKLM,%MediaCategories%\%VIAGUID.3DDepthCtrl%,Display,1,00,00,00,00
  123. HKLM,%MediaCategories%\%VIAGUID.3DOnOffCtrl%,Name,,%VIANode.3DOnOff%
  124. HKLM,%MediaCategories%\%VIAGUID.3DOnOffCtrl%,Display,1,00,00,00,00
  125. HKLM,%MediaCategories%\%VIAGUID.HPVolume%,Name,,%VIANode.HPVolume%
  126. HKLM,%MediaCategories%\%VIAGUID.HPVolume%,Display,1,00,00,00,00
  127. HKLM,%MediaCategories%\%VIAGUID.HPMute%,Name,,%VIANode.HPMute%
  128. HKLM,%MediaCategories%\%VIAGUID.HPMute%,Display,1,00,00,00,00
  129. HKLM,%MediaCategories%\%VIAGUID.3DCenterCtrlPin%,Name,,%VIAPin.3DCenter%
  130. HKLM,%MediaCategories%\%VIAGUID.3DCenterCtrlPin%,Display,1,00,00,00,00
  131. HKLM,%MediaCategories%\%VIAGUID.3DDepthCtrlPin%,Name,,%VIAPin.3DDepth%
  132. HKLM,%MediaCategories%\%VIAGUID.3DDepthCtrlPin%,Display,1,00,00,00,00
  133. HKLM,%MediaCategories%\%VIAGUID.Stereo_OutPin%,Name,,%VIAPin.Stereo_Out%
  134. HKLM,%MediaCategories%\%VIAGUID.Stereo_OutPin%,Display,1,00,00,00,00
  135. ;; for mic2 select
  136. HKLM,%MediaCategories%\%VIAGUID.Mic_Select%,Name,,%VIANode.MicSelect%
  137. HKLM,%MediaCategories%\%VIAGUID.Mic_Select%,Display,1,00,00,00,00
  138. ;; SP/DIF
  139. HKLM,%MediaCategories%\%VIAGUID.SPDIF_Enable%,Name,,%VIANode.SPDIF_Enable%
  140. HKLM,%MediaCategories%\%VIAGUID.SPDIF_Enable%,Display,1,00,00,00,00
  141. [WDM_Config.AddReg]
  142. ;; The below registry is for setting the default value in the mixer control at
  143. ;; driver startup.
  144. ;; The procedure to change the default setting:
  145. ;; (1). Executing "Volune control" application to adjust the volume level.
  146. ;; (2). Restarting Windows.
  147. ;; (3). Executing "REGEDIT.EXE" and searching the registry key listed below,
  148. ;; then update the value of the registry key to the following.
  149. ;;
  150. ;; Note:
  151. ;; (1). The default setting of volume level for Wave and SW Synth can NOT
  152. ;; be set in the WDM Audio Miniport driver and this INF.
  153. ;; (2). Any change in this INF file, you MUST have a new WHQL submission
  154. ;; for getting digital signature.
  155. ;;
  156. ;;---------------------------------+-----------+-----------|
  157. ;; Registry key |DWORD type | value |
  158. ;;---------------------------------+-----------+-----------|
  159. HKR,Settings,VA_WaveOutVolumeL, 0x00010001, 61955
  160. HKR,Settings,VA_WaveOutVolumeR, 0x00010001, 61955
  161. HKR,Settings,VA_WaveOutMute, 0x00010001, 0
  162. HKR,Settings,VA_PCSpeakerVolume, 0x00010001, 4294570499
  163. HKR,Settings,VA_PCSpeakerMute, 0x00010001, 0
  164. HKR,Settings,VA_PhoneVolume, 0x00010001, 389635
  165. HKR,Settings,VA_PhoneMute, 0x00010001, 0
  166. HKR,Settings,VA_MicVolume, 0x00010001, 389635
  167. HKR,Settings,VA_MicMute, 0x00010001, 1
  168. HKR,Settings,VA_MicGain, 0x00010001, 1
  169. ;; for mic2 select
  170. HKR,Settings,VA_MicSelect, 0x00010001, 0
  171. HKR,Settings,VA_LineInVolumeL, 0x00010001, 389635
  172. HKR,Settings,VA_LineInVolumeR, 0x00010001, 389635
  173. HKR,Settings,VA_LineInMute, 0x00010001, 1
  174. HKR,Settings,VA_CDPlayerVolumeL, 0x00010001, 4294570499
  175. HKR,Settings,VA_CDPlayerVolumeR, 0x00010001, 4294570499
  176. HKR,Settings,VA_CDPlayerMute, 0x00010001, 0
  177. HKR,Settings,VA_VideoVolumeL, 0x00010001, 389635
  178. HKR,Settings,VA_VideoVolumeR, 0x00010001, 389635
  179. HKR,Settings,VA_VideoMute, 0x00010001, 1
  180. HKR,Settings,VA_AUXVolumeL, 0x00010001, 389635
  181. HKR,Settings,VA_AUXVolumeR, 0x00010001, 389635
  182. HKR,Settings,VA_AUXMute, 0x00010001, 1
  183. HKR,Settings,VA_3DDepthVolume, 0x00010001, 0x80000000
  184. HKR,Settings,VA_3DDepthEnhance, 0x00010001, 1
  185. HKR,Settings,VA_MasterVolumeL, 0x00010001, 4294570499
  186. HKR,Settings,VA_MasterVolumeR, 0x00010001, 4294570499
  187. HKR,Settings,VA_MasterMute, 0x00010001, 0
  188. HKR,Settings,VA_RecSelect, 0x00010001, 1
  189. HKR,Settings,VA_RecMasterMute, 0x00010001, 0
  190. HKR,Settings,VA_RecStereoMixVolumeL, 0x00010001, 0x00107203
  191. HKR,Settings,VA_RecStereoMixVolumeR, 0x00010001, 0x00107203
  192. HKR,Settings,VA_RecMicVolume, 0x00010001, 0x00107203
  193. HKR,Settings,VA_RecLineInVolumeL, 0x00010001, 0x00107203
  194. HKR,Settings,VA_RecLineInVolumeR, 0x00010001, 0x00107203
  195. HKR,Settings,VA_RecCDPlayerVolumeL, 0x00010001, 0x00107203
  196. HKR,Settings,VA_RecCDPlayerVolumeR, 0x00010001, 0x00107203
  197. HKR,Settings,VA_RecVideoVolumeL, 0x00010001, 0x00107203
  198. HKR,Settings,VA_RecVideoVolumeR, 0x00010001, 0x00107203
  199. HKR,Settings,VA_RecAUXVolumeL, 0x00010001, 0x00107203
  200. HKR,Settings,VA_RecAUXVolumeR, 0x00010001, 0x00107203
  201. HKR,Settings,VA_MonoOutSelect, 0x00010001, 1
  202. HKR,Settings,VA_MonoOutVolume1, 0x00010001, 4294570499
  203. HKR,Settings,VA_MonoOutVolume2, 0x00010001, 4294570499
  204. HKR,Settings,VA_MonoOutMute, 0x00010001, 1
  205. HKR,Settings,VA_HeadphoneVolumeL, 0x00010001, 4294570499
  206. HKR,Settings,VA_HeadphoneVolumeR, 0x00010001, 4294570499
  207. HKR,Settings,VA_HeadphoneMute, 0x00010001, 1
  208. HKR,Settings,VA_MaxMicVol, 0x00010001, 786432
  209. ;HKR,Settings,VA_MaxMicVol, 0x00010001, 0xFFF40000
  210. ;HKR,Settings,VA_MaxRecVol, 0x00010001, 0x00168000
  211. HKR,Settings,VA_SPDIFOutAGC, 0x00010001, 1
  212. HKR,Settings,VA_MaxMasterVol, 0x00010001, 0
  213. ;HKR,Settings,VA_MaxMonoVol1, 0x00010001, 0
  214. ;HKR,Settings,VA_MaxMonoVol2, 0x00010001, 0
  215. ;HKR,Settings,VA_MaxHPOutVol, 0x00010001, 0
  216. [WDM_C2.AddReg]
  217. HKR,Settings,VA_PCSpeakerVolume, 0x00010001, 0xfff9f203
  218. HKR,Settings,VA_CDPlayerVolumeL, 0x00010001, 0xfff9f203
  219. HKR,Settings,VA_CDPlayerVolumeR, 0x00010001, 0xfff9f203
  220. HKR,Settings,VA_MasterVolumeL, 0x00010001, 0xfff9f203
  221. HKR,Settings,VA_MasterVolumeR, 0x00010001, 0xfff9f203
  222. HKR,Settings,VA_MonoOutVolume1, 0x00010001, 0xfff9f203
  223. HKR,Settings,VA_MonoOutVolume2, 0x00010001, 0xfff9f203
  224. HKR,Settings,VA_HeadphoneVolumeL, 0x00010001, 0xfff9f203
  225. HKR,Settings,VA_HeadphoneVolumeR, 0x00010001, 0xfff9f203
  226. HKR,Settings,VA_MaxMicVol, 0x00010001, 0x000c0000
  227. [VIAUDIO_OEM.AddReg]
  228. ;; For the topology configuration, the input line of mixer can be disabled
  229. ;; by outcommenting some of the lines below.
  230. ;HKR,Settings,DisablePCSpeaker,1,1
  231. ;HKR,Settings,DisablePhone,1,1
  232. ;HKR,Settings,DisableVideo,1,1
  233. ;HKR,Settings,DisableAUX,1,1
  234. ;HKR,Settings,DisableLineIn,1,1
  235. ;HKR,Settings,DisableCDPlayer,1,1
  236. ;HKR,Settings,DisableMic,1,1
  237. ;HKR,Settings,DisableMicGain,1,1
  238. ;; for mic2 select
  239. HKR,Settings,DisableMicSelect,1,1
  240. ;HKR,Settings,Disable3DDepth,1,1
  241. HKR,Settings,DisableMonoOut,1,1
  242. HKR,Settings,DisableHeadphone,1,1
  243. HKR,Settings,DisableVolHPhone,1,1
  244. ;HKR,Settings,DisableRecMuteAll,1,1
  245. ;HKR,Settings,DisableSoundEffect,1,1
  246. [DestinationDirs]
  247. DefaultDestDir = 10,system32\drivers
  248. VIAAudio.CopyList = 10,system32\drivers ; %SystemRoot%\system32\drivers
  249. [VIAAudio.CopyList]
  250. ac97via.sys
  251. [WDM_VIAudio.NT]
  252. Include=ks.inf, wdmaudio.inf
  253. Needs=KS.Registration, WDMAUDIO.Registration
  254. CopyFiles=VIAAudio.CopyList
  255. DelReg=WDM_VIAudio.DelReg
  256. AddReg=WDM_VIAudio.AddReg, WDM_VIAGUID.AddReg, WDM_Config.AddReg, WDM_C2.AddReg,VIAUDIO_OEM.AddReg
  257. [WDM_VIAudio.NT.Interfaces]
  258. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  259. AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  260. AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wave%,WDM_VIAudio.Interface.Wave
  261. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,WDM_VIAudio.Interface.Topology
  262. AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_UART%,WDM.Interface.UART
  263. AddInterface=%KSCATEGORY_RENDER%,%KSNAME_UART%,WDM.Interface.UART
  264. AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_UART%,WDM.Interface.UART
  265. [WDM_VIAudio.NT.Services]
  266. AddService = VIAudio, 0x00000002, VIAudio_Service_Inst
  267. [VIAudio_Service_Inst]
  268. DisplayName = %viaudio.SvcDesc%
  269. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  270. StartType = 3 ; SERVICE_DEMAND_START
  271. ErrorControl = 1 ; SERVICE_ERROR_NORMAL
  272. ServiceBinary = %10%\system32\drivers\ac97via.sys