hdmi_audio_infoframe_pack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

hdmi_audio_infoframe_pack β€” okay so this one does a vibe check on your HDMI Audio infoframe and then writes it out to a binary buffer, no cap ✨


🌸 SYNOPSIS

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

πŸŽ€ ARGUMENTS

  • frame β€” the HDMI Audio infoframe itself, the main character of this whole operation πŸ‘‘
  • buffer β€” destination buffer, aka where the packed bytes are gonna live
  • size β€” size of buffer, bestie, pls tell it how much room there is

πŸ¦‹ DESCRIPTION

So first things first: it validates that the infoframe is actually consistent 😌 and it updates the derived fields (eg. length) based on the other fields β€” like a little glow-up pass before the packing begins πŸ’…. After that it packs all the information contained in the frame structure into a binary representation that can be written into the corresponding controller registers. Slay.

This function also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification. Iconic behaviour, honestly 🫢.

It returns the number of bytes packed into the binary buffer or a negative error code on failure. So if you get a negative number back… yeah, that's the universe telling you it didn't work 😭

✨ SEE ALSO

Kernel file ./drivers/video/hdmi.c β€” that's where the magic lives 🧚


✨ that's the whole page, bestie ✨ this lil gem lives at ./drivers/video in the Kernel API Manual, dated October 2026 β€” go forth and pack those frames πŸ’…πŸŽ€πŸŒŸ

πŸ“¦ where this page comes from