| .. | .. |
|---|
| 62 | 62 | |
|---|
| 63 | 63 | #define IMX577_REG_EXPOSURE_H 0x0202 |
|---|
| 64 | 64 | #define IMX577_REG_EXPOSURE_L 0x0203 |
|---|
| 65 | | -#define IMX577_EXPOSURE_MIN 4 |
|---|
| 65 | +#define IMX577_EXPOSURE_MIN 8 |
|---|
| 66 | 66 | #define IMX577_EXPOSURE_STEP 1 |
|---|
| 67 | 67 | #define IMX577_VTS_MAX 0xffff |
|---|
| 68 | 68 | |
|---|
| .. | .. |
|---|
| 971 | 971 | .numerator = 10000, |
|---|
| 972 | 972 | .denominator = 300000, |
|---|
| 973 | 973 | }, |
|---|
| 974 | | - .exp_def = 0x0c10, |
|---|
| 974 | + .exp_def = 0x0c08, |
|---|
| 975 | 975 | .hts_def = 0x11a0, |
|---|
| 976 | 976 | .vts_def = 0x0c1e, |
|---|
| 977 | 977 | .bpp = 10, |
|---|
| .. | .. |
|---|
| 991 | 991 | .numerator = 10000, |
|---|
| 992 | 992 | .denominator = 600000, |
|---|
| 993 | 993 | }, |
|---|
| 994 | | - .exp_def = 0x0c10, |
|---|
| 994 | + .exp_def = 0x0c08, |
|---|
| 995 | 995 | .hts_def = 0x11a0, |
|---|
| 996 | 996 | .vts_def = 0x0c1e, |
|---|
| 997 | 997 | .bpp = 10, |
|---|
| .. | .. |
|---|
| 2031 | 2031 | case V4L2_CID_VBLANK: |
|---|
| 2032 | 2032 | if (imx577->cur_mode->hdr_mode == NO_HDR) { |
|---|
| 2033 | 2033 | /* Update max exposure while meeting expected vblanking */ |
|---|
| 2034 | | - max = imx577->cur_mode->height + ctrl->val - 4; |
|---|
| 2034 | + max = imx577->cur_mode->height + ctrl->val - 22; |
|---|
| 2035 | 2035 | __v4l2_ctrl_modify_range(imx577->exposure, |
|---|
| 2036 | 2036 | imx577->exposure->minimum, max, |
|---|
| 2037 | 2037 | imx577->exposure->step, |
|---|
| .. | .. |
|---|
| 2195 | 2195 | IMX577_VTS_MAX - mode->height, |
|---|
| 2196 | 2196 | 1, vblank_def); |
|---|
| 2197 | 2197 | imx577->cur_vts = mode->vts_def; |
|---|
| 2198 | | - exposure_max = mode->vts_def - 4; |
|---|
| 2198 | + exposure_max = mode->vts_def - 22; |
|---|
| 2199 | 2199 | imx577->exposure = v4l2_ctrl_new_std(handler, &imx577_ctrl_ops, |
|---|
| 2200 | 2200 | V4L2_CID_EXPOSURE, IMX577_EXPOSURE_MIN, |
|---|
| 2201 | 2201 | exposure_max, IMX577_EXPOSURE_STEP, |
|---|