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

Commit ff4cf34f authored by Mahesh Voorugonda's avatar Mahesh Voorugonda
Browse files

msm: vidc: Enable workmode 2 for RC_OFF



To support 4k@60fps RC_OFF usecases, work mode 2
is required to enable video session to schedule
on dual core i.e 4k@30 on each core.

Change-Id: I67b0936e996e2e439e8cdc309e818e7a718d76d5
Signed-off-by: default avatarMahesh Voorugonda <mvoorugo@codeaurora.org>
parent f4b99851
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1094,7 +1094,8 @@ int msm_vidc_decide_work_mode(struct msm_vidc_inst *inst)
		if (rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_VBR_VFR ||
		    rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_VBR_CFR ||
		    rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_MBR_CFR ||
		    rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_MBR_VFR)
		    rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_MBR_VFR ||
		    rc_mode == V4L2_CID_MPEG_VIDC_VIDEO_RATE_CONTROL_OFF)
		pdata.video_work_mode = VIDC_WORK_MODE_2;
	} else {
		return -EINVAL;