summaryrefslogtreecommitdiff
path: root/drivers/media/platform/rockchip
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-05 13:57:21 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-02 18:16:56 +0300
commit1ed36ecd1459b653cced8929bfb37dba94b64c5d (patch)
tree5f9825a1d314a1eb63f9209b0d5bf5c1027de59b /drivers/media/platform/rockchip
parentf61eb7bc9256aeb173d2d730f59cdd569d261c52 (diff)
downloadlinux-1ed36ecd1459b653cced8929bfb37dba94b64c5d.tar.xz
media: i2c: imx219: Selection compliance fixes
To comply with the intended usage of the V4L2 selection target when used to retrieve a sensor image properties, adjust the rectangles returned by the imx219 driver. The top/left crop coordinates of the TGT_CROP rectangle were set to (0, 0) instead of (8, 8) which is the offset from the larger physical pixel array rectangle. This was also a mismatch with the default values crop rectangle value, so this is corrected. Found with v4l2-compliance. While at it, add V4L2_SEL_TGT_CROP_BOUNDS support: CROP_DEFAULT and CROP_BOUNDS have the same size as the non-active pixels are not readable using the selection API. Found with v4l2-compliance. [reword commit message, use macros for pixel offsets] Fixes: e6d4ef7d58aa7 ("media: i2c: imx219: Implement get_selection") Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/rockchip')
0 files changed, 0 insertions, 0 deletions