Name

hdmi_audio_infoframe_pack — write HDMI audio infoframe to binary buffer

Synopsis

ssize_t hdmi_audio_infoframe_pack (struct hdmi_audio_infoframe * frame,
 void * buffer,
 size_t size);
 

Arguments

frame

HDMI audio infoframe

buffer

destination buffer

size

size of buffer

Description

Packs the information contained in the frame structure into a binary representation that can be written into the corresponding controller registers. Also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification.

Returns the number of bytes packed into the binary buffer or a negative error code on failure.