mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
msm: vidc: configure work mode for 720p
For 720p or lower, video hardware can run only in a specific work mode. Fix the condition, so that the work mode is configured as desired by firmware CRs-Fixed: 2699234 Change-Id: I8f9ad5030e7a83075a9d2d1bfe2fc39774f4aa56 Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
parent
930011097f
commit
5de4c1dce4
1 changed files with 1 additions and 1 deletions
|
|
@ -1317,7 +1317,7 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst *inst)
|
|||
if (inst->session_type == MSM_VIDC_DECODER) {
|
||||
height = out_f->fmt.pix_mp.height;
|
||||
width = out_f->fmt.pix_mp.width;
|
||||
res_ok = res_is_less_than(width, height, 1280, 720);
|
||||
res_ok = res_is_less_than_or_equal_to(width, height, 1280, 720);
|
||||
if (inp_f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_MPEG2 ||
|
||||
inst->pic_struct != MSM_VIDC_PIC_STRUCT_PROGRESSIVE ||
|
||||
inst->clk_data.low_latency_mode || res_ok) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue