Loading drivers/media/platform/msm/camera/cam_core/cam_context_utils.c +3 −4 Original line number Diff line number Diff line Loading @@ -501,9 +501,8 @@ int32_t cam_context_stop_dev_to_hw(struct cam_context *ctx) mutex_unlock(&ctx->sync_mutex); /* stop hw first */ if (ctx->ctxt_to_hw_map) { if (ctx->hw_mgr_intf->hw_stop) { stop.ctxt_to_hw_map = ctx->ctxt_to_hw_map; if (ctx->hw_mgr_intf->hw_stop) ctx->hw_mgr_intf->hw_stop(ctx->hw_mgr_intf->hw_mgr_priv, &stop); } Loading drivers/media/platform/msm/camera/cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.c +5 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) mutex_lock(&lrme_hw->hw_mutex); if (lrme_hw->open_count > 0) { lrme_hw->open_count++; CAM_DBG(CAM_LRME, "This device is activated before"); goto unlock; } Loading Loading @@ -665,6 +666,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) lrme_hw->open_count++; lrme_core->state = CAM_LRME_CORE_STATE_IDLE; CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); mutex_unlock(&lrme_hw->hw_mutex); return rc; Loading @@ -672,6 +674,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) if (cam_lrme_soc_disable_resources(lrme_hw)) CAM_ERR(CAM_LRME, "Error in disable soc resources"); unlock: CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); mutex_unlock(&lrme_hw->hw_mutex); return rc; } Loading @@ -698,6 +701,8 @@ int cam_lrme_hw_stop(void *hw_priv, void *hw_stop_args, uint32_t arg_size) } lrme_hw->open_count--; CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); if (lrme_hw->open_count) goto unlock; Loading Loading
drivers/media/platform/msm/camera/cam_core/cam_context_utils.c +3 −4 Original line number Diff line number Diff line Loading @@ -501,9 +501,8 @@ int32_t cam_context_stop_dev_to_hw(struct cam_context *ctx) mutex_unlock(&ctx->sync_mutex); /* stop hw first */ if (ctx->ctxt_to_hw_map) { if (ctx->hw_mgr_intf->hw_stop) { stop.ctxt_to_hw_map = ctx->ctxt_to_hw_map; if (ctx->hw_mgr_intf->hw_stop) ctx->hw_mgr_intf->hw_stop(ctx->hw_mgr_intf->hw_mgr_priv, &stop); } Loading
drivers/media/platform/msm/camera/cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.c +5 −0 Original line number Diff line number Diff line Loading @@ -634,6 +634,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) mutex_lock(&lrme_hw->hw_mutex); if (lrme_hw->open_count > 0) { lrme_hw->open_count++; CAM_DBG(CAM_LRME, "This device is activated before"); goto unlock; } Loading Loading @@ -665,6 +666,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) lrme_hw->open_count++; lrme_core->state = CAM_LRME_CORE_STATE_IDLE; CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); mutex_unlock(&lrme_hw->hw_mutex); return rc; Loading @@ -672,6 +674,7 @@ int cam_lrme_hw_start(void *hw_priv, void *hw_start_args, uint32_t arg_size) if (cam_lrme_soc_disable_resources(lrme_hw)) CAM_ERR(CAM_LRME, "Error in disable soc resources"); unlock: CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); mutex_unlock(&lrme_hw->hw_mutex); return rc; } Loading @@ -698,6 +701,8 @@ int cam_lrme_hw_stop(void *hw_priv, void *hw_stop_args, uint32_t arg_size) } lrme_hw->open_count--; CAM_DBG(CAM_LRME, "open count %d", lrme_hw->open_count); if (lrme_hw->open_count) goto unlock; Loading