v4l2_enum_dv_timings_cap(9)
π v4l2_enum_dv_timings_cap π
okay bestie, so this is a page from the Kernel API Manual β yes, the kernel, the big one β and it's about one little helper function that does a lot of the heavy lifting for DV timings. sit down, get comfy, we're learning β¨
π NAME π
v4l2_enum_dv_timings_cap β the helper function that enumerates all the possible DV timings you could have, based on what your capabilities actually allow. it's giving "let me check what's on the menu before you order" energy, fr fr π
π¦ SYNOPSIS π¦
int v4l2_enum_dv_timings_cap (struct v4l2_enum_dv_timings *t , const
struct v4l2_dv_timings_cap *cap , v4l2_check_dv_timings_fnc fnc , void
*fnc_handle );
literally four little arguments and it returns an int. we love a clean signature π
πΈ ARGUMENTS πΈ
tβ thev4l2_enum_dv_timingsstruct. this is the one that gets filled in, bestie, it's the main character here πcapβ thev4l2_dv_timings_capcapabilities. this is where the hardware tells you what it can and can't do β¨fncβ a callback to check if this timing is OK. and ngl, it may beNULLβ no pressure, it's optional π«Άfnc_handleβ a handle that gets passed on tofnc. like a little messenger π
π₯ DESCRIPTION π₯
so here's the vibe: this function enumerates dv_timings using the full list of possible CEA-861 and DMT timings β like the entire menu, no skips β and then it filters out any timings that aren't supported. what's it filtering by?
- the hardware capabilities (
cap, iconic) - the callback function, if it's non-
NULL(iykyk)
and then, the payoff: if a valid timing for the given index is found, it fills in t and returns 0 π otherwise? it returns -EINVAL. sad girl hours π but that's just how it is.
π SEE ALSO π
okay so the kernel file to peek at is ./include/media/v4l2-dv-timings.h β go look, it's right there. and here's the whole friend group, all of them, none skipped π
v4l2_calc_timeperframe(9)v4l2_check_dv_timings_fnc(9)v4l2_valid_dv_timings(9)v4l2_find_dv_timings_cap(9)v4l2_find_dv_timings_cea861_vic(9)v4l2_match_dv_timings(9)v4l2_print_dv_timings(9)v4l2_detect_cvt(9)v4l2_detect_gtf(9)v4l2_calc_aspect_ratio(9)v4l2_dv_timings_aspect_ratio(9)can_reduce_fps(9)struct v4l2_hdmi_colorimetry(9)
one tiny note before you go: this page lives at ./include/media and it's dated October 2026, so likeβ¦ future-coded of it honestly π¦
and that's the whole page, bestie!! mwah π this has been your girl walking you through v4l2_enum_dv_timings_cap(9) from the Kernel API Manual, October 2026 edition β periodt, go enumerate something π
β¨π
π¦ 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