diff options
author | Vikash Garodia | 2022-08-08 11:28:34 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2022-09-24 11:21:44 +0200 |
commit | 1d600444f7f811bd554c18195fa7200a9254a24f (patch) | |
tree | 0e324001f910eaff44d04bb15f77fd204680e4cb | |
parent | 2d5dbc7ff664ba320b1b4ed622c0b4c0d3d5b472 (diff) |
media: venus : Allow MIN/MAX settings for the v4l2 encoder controls defined range.
Control MIN/MAX range defined as 0 to 1, as MIN value setting enabled
for V4L2_CID_MPEG_VIDEO_H264_8X8_TRANSFORM.
error details: fail: v4l2-test-controls.cpp(516):
invalid maximum range check
Signed-off-by: Viswanath Boma <quic_vboma@quicinc.com>
Signed-off-by: Vikash Garodia <vgarodia@qti.qualcomm.com>
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r-- | drivers/media/platform/qcom/venus/venc_ctrls.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index 27779c79bf9d..cfcacdb797db 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -337,8 +337,6 @@ static int venc_op_s_ctrl(struct v4l2_ctrl *ctrl) * if we disable 8x8 transform for HP. */ - if (ctrl->val == 0) - return -EINVAL; ctr->h264_8x8_transform = ctrl->val; break; |