cvs_csi_set_fmt(9)
β¨ NAME β¨
okay bestie, welcome to cvs_csi_set_fmt(9) β this page is living in the Kernel API Manual, and the function is literally here to negotiate pad format. slay.
πΈ SYNOPSIS πΈ
int cvs_csi_set_fmt (struct v4l2_subdev *sd , struct v4l2_subdev_state *state , struct v4l2_subdev_format *format );
π ARGUMENTS π
sdβ sub-device. the main character device, iykyk.stateβ state. yes bestie, itβs giving exactly what it says.formatβ desired / returned format. so it goes in wanting something and comes back with the format tea.
π DESCRIPTION π
okay so the whole vibe here is simple: it mirrors the sink format onto the source pad. no cap.
It accepts many media bus codes, and if something isnβt supported it falls back to Y8. periodt. It also normalizes the field setting, because we love a clean field setting.
β RETURN β
It returns 0. thatβs it, thatβs the whole return section π
π¦ SEE ALSO π¦
Kernel file ./drivers/media/i2c/cvs/v4l2.c β and the whole friend group:
csi_set_link_cfg(9)cvs_csi_enable_streams(9)cvs_csi_disable_streams(9)cvs_csi_init_state(9)cvs_csi_get_mbus_config(9)cvs_csi_notify_bound(9)cvs_csi_notify_unbind(9)cvs_csi_init_controls(9)cvs_csi_parse_firmware(9)cvs_csi_init(9)cvs_csi_remove(9)
mwah π this page came from ./drivers/media/i2c/cvs, dated October 2026 β iconic source, iconic date, no notes π«Άβ¨
π¦ 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