Parcourir la source

msm: camera: sensor: Always stream-off at flush in standby mode

Issue:
- In standby mode, aux sensor is streamed-off at flush only if
stream-off command has already been received.
- If flush happens before stream-off command, the sensor is never
streamed off. This causes the next config command to fail.

Fix:
In standby mode, stream off sensor at flush regardless of the
stream-off status.

CRs-Fixed: 3537642
Change-Id: I15956d51dae4a30cdcabbe9d0ed59857c028218e
Signed-off-by: Shravan Nevatia <[email protected]>
(cherry picked from commit d5c922710cea5c19a9bcabda946842ba47d920a5)
Shravan Nevatia il y a 2 ans
Parent
commit
0101ba0568
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/cam_sensor_module/cam_sensor/cam_sensor_core.c

+ 1 - 1
drivers/cam_sensor_module/cam_sensor/cam_sensor_core.c

@@ -2050,7 +2050,7 @@ int32_t cam_sensor_flush_request(struct cam_req_mgr_flush_request *flush_req)
 		 * before EOF, so we need to stream off the sensor during flush
 		 * before EOF, so we need to stream off the sensor during flush
 		 * for VFPS usecase.
 		 * for VFPS usecase.
 		 */
 		 */
-		if (s_ctrl->stream_off_after_eof && s_ctrl->is_stopped_by_user) {
+		if (s_ctrl->stream_off_after_eof) {
 			cam_sensor_stream_off(s_ctrl);
 			cam_sensor_stream_off(s_ctrl);
 			s_ctrl->is_stopped_by_user = false;
 			s_ctrl->is_stopped_by_user = false;
 		}
 		}