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

Commit 3944d27f authored by Gaurav Jindal's avatar Gaurav Jindal
Browse files

msm: camera: isp: Add convert RAW10 to RAW8 support in CSID



For some sensors input stream can be of format MIPI_RAW_10 but
the output of CSID should be 8 bit.
This adds support to preserve the 8 MSB and truncate 2 LSBs.

CRs-Fixed: 2940817
Change-Id: I097593bac27ee4ae8859a682c0564f8fdd8c7e91
Signed-off-by: default avatarGaurav Jindal <gjindal@codeaurora.org>
parent 3ce3b662
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -297,6 +297,12 @@ static int cam_ife_csid_get_format_rdi(
		break;
	case CAM_FORMAT_MIPI_RAW_10:
		switch (out_format) {
		case CAM_FORMAT_MIPI_RAW_8:
		case CAM_FORMAT_PLAIN8:
			*plain_fmt = 0x0;
			*decode_fmt = 0x2;
			*packing_fmt = 0;
			break;
		case CAM_FORMAT_MIPI_RAW_10:
		case CAM_FORMAT_PLAIN128:
			*decode_fmt = 0xf;