hdmi_audio_i...me_pack_only(9)
π hdmi_audio_infoframe_pack_only β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for hdmi_audio_infoframe_pack_only(9), like the function name itself is a whole mouthful but we're gonna get through it together π«Ά
β¨ NAME β¨
hdmi_audio_infoframe_pack_only β write HDMI audio infoframe to binary buffer
like. that's the whole vibe. it packs the thing into bytes. slay.
π SYNOPSIS π
ssize_t hdmi_audio_infoframe_pack_only (const struct
hdmi_audio_infoframe *frame , void *buffer , size_t size );
not me typing const struct hdmi_audio_infoframe *frame three times to make sure i got it right π copy it exactly, alright? character for character, no cap.
π¦ ARGUMENTS π¦
frameβ the HDMI audio infoframe, aka the actual content. this is your main character. frame, if you will.bufferβ destination buffer π the little home where the packed bytes get to live.sizeβ size of buffer. yes queen, you have to tell it how big the destination is. it's not a mind reader.
πΈ DESCRIPTION πΈ
okay so here's the tea β β this function packs the information contained in the frame structure into a binary representation that can be written into the corresponding controller registers. literally it's giving "turn my nice struct into raw bytes so the hardware understands" energy.
and the way that it also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification?? iykyk, that's the iconic part. checksum girlies rise β¨
what does it return, you ask? good question bestie:
- it returns the number of bytes packed into the binary buffer β the good ending π
- or a negative error code on failure β the not-so-good ending π handle it, don't ignore it, fr fr
π SEE ALSO π
Kernel file ./drivers/video/hdmi.c and honestly the whole friend group:
hdmi_avi_infoframe_init(9)hdmi_avi_infoframe_check(9)hdmi_avi_infoframe_pack_only(9)hdmi_avi_infoframe_pack(9)hdmi_spd_infoframe_init(9)hdmi_spd_infoframe_check(9)hdmi_spd_infoframe_pack_only(9)hdmi_spd_infoframe_pack(9)hdmi_audio_infoframe_init(9)hdmi_audio_infoframe_check(9)hdmi_audio_infoframe_pack(9)hdmi_audio_infoframe_pack_for_dp(9)hdmi_vendor_infoframe_init(9)hdmi_vendor_infoframe_check(9)hdmi_vendor_infoframe_pack_only(9)hdmi_vendor_infoframe_pack(9)hdmi_drm_infoframe_init(9)hdmi_drm_infoframe_check(9)hdmi_drm_infoframe_pack_only(9)hdmi_drm_infoframe_pack(9)hdmi_infoframe_pack_only(9)hdmi_infoframe_pack(9)hdmi_infoframe_log(9)hdmi_avi_infoframe_unpack(9)hdmi_spd_infoframe_unpack(9)hdmi_audio_infoframe_unpack(9)hdmi_vendor_any_infoframe_unpack(9)hdmi_drm_infoframe_unpack_only(9)hdmi_drm_infoframe_unpack(9)hdmi_infoframe_unpack(9)
like... that's thirty entries bestie. thirty. i counted. go read some of them, they're all serving π
that's the whole page, mwah π this little number lives in ./drivers/video, dated October 2026, filed under hdmi_audio_i...me_pack_only(9) β yes the name is truncated in the header, no i don't know why, ask the manpage tooling π go pack some infoframes, ily, bye ππ¦π
π¦ 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