We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2e19a commit 797a90aCopy full SHA for 797a90a
drivers/media/i2c/imx477.c
@@ -1836,8 +1836,9 @@ static int imx477_start_streaming(struct imx477 *imx477)
1836
1837
/* Set vsync trigger mode: 0=standalone, 1=source, 2=sink */
1838
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);
+ if (tm == 1)
+ imx477_write_reg(imx477, IMX477_REG_TEMP_SEN_CTL,
1841
+ IMX477_REG_VALUE_08BIT, 0);
1842
imx477_write_reg(imx477, IMX477_REG_MC_MODE,
1843
IMX477_REG_VALUE_08BIT, (tm > 0) ? 1 : 0);
1844
imx477_write_reg(imx477, IMX477_REG_MS_SEL,
0 commit comments