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

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

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

parents b80e1dfc 5ab9da03
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -1265,15 +1265,7 @@ static int msm_vidc_decide_work_mode_ar50(struct msm_vidc_inst *inst)
			break;
			break;
		}
		}
	} else if (inst->session_type == MSM_VIDC_ENCODER) {
	} else if (inst->session_type == MSM_VIDC_ENCODER) {
		u32 rc_mode = 0;

		pdata.video_work_mode = VIDC_WORK_MODE_1;
		pdata.video_work_mode = VIDC_WORK_MODE_1;
		rc_mode =  msm_comm_g_ctrl_for_id(inst,
				V4L2_CID_MPEG_VIDEO_BITRATE_MODE);
		if (rc_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR ||
		    rc_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_MBR ||
		    rc_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_MBR_VFR)
			pdata.video_work_mode = VIDC_WORK_MODE_2;
	} else {
	} else {
		return -EINVAL;
		return -EINVAL;
	}
	}