mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user