linux/drivers/media/platform/exynos4-is
Hans Verkuil eaec420f53 [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling
The type field in struct v4l2_selection is supposed to never use the
_MPLANE variants. E.g. if the driver supports V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,
then userspace should still pass V4L2_BUF_TYPE_VIDEO_CAPTURE.

The reasons for this are lost in the mists of time, but it is really
annoying. In addition, the exynos drivers didn't follow this rule and
instead expected the _MPLANE type.

To fix that code is added to the v4l2 core that maps the _MPLANE buffer
types to their regular equivalents before calling the driver.

Effectively this allows for userspace to use either _MPLANE or the regular
buffer type. This keeps backwards compatibility while making things easier
for userspace.

Since drivers now never see the _MPLANE buffer types the exynos drivers
had to be adapted as well.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-23 09:20:42 -03:00
..
common.c [media] media: use macros to check for V4L2 subdev entities 2016-01-11 12:18:50 -02:00
common.h
fimc-capture.c [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling 2017-06-23 09:20:42 -03:00
fimc-core.c [media] exynos4-is: fimc: Roundup imagesize to row size for tiled formats 2016-11-16 16:24:53 -02:00
fimc-core.h scripts/spelling.txt: add "aligment" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
fimc-is-command.h
fimc-is-errno.c
fimc-is-errno.h
fimc-is-i2c.c [media] media: exynos4-is: add flags to dummy Exynos IS i2c adapter 2017-02-08 10:33:06 -02:00
fimc-is-i2c.h
fimc-is-param.c
fimc-is-param.h
fimc-is-regs.c
fimc-is-regs.h
fimc-is-sensor.c
fimc-is-sensor.h
fimc-is.c [media] exynos4-is: use devm_of_platform_populate() 2017-06-13 14:19:54 -03:00
fimc-is.h [media] exynos4-is: Add support for all required clocks 2016-09-22 10:13:53 -03:00
fimc-isp-video.c [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
fimc-isp-video.h [media] media: videobuf2: Replace videobuf2-core with videobuf2-v4l2 2015-10-01 08:48:18 -03:00
fimc-isp.c [media] exynos4-is: Add missing entity function initialization 2016-09-22 10:14:56 -03:00
fimc-isp.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:42:48 -03:00
fimc-lite-reg.c [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
fimc-lite-reg.h
fimc-lite.c [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling 2017-06-23 09:20:42 -03:00
fimc-lite.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:42:48 -03:00
fimc-m2m.c [media] exynos4-is: Clean up file handle in open() error path 2017-01-31 09:58:42 -02:00
fimc-reg.c [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
fimc-reg.h
Kconfig [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
Makefile
media-dev.c [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
media-dev.h [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
mipi-csis.c [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
mipi-csis.h