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

Commit c82eb534 authored by Surajit Podder's avatar Surajit Podder Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Fix issue in split mode for UBWC output



Change in split mode is needed only where there is change
in scan type in linear output case. Add change to enable
this only for linear output.

Change-Id: I57e60329fa7ad0d3f4fc88fa16b996d620b78cbe
Signed-off-by: default avatarSurajit Podder <spodder@codeaurora.org>
parent 403033bb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1209,7 +1209,8 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
			"V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT due to bit-depth change\n");
	}

	if (inst->pic_struct != event_notify->pic_struct) {
	if (inst->fmts[CAPTURE_PORT]->fourcc == V4L2_PIX_FMT_NV12 &&
		inst->pic_struct != event_notify->pic_struct) {
		inst->pic_struct = event_notify->pic_struct;
		event = V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT;
		ptr[2] |= V4L2_EVENT_PICSTRUCT_FLAG;