zynqmp_disp_...ayer_formats(9)
πΈ zynqmp_disp_live_layer_formats β okay bestie, let's talk β¨
So this page lives in the Kernel API Manual (yes, the header up top says zynqmp_disp_...ayer_formats(9), it's giving truncated filename energy, we love that for us π
). Anyway β this is the whole rundown on zynqmp_disp_live_layer_formats, no gatekeeping, iykyk.
π NAME π
zynqmp_disp_live_layer_formats β the function that hands you back the media bus formats the live video layer supports. That's literally it, that's the whole job π¦
β¨ SYNOPSIS β¨
u32 * zynqmp_disp_live_layer_formats (struct zynqmp_disp_layer *layer ,
unsigned int *num_formats );
Two args, one pointer out. Iconic behavior fr fr.
π ARGUMENTS π
layerβ bestie, this is the layer. The one you're asking about. The main character πnum_formatsβ a pointer, and the function drops the returned number of formats into it. So you get the count back through here π«Ά
π NOTE π
Okay so this is important β use this function only for live video input layers. That's the vibe check. Don't come at it with other layer types, it's not built for that π
π₯ RETURN π₯
It gives you a newly allocated u32 array of the media bus formats that the layer supports. Newly allocated, meaning fresh, meaning yours to deal with (you know what that means, don't make me say the f-wordβ¦ free π).
And the number of formats sitting in that array? That comes back to you through the num_formats argument. Count goes out the side door, array goes out the front π«
π¦ SEE ALSO π¦
Everything adjacent, in all its glory β no cap, here's the full stack:
- Kernel file
./drivers/gpu/drm/xlnx/zynqmp_disp.c enum zynqmp_dpsub_layer_mode(9)struct zynqmp_disp_format(9)struct zynqmp_disp_layer_dma(9)struct zynqmp_disp_layer_info(9)struct zynqmp_disp_layer(9)struct zynqmp_disp(9)zynqmp_disp_avbuf_set_format(9)zynqmp_disp_avbuf_set_clocks_sources(9)zynqmp_disp_avbuf_enable_channels(9)zynqmp_disp_avbuf_disable_channels(9)zynqmp_disp_avbuf_enable_audio(9)zynqmp_disp_avbuf_disable_audio(9)zynqmp_disp_avbuf_enable_video(9)zynqmp_disp_avbuf_disable_video(9)zynqmp_disp_avbuf_enable(9)zynqmp_disp_avbuf_disable(9)zynqmp_disp_blend_set_output_format(9)zynqmp_disp_blend_set_bg_color(9)zynqmp_disp_blend_set_global_alpha(9)zynqmp_disp_blend_layer_set_csc(9)zynqmp_disp_blend_layer_enable(9)zynqmp_disp_blend_layer_disable(9)zynqmp_disp_layer_find_format(9)zynqmp_disp_layer_find_live_format(9)zynqmp_disp_layer_drm_formats(9)zynqmp_disp_layer_enable(9)zynqmp_disp_layer_disable(9)zynqmp_disp_layer_set_format(9)zynqmp_disp_layer_set_live_format(9)zynqmp_disp_layer_update(9)zynqmp_disp_layer_release_dma(9)zynqmp_disp_destroy_layers(9)zynqmp_disp_layer_request_dma(9)zynqmp_disp_create_layers(9)zynqmp_disp_enable(9)zynqmp_disp_disable(9)zynqmp_disp_setup_clock(9)
That's the whole thing, bestie β go forth and query those live layer formats π
Source: ./drivers/gpu/drm/xlnx πΈ dated October 2026 πΈ and that's the sign-off, 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