msm: camera: isp: Resume HW only when getting one valid req

Variable fps usecase needs to get valid req with init packet
flag after flush, this change adds a flag to detect if we
get a valid req before resuming HW. This change also stops
the sensors during flush if useland already request to stop
dev.

CRs-Fixed: 3256139
Change-Id: Ieabd327a3b5cf380ca60548c85714c96635a272d
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
This commit is contained in:
Depeng Shao
2022-07-22 16:54:05 +08:00
committed by Camera Software Integration
parent 0bf472ae71
commit 48d9123083
4 changed files with 51 additions and 8 deletions

View File

@@ -271,6 +271,7 @@ struct cam_isp_context_event_record {
* true, if context is rdi only context
* @offline_context: Indicate whether context is for offline IFE
* @vfps_aux_context: Indicate whether context is for VFPS aux link
* @resume_hw_in_flushed: Indicate whether resume hw in flushed state in vfps case
* @hw_acquired: Indicate whether HW resources are acquired
* @init_received: Indicate whether init config packet is received
* @split_acquire: Indicate whether a separate acquire is expected
@@ -327,6 +328,7 @@ struct cam_isp_context {
bool rdi_only_context;
bool offline_context;
bool vfps_aux_context;
bool resume_hw_in_flushed;
bool hw_acquired;
bool init_received;
bool split_acquire;