Skip to content

Commit 77fc3d0

Browse files
committed
Revert "media: imx335: Set vblank immediately"
This reverts commit a9a2c30.
1 parent a460146 commit 77fc3d0

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

drivers/media/i2c/imx335.c

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -615,12 +615,12 @@ static int imx335_set_ctrl(struct v4l2_ctrl *ctrl)
615615
imx335->vblank,
616616
imx335->vblank + imx335->cur_mode->height);
617617

618-
__v4l2_ctrl_modify_range(imx335->exp_ctrl,
619-
IMX335_EXPOSURE_MIN,
620-
imx335->vblank +
621-
imx335->cur_mode->height -
622-
IMX335_EXPOSURE_OFFSET,
623-
1, IMX335_EXPOSURE_DEFAULT);
618+
return __v4l2_ctrl_modify_range(imx335->exp_ctrl,
619+
IMX335_EXPOSURE_MIN,
620+
imx335->vblank +
621+
imx335->cur_mode->height -
622+
IMX335_EXPOSURE_OFFSET,
623+
1, IMX335_EXPOSURE_DEFAULT);
624624
}
625625

626626
/*
@@ -631,13 +631,6 @@ static int imx335_set_ctrl(struct v4l2_ctrl *ctrl)
631631
return 0;
632632

633633
switch (ctrl->id) {
634-
case V4L2_CID_VBLANK:
635-
exposure = imx335->exp_ctrl->val;
636-
analog_gain = imx335->again_ctrl->val;
637-
638-
ret = imx335_update_exp_gain(imx335, exposure, analog_gain);
639-
640-
break;
641634
case V4L2_CID_EXPOSURE:
642635
exposure = ctrl->val;
643636
analog_gain = imx335->again_ctrl->val;

0 commit comments

Comments
 (0)