OSDN Git Service

media: exynos4-is: convert g/s_crop to g/s_selection
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 4 Oct 2018 19:37:10 +0000 (15:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 20 Nov 2018 18:53:20 +0000 (13:53 -0500)
commit158efdeebc4871aebd4d99ee009a350515e9d509
tree44d0cb2cf4531fe5669ae27c6c61c041b9621e69
parent8edf27c275a8dcf9f9f8af19345344eaa7f605b6
media: exynos4-is: convert g/s_crop to g/s_selection

Replace g/s_crop by g/s_selection and set the V4L2_FL_QUIRK_INVERTED_CROP
flag since this is one of the old drivers that predates the selection
API. Those old drivers allowed g_crop when it really shouldn't have since
g_crop returns a compose rectangle instead of a crop rectangle for the
CAPTURE stream, and vice versa for the OUTPUT stream.

Also drop the now unused vidioc_cropcap.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/exynos4-is/fimc-core.h
drivers/media/platform/exynos4-is/fimc-m2m.c