media: i2c: imx335: fixed short exposure calc err in DOL2 mode

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I43ace096af7571b2bc4ef5f2bc2f47d5d0d89163
This commit is contained in:
Zefa Chen
2021-07-08 19:58:22 +08:00
committed by Tao Huang
parent 0328e70fce
commit 39e7cf8ad3

View File

@@ -927,7 +927,7 @@ static int imx335_set_hdrae(struct imx335 *imx335,
rhs1_min = (SHR1_MIN + 4u + 7u) / 8 * 8 + 2;
rhs1 = SHR1_MIN + s_exp_time;
rhs1 = (rhs1 & ~0x7) + 2; /* shall be 8n + 2 */
rhs1 = (rhs1 + 7u) / 8 * 8 + 2; /* shall be 8n + 2 */
if (rhs1 > rhs1_max)
rhs1 = rhs1_max;
if (rhs1 < rhs1_min)