FIMC_BUG(!flash);
+ for (i = 0; i < FLASH_LED_CH_MAX; i++) {
+ if (flash->led_ch[i] >= 0 && flash->flash_data.flash_fired)
+ s2mu106_fled_set_mode_ctrl(flash->led_ch[i], CAM_FLASH_MODE_OFF);
+ }
+
/* TODO: init flash driver */
flash->flash_data.mode = CAM2_FLASH_MODE_OFF;
flash->flash_data.intensity = 100; /* TODO: Need to figure out min/max range */
flash->flash_data.flash_fired = false;
flash->flash_data.cal_en = false;
- for (i = 0; i < FLASH_LED_CH_MAX; i++) {
- if (flash->led_ch[i] >= 0)
- s2mu106_fled_set_mode_ctrl(flash->led_ch[i], CAM_FLASH_MODE_OFF);
- }
-
return ret;
}