Theory of Operation

This theory of operation topic explains the theory behind the inner working of the new Windows 8.1 support for Bluetooth bypass audio streaming.

When Bluetooth audio is in bypass mode, the audio control path flows through some other hardware connection to the Bluetooth controller, rather than through the host controller interface (HCI). This other hardware connection is often I2S, but can be any interface determined by the Bluetooth host controller. This set of topics refers to this connection as a “bypass” or “sideband” connection.

While audio I/O occurs through the bypass connection, the over-the-air synchronous connection oriented (SCO) audio stream is still managed through the HCI. Windows 8 provides a Bluetooth Hands-Free profile (HFP) driver to hide most of the complexities of managing the SCO connection and other aspects of the Hands-Free profile. However a custom audio driver controls audio data I/O between Windows and the bypass connection.

The separation of roles between the HFP driver and the custom control driver for audio I/O data, means that efficient communication must be established between the Windows HFP driver and the custom audio driver. This communication is handled by a set of IOCTLs that are passed from the custom audio driver to the Windows HFP driver.

Typically the bypass connection itself is always present. The PnP service always enumerates the hardware that includes this connection, and then loads the required audio driver. However, the audio system may or may not have any HFP headsets paired and the bypass connection is only useful if at least one HFP headset is paired.

For each paired HFP device, the Windows HFP driver registers and enables a device interface in the GUID_DEVINTERFACE_BLUETOOTH_HFP_SCO_HCIBYPASS interface class. So the following conditions are true for HFP devices:

  • When Windows activates the HFP driver (normally during boot up), the HFP driver registers and enables an interface for each paired HFP device.

  • When an HFP device is first paired, with Windows already up and running, the HFP driver registers and enables an interface for the device.

  • If there are n paired HFP devices, the Windows HFP driver registers n instances of the device interface.

  • When a paired HFP device is removed, the Windows HFP driver disables the device interface.

  • When Windows stops the HFP driver (normally during shutdown or reboot), the HFP driver disables the interface for each paired HFP device.

  • The audio driver must handle multiple arrivals and removals of interfaces at any time, not just during startup or shutdown.

The following topics provide more information about the connection life cycle and some design features of an HFP device and its audio driver.

HFP Device Startup

HFP Device Connection

HFP Device Removal

Kernel Streaming Considerations

Audio Endpoint Container ID

Management of I2S and SCO Resources


Send comments about this topic to Microsoft