hdmi_audio_infoframe_unpack(9)
β¨ hdmi_audio_infoframe_unpack(9) β¨
okay so bestie, welcome to the Kernel API Manual π β yes, the actual manual, and yes, this page is about one single function that turns a raw blob of bytes into a nice structured HDMI Audio infoframe. she's iconic, she's specific, let's go π
πΈ NAME πΈ
hdmi_audio_infoframe_unpack β unpack binary buffer to a HDMI AUDIO infoframe
like, that's literally her whole job. unpacking. binary buffer β‘οΈ structured frame. no cap π«Ά
π¦ SYNOPSIS π¦
int hdmi_audio_infoframe_unpack (struct hdmi_audio_infoframe *frame ,
const void *buffer , size_t size );
ok so she takes three things and gives you back an int. that's the whole vibe check β¨
π ARGUMENTS π
frameβ the HDMI Audio infoframe π this is the structured thing you're filling up. she's the destination, the main character of this operation.bufferβ source buffer π the raw binary bytes you're reading from. the messy little pile of data going in.sizeβ size of buffer πΈ yes bestie, you have to tell her how big it is, she's not gonna guess.
π₯ DESCRIPTION π₯
so what actually happens π β she unpacks the information contained in the binary buffer into a structured frame of the HDMI Audio information frame. it's giving glow-up: chaotic bytes in, well-behaved struct out π
and she's thorough, okay? she also verifies the checksum, as required by section 5.3.5 of the HDMI 1.4 specification. checksum verification is mandatory, bestie, it's literally in the spec πβ¨ so no skipping.
Returns 0 on success or a negative error code on failure. π«Ά so like β 0 is the slay outcome, negative = something went wrong and she's telling you about it. not mean, just honest π
π§ SEE ALSO π§
the whole friend group fr fr β she does not exist in a vacuum, and here's everybody:
- Kernel file:
./drivers/video/hdmi.cπ (the source file, the home base, the origin story) - AVI crew π¦:
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 crew πΈ:
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 crew π (her people, lowkey her family):
hdmi_audio_infoframe_init(9),hdmi_audio_infoframe_check(9),hdmi_audio_infoframe_pack_only(9),hdmi_audio_infoframe_pack(9),hdmi_audio_infoframe_pack_for_dp(9) - Vendor crew β:
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 crew π:
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 universal besties who handle everything generically π:
hdmi_infoframe_pack_only(9),hdmi_infoframe_pack(9),hdmi_infoframe_log(9),hdmi_infoframe_unpack(9)
fr fr go read those too, she's not doing this alone and neither should you π
aaaand that's the page, bestie π«Ά this gem lives over in ./drivers/video and it's dated October 2026 β so yeah, she's current, she's fresh, she's the moment. go unpack something iconic π
β¨π
π¦ 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