mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
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:
parent
4fbbdabb0c
commit
82d1ab15cb
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user