Skip to content

Commit 797a90a

Browse files
fix
1 parent 3c2e19a commit 797a90a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/media/i2c/imx477.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,9 @@ static int imx477_start_streaming(struct imx477 *imx477)
18361836

18371837
/* Set vsync trigger mode: 0=standalone, 1=source, 2=sink */
18381838
tm = (imx477->trigger_mode_of >= 0) ? imx477->trigger_mode_of : trigger_mode;
1839-
imx477_write_reg(imx477, IMX477_REG_TEMP_SEN_CTL,
1840-
IMX477_REG_VALUE_08BIT, (tm != 1) ? 1 : 0);
1839+
if (tm == 1)
1840+
imx477_write_reg(imx477, IMX477_REG_TEMP_SEN_CTL,
1841+
IMX477_REG_VALUE_08BIT, 0);
18411842
imx477_write_reg(imx477, IMX477_REG_MC_MODE,
18421843
IMX477_REG_VALUE_08BIT, (tm > 0) ? 1 : 0);
18431844
imx477_write_reg(imx477, IMX477_REG_MS_SEL,

0 commit comments

Comments
 (0)