zynqmp_disp..._drm_formats(9)
π zynqmp_disp_layer_drm_formats β a Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today (yes, the zynqmp_disp..._drm_formats(9) one, iykyk) and honestly? this little function is doing the most for you. let's get into it π
β¨ NAME β¨
zynqmp_disp_layer_drm_formats β literally just returns the DRM formats that a layer supports. that's it. that's the whole job. icon behaviour π«Ά
πΈ SYNOPSIS πΈ
u32 * zynqmp_disp_layer_drm_formats (struct zynqmp_disp_layer *layer ,
unsigned int *num_formats );
like, yes, the formatting is a little crunchy, no cap β but it's exactly what's in the source so we're keeping it periodt π
π¦ ARGUMENTS π¦
layerβ the layer. your main character, fr. everything happens through her.num_formatsβ a pointer to the returned number of formats. so you hand over a pointer, the function writes the count in there, and then you know how many formats you're dealing with. simple slay β¨
π NOTE π
okay this is important so listen up bestie π β this function doesn't make sense for live video layers and will always return an empty list in those cases. like, it's giving "wrong tool for the job" energy.
if you actually want the list of media bus formats supported by the live video input layer, you need a different function entirely: zynqmp_disp_live_layer_formats. use that one. she's the one you want for live video π§
π RETURN π
a newly allocated u32 array that stores all the DRM formats supported by the layer. so like, fresh array, all yours, treat her right π
and the number of formats in that array? that comes back to you through the num_formats argument. two-for-one deal, we love to see it π
π SEE ALSO π
okay this list is long and honestly it ate. here's everyone in the group chat π«Ά
- Kernel file
./drivers/gpu/drm/xlnx/zynqmp_disp.cenum 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_live_layer_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)
and that's the whole page bestie, you're officially caught up π
this little gem lives over in ./drivers/gpu/drm/xlnx and the version/date on it is October 2026, filed under zynqmp_disp..._drm_formats(9) β so yeah, go forth and format responsibly, 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