msm: vidc: enable CSC for HEVC

Allow to use CSC for HEVC encodings.

Change-Id: I059db52215de56cc1dc38c13df5e0d188b4df5d0
Signed-off-by: Shi Zhongbo <zhongbos@codeaurora.org>
This commit is contained in:
Shi Zhongbo 2019-05-09 16:03:39 +08:00 • committed by Gerrit - the friendly Code Review server
commit 37915f1982

View file

@ -3432,7 +3432,8 @@ int msm_venc_set_video_csc(struct msm_vidc_inst *inst)
}
hdev = inst->core->device;
if (get_v4l2_codec(inst) != V4L2_PIX_FMT_H264)
if (get_v4l2_codec(inst) != V4L2_PIX_FMT_H264 &&
get_v4l2_codec(inst) != V4L2_PIX_FMT_HEVC)
return 0;
ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_VPE_CSC);