Differences Between the HD Audio DDI Versions

The HD Audio DDI is available in three slightly different versions that are defined as follows:

  • A baseline version of the HD Audio DDI, which is defined by the HDAUDIO_BUS_INTERFACE structure. Most function drivers for audio and modem codecs require only the capabilities that this DDI version provides. This version is available through the HD Audio bus drivers that are provided with Windows XP and Windows Vista.

  • An enhanced version of the HD Audio DDI that is defined by the HDAUDIO_BUS_INTERFACE_V2 structure. This version of the DDI provides the additional capability that is required to support DMA-driven event notification with flexibility. It is available in Windows Vista and later versions of Windows.

  • A modified version of the HD Audio DDI that is defined by the HDAUDIO_BUS_INTERFACE_BDL structure. This version accommodates the requirements of a relatively few audio and modem drivers that must have additional control over the setup of buffer descriptor lists (BDLs) for DMA operations. This version of the DDI is available for Windows XP and later versions of Windows. However, use either the HDAUDIO_BUS_INTERFACE or the HDAUDIO_BUS_INTERFACE_V2 DDI version instead. .

In all three structures, the names and types of the first five members match those of the five members of the INTERFACE structure. For information about the values of these members, see Obtaining an HDAUDIO_BUS_INTERFACE DDI Object, Obtaining an HDAUDIO_BUS_INTERFACE_V2 DDI Object or Obtaining an HDAUDIO_BUS_INTERFACE_BDL DDI Object.

The routines in the three versions of the HD Audio DDI perform the following tasks:

  • Transfer commands to codecs and retrieve the responses to those commands.

  • Allocate and set up DMA engines to transfer the data in render and capture streams.

  • Change the stream state of one or more DMA engines to running, paused, stopped, or reset.

  • Reserve link bandwidth for render and capture streams.

  • Provide direct access to the wall clock register and link position registers.

  • Notify clients of unsolicited responses from codecs.

  • Register kernel events so that they can receive DMA progress notifications.

The HDAUDIO_BUS_INTERFACE and HDAUDIO_BUS_INTERFACE_BDL versions of the DDI have the following differences:

When a client calls the AllocateDmaBuffer routine in the first DDI version, the HD Audio bus driver:

  • Allocates a DMA buffer and BDL for a DMA engine to use.

  • Initializes the BDL.

  • Sets up the DMA engine to use the buffer and BDL.

In contrast, the AllocateContiguousDmaBuffer routine in the second DDI version allocates storage for a DMA buffer and BDL, but relies on the caller to initialize the BDL. The SetupDmaEngineWithBdl routine sets up the DMA engine to use the buffer and the caller-initialized BDL.

The BDL contains the list of physical memory blocks in the DMA engine's scatter/gather queue. By calling SetupDmaEngineWithBdl to set up the BDL, the client can specify the points in the data stream at which the DMA engine generates interrupts. The client does this by setting the interrupt-on-completion (IOC) bit in selected BDL entries. With this capability, the client can precisely control the timing of the IOC interrupts that occur during the processing of the audio stream. Audio modem drivers also use the second DDI version to get accurate system clock information.

For more information, see the Intel High Definition Audio Specification.

However, nearly all clients will use the HDAUDIO_BUS_INTERFACE version of the DDI. Only a few clients that require precise control over the timing of interrupts will use the HDAUDIO_BUS_INTERFACE_BDL version.