[PATCH v1 03/10] media: platform: mediatek: add isp_7x seninf unit

CK Hu (胡俊光) ck.hu at mediatek.com
Tue Nov 5 21:58:42 PST 2024


Hi, Shu-hsiang:

On Wed, 2024-10-09 at 19:15 +0800, Shu-hsiang Yang wrote:
> Introduces the driver of the MediaTek Sensor Interface,
> focusing on integration with the MediaTek ISP CAMSYS. The
> seninf device bridges camera sensors and the ISP system,
> providing management for sensor data routing and processing.
> Key features include V4L2 framework control, and dynamic
> handling of stream configurations and virtual channels.
> 
> Signed-off-by: Shu-hsiang Yang <Shu-hsiang.Yang at mediatek.com>
> ---

[snip]

> +static int get_pixel_rate(struct seninf_ctx *ctx, struct v4l2_subdev *sd,
> +			  s64 *result)
> +{
> +	struct v4l2_ctrl *ctrl;
> +
> +	ctrl = v4l2_ctrl_find(sd->ctrl_handler, V4L2_CID_PIXEL_RATE);

V4L2_CID_PIXEL_RATE is never set, so this function is redundant. Drop this function.

Regards,
CK

> +	if (!ctrl) {
> +		dev_info(ctx->dev, "no pixel rate in subdev %s\n", sd->name);
> +		return -EINVAL;
> +	}
> +
> +	*result = v4l2_ctrl_g_ctrl_int64(ctrl);
> +
> +	return 0;
> +}
> +


More information about the Linux-mediatek mailing list