msm: camera: flash: Get the flash on wait time from userspace

This change gets the flash on wait time from userspace to
control the precise flash.

CRs-Fixed: 2929276
Change-Id: Ieac18f6e049b446c5a7b20dcfdff013aa9838575
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
This commit is contained in:
Depeng Shao
2021-04-23 13:00:39 +08:00
parent 8b6740991b
commit 0118523efd
3 changed files with 19 additions and 15 deletions

View File

@@ -547,7 +547,8 @@ struct cam_flash_set_rer {
* CAM_FLASH_OFF
* @cmd_type : Command buffer operation type
* @led_current_ma : Flash led current in ma
* @time_on_duration_ms : Flash time on duration in ns
* @time_on_duration_ns : Flash time on duration in ns
* @led_on_wait_time_ns : Flash led turn on wait time in ns
*
*/
struct cam_flash_set_on_off {
@@ -557,6 +558,7 @@ struct cam_flash_set_on_off {
__u16 reserved;
__u32 led_current_ma[CAM_FLASH_MAX_LED_TRIGGERS];
__u64 time_on_duration_ns;
__u64 led_on_wait_time_ns;
} __attribute__((packed));
/**