From 6ed59ad591b18517f9fe1b87a50b4c735e9da38e Mon Sep 17 00:00:00 2001 From: Vikash Garodia Date: Mon, 16 Oct 2017 20:30:14 +0530 Subject: [PATCH] msm: vidc: Fix the type of frame size VIDIOC_ENUM_FRAMESIZES ioctl enumerate all frame sizes that the device supports for the given pixel format. It also provides the type of frame sizes the device supports. The frame type supported is stepwise and it is continuous i.e. the step size is 1. Keeping it as stepwise. Change-Id: I9c801bd3dface3b1d1d824aea124e9c0666e09e1 Signed-off-by: Vikash Garodia --- drivers/media/platform/msm/vidc/msm_vidc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/platform/msm/vidc/msm_vidc.c b/drivers/media/platform/msm/vidc/msm_vidc.c index 733aa4769941..a343bc2d59e4 100644 --- a/drivers/media/platform/msm/vidc/msm_vidc.c +++ b/drivers/media/platform/msm/vidc/msm_vidc.c @@ -1223,10 +1223,7 @@ int msm_vidc_enum_framesizes(void *instance, struct v4l2_frmsizeenum *fsize) } if (capability) { - fsize->type = capability->width.step_size == 1 && - capability->height.step_size == 1 ? - V4L2_FRMSIZE_TYPE_CONTINUOUS : - V4L2_FRMSIZE_TYPE_STEPWISE; + fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; fsize->stepwise.min_width = capability->width.min; fsize->stepwise.max_width = capability->width.max; fsize->stepwise.step_width = capability->width.step_size;