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

Commit 406d3112 authored by Akshay Chandrashekhar Kalghatgi's avatar Akshay Chandrashekhar Kalghatgi
Browse files

msm: vidc: Halve input buffer size during secure playback



Since we have limited carveout memory, in order to have sufficient
memory for dual secure playback, input buffer size is halved.

Change-Id: I733934ebbb85fbfa685ab4080a05d27e5478709c
Signed-off-by: default avatarAkshay Chandrashekhar Kalghatgi <akalghat@codeaurora.org>
parent 205277fa
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -437,6 +437,13 @@ static u32 get_frame_size(struct msm_vidc_inst *inst,
		frame_size = fmt->get_frame_size(plane,
					inst->capability.mbs_per_frame.max,
					MB_SIZE_IN_PIXEL);
		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;
		}

		if (inst->buffer_size_limit &&
			(inst->buffer_size_limit < frame_size)) {
			frame_size = inst->buffer_size_limit;