Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fac5d457 authored by Jing Zhou's avatar Jing Zhou
Browse files

msm: camera: isp: Add P010 format support in IFE



This change adds the P010 output support in the IFE.

Change-Id: Iceb2472a236f46377fe1b75d151f7500aedf7d92
Signed-off-by: default avatarJing Zhou <jzhou70@codeaurora.org>
parent 064143a8
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -463,6 +463,7 @@ static int cam_vfe_bus_get_num_wm(
		case CAM_FORMAT_UBWC_NV12_4R:
		case CAM_FORMAT_UBWC_TP10:
		case CAM_FORMAT_UBWC_P010:
		case CAM_FORMAT_PLAIN16_10:
			return 2;
		default:
			break;
@@ -954,6 +955,19 @@ static int cam_vfe_bus_acquire_wm(
				return -EINVAL;
			}
			break;
		case CAM_FORMAT_PLAIN16_10:
			switch (plane) {
			case PLANE_C:
				rsrc_data->height /= 2;
				break;
			case PLANE_Y:
				break;
			default:
				CAM_ERR(CAM_ISP, "Invalid plane %d", plane);
				return -EINVAL;
			}
			rsrc_data->width *= 2;
			break;
		default:
			CAM_ERR(CAM_ISP, "Invalid format %d",
				rsrc_data->format);
@@ -990,6 +1004,8 @@ static int cam_vfe_bus_acquire_wm(
	*client_done_mask = (1 << wm_idx);
	*wm_res = wm_res_local;

	CAM_DBG(CAM_ISP, "WM %d: processed width %d, processed  height %d",
		rsrc_data->index, rsrc_data->width, rsrc_data->height);
	return 0;
}