v4l2_phys_addr_for_input(9)
π v4l2_phys_addr_for_input(9) β calculate the PA for an input β¨
okay so bestie, welcome to this page from the Kernel API Manual π«Ά it's all about v4l2_phys_addr_for_input, and yes the name is a mouthful but we're gonna slay it together.
πΈ NAME πΈ
v4l2_phys_addr_for_input β calculate the PA for an input π
β¨ SYNOPSIS β¨
u16 v4l2_phys_addr_for_input (u16 phys_addr , u8 input );
π ARGUMENTS π
phys_addrβ the physical address of the parent πinputβ the number of the input port, and it must be between1and15okay?? no sneaky zero, no16, periodt π
π¦ DESCRIPTION π¦
so this function calculates a new physical address based on the input port number. it's giving "math but make it media" β¨ for example:
PA = 0.0.0.0 and input = 2 becomes 2.0.0.0
PA = 3.0.0.0 and input = 1 becomes 3.1.0.0
PA = 3.2.1.0 and input = 5 becomes 3.2.1.5
PA = 3.2.1.3 and input = 5 becomes f.f.f.f since it maxed out the depth.
lowkey important: that last one goes full f.f.f.f because it maxed out the depth, no cap π
π« RETURN π«
the new physical address or CEC_PHYS_ADDR_INVALID π that's it, that's the return.
π SEE ALSO π
- Kernel file
./drivers/media/v4l2-core/v4l2-dv-timings.cπ v4l2_match_dv_timings(9)v4l2_num_edid_blocks(9)v4l2_get_edid_phys_addr(9)v4l2_set_edid_phys_addr(9)v4l2_phys_addr_validate(9)
okay bye bestie, this cutie page came from ./drivers/media/v4l2-core, dated October 2026, and it's literally the manual for v4l2_phys_addr_for_input(9) β mwah πβ¨
π¦ 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