linux/drivers/media
Hans Verkuil 1ed36ecd14 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: e6d4ef7d58 ("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>
2020-12-02 16:16:56 +01:00
..
cec media: cec-core: first mark device unregistered, then wake up fhs 2020-11-16 10:31:09 +01:00
common media: siano: fix memory leak of debugfs members in smsdvb_hotplug 2020-11-26 14:26:19 +01:00
dvb-core media: dvbdev: Fix memleak in dvb_register_device 2020-11-17 06:57:54 +01:00
dvb-frontends media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: i2c: imx219: Selection compliance fixes 2020-12-02 16:16:56 +01:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: bttv: use generic power management 2020-11-27 14:11:26 +01:00
platform media: rcar-vin: Rework CSI-2 firmware parsing 2020-12-02 16:12:47 +01:00
radio media: radio-sf16fmr2: use semicolons rather than commas to separate statements 2020-11-16 10:31:07 +01:00
rc media: rc: add keymap for KHAMSIN remote 2020-11-26 14:28:10 +01:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers Linux 5.10-rc6 2020-12-01 16:21:40 +01:00
tuners media: tuners: reduce stack usage in mxl5005s_reconfigure 2020-11-27 13:47:42 +01:00
usb media: uvcvideo: Use DIV_ROUND_CLOSEST directly to make it readable 2020-11-27 10:19:29 +01:00
v4l2-core media: v4l2-fwnode: Remove v4l2_async_notifier_parse_fwnode_endpoints_by_port() 2020-12-02 16:13:59 +01:00
Kconfig media: Remove superfluous dependency for MEDIA_SUPPORT_FILTER 2020-11-27 12:19:25 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00