HDAUDIO_CODEC_COMMAND structure

The HDAUDIO_CODEC_COMMAND structure specifies a codec command.

Syntax

typedef struct _HDAUDIO_CODEC_COMMAND {
  union {
    struct {
      ULONG Data : 8;
      ULONG VerbId : 12;
      ULONG Node : 8;
      ULONG CodecAddress : 4;
    } Verb8;
    struct {
      ULONG Data : 16;
      ULONG VerbId : 4;
      ULONG Node : 8;
      ULONG CodecAddress : 4;
    } Verb16;
    ULONG Command;
  };
} HDAUDIO_CODEC_COMMAND, *PHDAUDIO_CODEC_COMMAND;

Members

Verb8

Verb8.Data

Specifies an 8-bit data payload value for the 8-bit payload command format.

Verb8.VerbId

Specifies a 12-bit verb identifier for the 8-bit payload command format.

Verb8.Node

Specifies an 8-bit node identifier for the 8-bit payload command format.

Verb8.CodecAddress

Specifies a 4-bit codec address for the 8-bit payload command format.

Verb16

Verb16.Data

Specifies an 16-bit data payload value for the 16-bit payload command format.

Verb16.VerbId

Specifies a 4-bit verb identifier for the 16-bit payload command format.

Verb16.Node

Specifies an 8-bit node identifier for the 16-bit payload command format.

Verb16.CodecAddress

Specifies a 4-bit codec address for the 16-bit payload command format.

Command

Specifies a 32-bit codec command that contains payload data, a verb identifier, a node identifier, and a codec address.

Remarks

Clients call the TransferCodecVerbs routine to pass commands to codecs. The commands are in the HDAUDIO_CODEC_TRANSFER structures that clients pass to this routine as call parameters. Before calling TransferCodecVerbs, function drivers can use the HDAUDIO_CODEC_COMMAND structure to encode the codec commands.

The validity of individual members depends on the type of command sent.

Requirements

   
Header hdaudio.h (include Hdaudio.h)

See also

HDAUDIO_CODEC_TRANSFER

TransferCodecVerbs