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

Commit 0994eb79 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: isp: Configure WM10 as LSB aligned for PDAF" into dev/msm-4.14-camx

parents da36cd6f e1ce3464
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -1053,12 +1053,21 @@ static int cam_vfe_bus_acquire_wm(
			return -EINVAL;
		}
		rsrc_data->en_cfg = 0x1;
	} else if ((rsrc_data->index >= 10) && (rsrc_data->index < 20)) {
		/* Write master 10-19 stats */
	} else if (rsrc_data->index >= 11 && rsrc_data->index < 20) {
		/* Write master 11 - 19 stats */
		rsrc_data->width = 0;
		rsrc_data->height = 0;
		rsrc_data->stride = 1;
		rsrc_data->en_cfg = 0x3;
	} else if (rsrc_data->index == 10) {
		/* Write master 10 - PDAF/2PD */
		rsrc_data->width = 0;
		rsrc_data->height = 0;
		rsrc_data->stride = 1;
		rsrc_data->en_cfg = 0x3;
		if (vfe_out_res_id == CAM_VFE_BUS_VER2_VFE_OUT_PDAF)
			/* LSB aligned */
			rsrc_data->pack_fmt |= 0x10;
	}  else if (rsrc_data->index == 9) {
		/* Write master 9 - Raw dump */
		rsrc_data->width = rsrc_data->width * 2;
@@ -1067,7 +1076,7 @@ static int cam_vfe_bus_acquire_wm(
		/* LSB aligned */
		rsrc_data->pack_fmt |= 0x10;
	}  else {
		/* Write master 5-6 DS ports, 10 PDAF */
		/* Write master 5-6 DS ports */
		uint32_t align_width;

		rsrc_data->width = rsrc_data->width * 4;