zynqmp_disp_...r_set_format(9)
π zynqmp_disp_...r_set_format(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes that Kernel API Manual, the one with the truncated title that literally ate its own function name (zynqmp_disp_...r_set_format). iconic behavior honestly. anyway, this page is about setting a layer's format, and it's short and sweet, so let's get into it π
πΈ NAME πΈ
zynqmp_disp_layer_set_format β Set the layer format. that's it. that's the whole name. slay π
β¨ SYNOPSIS β¨
void zynqmp_disp_layer_set_format (struct zynqmp_disp_layer *layer ,
const struct drm_format_info *info );
note the void β this function doesn't return anything, it just does the thing and leaves. main character energy fr fr π
π«Ά ARGUMENTS π«Ά
layerβ The layer. yes that's the whole description, we love a low-effort icon π this is thestruct zynqmp_disp_layer *you're setting the format on.infoβ The format info. also a one-liner, she's mysterious π this is theconst struct drm_format_info *holding the format you want.
π¦ NOTE π¦
π¨ important bestie, listen up π¨
Use zynqmp_disp_layer_set_live_format to set media bus format for live video layers. like, that's a different function for a different situation β don't mix them up, iykyk π§
So: set the format for layer to info. and the one rule that will get you absolutely clowned on if you ignore it β
the layer must be disabled. π₯ not negotiable. not "probably fine". disabled. periodt π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xlnx/zynqmp_disp.c β plus the whole extended friend group, all listed here so you can go read them too:
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_live_layer_formats(9)zynqmp_disp_layer_enable(9)zynqmp_disp_layer_disable(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)
like. that's the whole squad. read them all, they're literally right there π
and that's a wrap bestie ππ this lil page lives in ./drivers/gpu/drm/xlnx, dated October 2026, and the title up top is still zynqmp_disp_...r_set_format(9) because some people fear commitment to full names π go forth and set your formats (with the layer disabled, i'm watching you ππ)
π¦ 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