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>
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,