From b0d76ae0e59d17cea68cee336d9d1b8d3146ab4d Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Wed, 24 Apr 2019 10:59:04 +0900 Subject: [PATCH] [COMMON] fimc-is2: do not use fast AF trigger when Precapture trigger PR JIRA ID: CPR-990 CRs-fixed: (CR) Change-Id: Idb6311be87729c3e2119199e4047124a6733e9b8 Signed-off-by: Wooyeon Kim Reviewed-on: https://gerrit.mot.com/1342458 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Biming Li Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c index 419ec5036b13..1b4e7b4d450b 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c @@ -2555,13 +2555,15 @@ int fimc_is_group_buffer_queue(struct fimc_is_groupmgr *groupmgr, * it need to copy "afMode & afTrigger" in queued frame * at only AF mode == CONTINUOUS_PICTURE or CONTINUOUS_VIDEO * AF trigger == START + * PreCaptureTrigger != START */ if (test_bit(FIMC_IS_GROUP_OTF_INPUT, &group->state)) { struct fimc_is_frame *prev; - if ((frame->shot->ctl.aa.afMode == AA_AFMODE_CONTINUOUS_VIDEO || - frame->shot->ctl.aa.afMode == AA_AFMODE_CONTINUOUS_PICTURE) - && frame->shot->ctl.aa.afTrigger == AA_AF_TRIGGER_START) { + if (((frame->shot->ctl.aa.afMode == AA_AFMODE_CONTINUOUS_VIDEO || + frame->shot->ctl.aa.afMode == AA_AFMODE_CONTINUOUS_PICTURE) && + frame->shot->ctl.aa.afTrigger == AA_AF_TRIGGER_START) && + frame->shot->ctl.aa.aePrecaptureTrigger != AA_AE_PRECAPTURE_TRIGGER_START) { list_for_each_entry_reverse(prev, &framemgr->queued_list[FS_REQUEST], list) { prev->shot->ctl.aa.afMode = frame->shot->ctl.aa.afMode; -- 2.20.1