Merge "msm: camera: isp: Add check for cid acquire" into camera-kernel.lnx.4.0

Dieser Commit ist enthalten in:
Camera Software Integration
2020-02-04 15:19:06 -08:00
committet von Gerrit - the friendly Code Review server
Commit 3fc621826d

Datei anzeigen

@@ -773,17 +773,39 @@ int cam_ife_csid_cid_reserve(struct cam_ife_csid_hw *csid_hw,
break;
case CAM_CPAS_TITAN_480_V100:
case CAM_CPAS_TITAN_580_V100:
if (cid_reserv->in_port->cust_node == 1) {
if (cid_reserv->in_port->usage_type == 1) {
CAM_ERR(CAM_ISP, "Dual IFE is not supported");
/*
* Assigning existing two IFEs for custom in KONA,
* this needs to be addressed accordingly for
* upcoming targets
*/
if (cid_reserv->in_port->cust_node) {
if (cid_reserv->in_port->usage_type ==
CAM_ISP_RES_USAGE_DUAL) {
CAM_ERR(CAM_ISP,
"Dual IFE is not supported for cust_node %u",
cid_reserv->in_port->cust_node);
rc = -EINVAL;
goto end;
}
if (csid_hw->hw_intf->hw_idx != 0) {
CAM_DBG(CAM_ISP, "CSID%d not eligible",
csid_hw->hw_intf->hw_idx);
rc = -EINVAL;
goto end;
if (cid_reserv->in_port->cust_node ==
CAM_ISP_ACQ_CUSTOM_PRIMARY) {
if (csid_hw->hw_intf->hw_idx != 0) {
CAM_ERR(CAM_ISP, "CSID%d not eligible",
csid_hw->hw_intf->hw_idx);
rc = -EINVAL;
goto end;
}
}
if (cid_reserv->in_port->cust_node ==
CAM_ISP_ACQ_CUSTOM_SECONDARY) {
if (csid_hw->hw_intf->hw_idx != 1) {
CAM_ERR(CAM_ISP, "CSID%d not eligible",
csid_hw->hw_intf->hw_idx);
rc = -EINVAL;
goto end;
}
}
}
break;
@@ -828,7 +850,7 @@ int cam_ife_csid_cid_reserve(struct cam_ife_csid_hw *csid_hw,
case CAM_IFE_PIX_PATH_RES_IPP:
if (csid_hw->ipp_res.res_state !=
CAM_ISP_RESOURCE_STATE_AVAILABLE) {
CAM_DBG(CAM_ISP,
CAM_ERR(CAM_ISP,
"CSID:%d IPP resource not available",
csid_hw->hw_intf->hw_idx);
rc = -EINVAL;