hdmi_audio_infoframe_pack(9)
π 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 livesizeβ 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 π§
- AVI fam:
hdmi_avi_infoframe_init(9),hdmi_avi_infoframe_check(9),hdmi_avi_infoframe_pack_only(9),hdmi_avi_infoframe_pack(9),hdmi_avi_infoframe_unpack(9) - SPD fam:
hdmi_spd_infoframe_init(9),hdmi_spd_infoframe_check(9),hdmi_spd_infoframe_pack_only(9),hdmi_spd_infoframe_pack(9),hdmi_spd_infoframe_unpack(9) - Audio fam (hi bestie π):
hdmi_audio_infoframe_init(9),hdmi_audio_infoframe_check(9),hdmi_audio_infoframe_pack_only(9),hdmi_audio_infoframe_pack_for_dp(9),hdmi_audio_infoframe_unpack(9) - Vendor fam:
hdmi_vendor_infoframe_init(9),hdmi_vendor_infoframe_check(9),hdmi_vendor_infoframe_pack_only(9),hdmi_vendor_infoframe_pack(9),hdmi_vendor_any_infoframe_unpack(9) - DRM fam:
hdmi_drm_infoframe_init(9),hdmi_drm_infoframe_check(9),hdmi_drm_infoframe_pack_only(9),hdmi_drm_infoframe_pack(9),hdmi_drm_infoframe_unpack_only(9),hdmi_drm_infoframe_unpack(9) - The generic ones:
hdmi_infoframe_pack_only(9),hdmi_infoframe_pack(9),hdmi_infoframe_log(9),hdmi_infoframe_unpack(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms