media: i2c: ov01a10: Don't update pixel_rate and link_freq from set_fmt

The pixel_rate and link_freq never change, stop updating them on every
set_fmt.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Hans de Goede 2025-10-14 19:40:21 +02:00 committed by Hans Verkuil
parent 4fbbdabb0c
commit 82d1ab15cb

View File

@ -619,8 +619,6 @@ static int ov01a10_set_format(struct v4l2_subdev *sd,
if (fmt->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
ov01a10->cur_mode = mode;
__v4l2_ctrl_s_ctrl(ov01a10->link_freq, mode->link_freq_index);
__v4l2_ctrl_s_ctrl_int64(ov01a10->pixel_rate, OV01A10_SCLK);
vblank_def = mode->vts_def - mode->height;
__v4l2_ctrl_modify_range(ov01a10->vblank,