linux/drivers/media/platform/renesas
Tomi Valkeinen 145437cc54 media: rcar-csi2: Use the pad version of v4l2_get_link_freq()
The pad-aware version of v4l2_get_link_freq() tries to retrieve the link
frequency from the media bus configuration using the get_mbus_config
operation, and only if the subdevice does not implement this operation
falls back to the old method of getting it using the V4L2_CID_LINK_FREQ
or V4L2_CID_PIXEL_RATE control.

Update the VIN driver to use the pad-aware version to be able to support
subdevices that only provides the link frequency in the media bus
configuration. As the implementation falls back to the old method if the
subdevice doesn't support get_mbus_config, or doesn't provide a link
frequency in the v4l2_mbus_config struct, this is fully backward
compatible.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250530-rcar-streams-v3-1-026655df7138@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2025-07-10 13:44:58 +02:00
..
rcar-isp media: rcar-isp: Parse named cs memory region 2025-05-02 10:16:43 +02:00
rcar-vin media: rcar-vin: Generate FRAME_SYNC events 2025-06-18 09:20:45 +02:00
rzg2l-cru media: platform: rzg2l-cru: Add support for RAW10/12/14 data 2025-07-03 09:04:14 +02:00
vsp1 media: vsp1: Add missing export.h 2025-07-03 09:04:14 +02:00
Kconfig media: rcar-isp: Move driver to own directory 2025-05-02 10:16:43 +02:00
Makefile media: rcar-isp: Move driver to own directory 2025-05-02 10:16:43 +02:00
rcar-csi2.c media: rcar-csi2: Use the pad version of v4l2_get_link_freq() 2025-07-10 13:44:58 +02:00
rcar-fcp.c media: rcar-fcp: Add rcar_fcp_soft_reset() 2025-06-18 09:20:45 +02:00
rcar_drif.c media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
rcar_fdp1.c media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
rcar_jpu.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
renesas-ceu.c media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
sh_vou.c media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00