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

Commit c6eec14a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Configure work mode 2 based on rate control"

parents e478c7b7 36568039
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1327,9 +1327,13 @@ static int msm_vidc_decide_work_mode_ar50(struct msm_vidc_inst *inst)
				pdata.video_work_mode = HFI_WORKMODE_1;
			break;
		}
	} else if (inst->session_type == MSM_VIDC_ENCODER)
	} else if (inst->session_type == MSM_VIDC_ENCODER) {
		pdata.video_work_mode = HFI_WORKMODE_1;
	else {
		if (inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR ||
		    inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_MBR ||
		    inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_MBR_VFR)
			pdata.video_work_mode = HFI_WORKMODE_2;
	} else {
		return -EINVAL;
	}