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

Commit 6f89ea9d authored by Harsh Shah's avatar Harsh Shah Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Change the RDI Plain16_10 config



Modify the width, height, stride, pack format and enable config
for RDI Bus clients when output format requested is PLAIN16_10
to that of frame-based mode instead of line-based. This makes
the Bus client independent of the accurate width, height values
giving more flexibility.

Change-Id: I1c3eb33d4e73bf9a2bc0e90792364bdaacac21e7
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent 8d16e27a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -851,10 +851,11 @@ static int cam_vfe_bus_acquire_wm(
			rsrc_data->stride = rsrc_data->width;
			break;
		case CAM_FORMAT_PLAIN16_10:
			rsrc_data->en_cfg = 0x1;
			rsrc_data->pack_fmt = 0x2;
			rsrc_data->width = rsrc_data->width * 2;
			rsrc_data->stride = rsrc_data->width;
			rsrc_data->width = CAM_VFE_RDI_BUS_DEFAULT_WIDTH;
			rsrc_data->height = 0;
			rsrc_data->stride = CAM_VFE_RDI_BUS_DEFAULT_STRIDE;
			rsrc_data->pack_fmt = 0x0;
			rsrc_data->en_cfg = 0x3;
			break;
		case CAM_FORMAT_PLAIN16_12:
			rsrc_data->en_cfg = 0x1;