;Copyright (c) Microsoft Corporation. All rights reserved.
;
;Module Name:
;    HDAUDBUS.INF
;
;Abstract:
;    INF file for installing the Microsoft UAA Bus Driver for HD Audio
;

[Version]
Signature = "$Windows NT$"
Class = System
ClassGuid = {4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider = %MSFT%
DriverVer = 06/18/2024,10.0.22621.3810
PnPLockdown=1

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
hdaudbus.sys 		= 3426

[DestinationDirs]
Drivers_Dir = 12 ; windows\system32\drivers

;*****************************************
; HDAudio Install Section
;*****************************************

[Manufacturer]
%MSFT% = Microsoft, ntamd64


[ControlFlags]
ExcludeFromSelect = *
PreConfigureDriver=*

[Microsoft.ntamd64]
;
; Hw Id is root\HDAudio
;
%HDAudio.DeviceDesc% = HDAudio_Device, PCI\CC_0403
%HDAudio.DeviceDesc% = HDAudio_Device, ACPI\CLS_0004&SUBCLS_0003

[HDAudio_Device.NT]
Include=wdmaudio.inf
Needs=WDMPORTCLS.CopyFilesOnly
CopyFiles = Drivers_Dir
AddReg = HDAudio.AddReg
AddProperty = HdAudio.AddProperty

[HDAudio_Device.NT.HW]
AddReg = HDAudioHW.AddReg

[Drivers_Dir]
hdaudbus.sys,,,0x0100

[HDAudio.AddReg]
HKR,Settings,DeviceDescription_FUNC_01,,%AUDIOFG%
HKR,Settings,DeviceDescription_FUNC_02,,%MODEMFG%
HKR,Settings,DeviceDescription_Default,,%UNKNOWNFG%
HKR,Settings,DeviceLocation,,%HDAudioBUS%

[HdAudio.AddProperty]
GenericDriverInstalled,,,,1

[HDAudioHW.AddReg]
HKR,Interrupt Management,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,0x00010001,0 
HKR,WDF,WdfDirectedPowerTransitionEnable,0x00010001,1

;-------------- Service installation
[HDAudio_Device.NT.Services]
AddService = HDAudBus, 0x00000002, HDAudio_Service_Inst

; -------------- HDAudio driver install sections
[HDAudio_Service_Inst]
DisplayName    = %HDAudBus.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\HDAudBus.sys
LoadOrderGroup = Extended Base

[SignatureAttributes]
hdaudbus.sys=SignatureAttributes.DRM

[SignatureAttributes.DRM]
DRMLevel=1300


[Strings]
DiskId1 = "Microsoft UAA Bus Driver for High Definition Audio. Installation Disk #1" ; {PlaceHolder="High Definition Audio"}
MSFT = "Microsoft" ; {PlaceHolder="Microsoft"}
HDAudio.DeviceDesc = "High Definition Audio Controller" ; {PlaceHolder="High Definition Audio"}
HDAudBus.SVCDESC = "Microsoft UAA Bus Driver for High Definition Audio" ; {PlaceHolder="UAA","High Definition Audio"}
AUDIOFG = "Audio Device on High Definition Audio Bus" ; {PlaceHolder="High Definition Audio"}
MODEMFG = "Modem Device on High Definition Audio Bus" ; {PlaceHolder="High Definition Audio"}
UNKNOWNFG = "Unknown Device on High Definition Audio Bus" ; {PlaceHolder="High Definition Audio"}
HDAudioBUS = "Internal High Definition Audio Bus" ; {PlaceHolder="High Definition Audio"}
