|
@@ -944,8 +944,6 @@ static int cam_vfe_bus_ver3_acquire_wm(
|
|
wm_idx, wm_res->res_state);
|
|
wm_idx, wm_res->res_state);
|
|
return -EALREADY;
|
|
return -EALREADY;
|
|
}
|
|
}
|
|
- wm_res->res_state = CAM_ISP_RESOURCE_STATE_RESERVED;
|
|
|
|
- wm_res->tasklet_info = tasklet;
|
|
|
|
|
|
|
|
rsrc_data = wm_res->res_priv;
|
|
rsrc_data = wm_res->res_priv;
|
|
wm_idx = rsrc_data->index;
|
|
wm_idx = rsrc_data->index;
|
|
@@ -1247,6 +1245,9 @@ static int cam_vfe_bus_ver3_acquire_wm(
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ wm_res->res_state = CAM_ISP_RESOURCE_STATE_RESERVED;
|
|
|
|
+ wm_res->tasklet_info = tasklet;
|
|
|
|
+
|
|
CAM_DBG(CAM_ISP,
|
|
CAM_DBG(CAM_ISP,
|
|
"VFE:%d WM:%d %s processed width:%d height:%d stride:%d format:0x%X en_ubwc:%d %s",
|
|
"VFE:%d WM:%d %s processed width:%d height:%d stride:%d format:0x%X en_ubwc:%d %s",
|
|
rsrc_data->common_data->core_index, rsrc_data->index,
|
|
rsrc_data->common_data->core_index, rsrc_data->index,
|
|
@@ -1975,7 +1976,7 @@ static int cam_vfe_bus_ver3_acquire_vfe_out(void *bus_priv, void *acquire_args,
|
|
"Failed to acquire comp_grp VFE:%d out_typp:%d rc:%d",
|
|
"Failed to acquire comp_grp VFE:%d out_typp:%d rc:%d",
|
|
rsrc_data->common_data->core_index,
|
|
rsrc_data->common_data->core_index,
|
|
vfe_out_res_id, rc);
|
|
vfe_out_res_id, rc);
|
|
- return rc;
|
|
|
|
|
|
+ goto release_wm;
|
|
}
|
|
}
|
|
|
|
|
|
rsrc_data->is_dual = out_acquire_args->is_dual;
|
|
rsrc_data->is_dual = out_acquire_args->is_dual;
|
|
@@ -1992,8 +1993,6 @@ release_wm:
|
|
cam_vfe_bus_ver3_release_wm(ver3_bus_priv,
|
|
cam_vfe_bus_ver3_release_wm(ver3_bus_priv,
|
|
&rsrc_data->wm_res[i]);
|
|
&rsrc_data->wm_res[i]);
|
|
|
|
|
|
- cam_vfe_bus_ver3_release_comp_grp(ver3_bus_priv, rsrc_data->comp_grp);
|
|
|
|
-
|
|
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|
|
|
|
|