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

Commit 9b8deb53 authored by Govindaraj Rajagopal's avatar Govindaraj Rajagopal
Browse files

msm: vidc: align input buffer size to 4k for secure usecase



Set format will not update buffer size if there is no change
in format, width or height. So align input buffer size
in kernel once halved during secure playback usecases.

Change-Id: Ic7604d3f1bcefb9193c676e81691cc370018a807
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent 092a3b25
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -440,8 +440,8 @@ static u32 get_frame_size(struct msm_vidc_inst *inst,
		if (inst->flags & VIDC_SECURE) {
			dprintk(VIDC_DBG,
				"Change secure input buffer size from %u to %u\n",
				frame_size, frame_size / 2);
			frame_size = frame_size / 2;
				frame_size, ALIGN(frame_size/2, SZ_4K));
			frame_size = ALIGN(frame_size/2, SZ_4K);
		}

		if (inst->buffer_size_limit &&