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

Commit acc0b950 authored by Yizheng Zhou's avatar Yizheng Zhou
Browse files

msm: camera: isp: Support of Y8 format for IFE FD port



Add support of Y8 format for IFE FD port, so that
we may set IFE FD port to output Y8 instead of YUV.
This is because FD does not need UV.

Change-Id: I7f748845a059e3a55a0da6703fc0825af6c701b5
Signed-off-by: default avatarYizheng Zhou <yizhengz@codeaurora.org>
parent 0fff435e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -514,6 +514,8 @@ static int cam_vfe_bus_get_num_wm(
		case CAM_FORMAT_TP10:
		case CAM_FORMAT_PLAIN16_10:
			return 2;
		case CAM_FORMAT_Y_ONLY:
			return 1;
		default:
			break;
		}
@@ -832,6 +834,7 @@ static enum cam_vfe_bus_packer_format
	case CAM_FORMAT_NV12:
	case CAM_FORMAT_UBWC_NV12:
	case CAM_FORMAT_UBWC_NV12_4R:
	case CAM_FORMAT_Y_ONLY:
		return PACKER_FMT_PLAIN_8_LSB_MSB_10;
	case CAM_FORMAT_PLAIN16_16:
		return PACKER_FMT_PLAIN_16_16BPP;
@@ -990,6 +993,7 @@ static int cam_vfe_bus_acquire_wm(
			/* Fall through for NV12 */
		case CAM_FORMAT_NV21:
		case CAM_FORMAT_NV12:
		case CAM_FORMAT_Y_ONLY:
			switch (plane) {
			case PLANE_C:
				rsrc_data->height /= 2;