media: s5p_mfc_dec.c: convert g_crop to g_selection
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 4 Oct 2018 20:02:42 +0000 (16:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 20 Nov 2018 18:47:46 +0000 (13:47 -0500)
commit8edf27c275a8dcf9f9f8af19345344eaa7f605b6
tree5fe3ad40e58ae798fa9d420ed6879719e5ddbc24
parent9ad763d0eb1a739b8f1bc9e7e8a049139b2a77c2
media: s5p_mfc_dec.c: convert g_crop to g_selection

The g_crop really implemented composition for the CAPTURE stream.

Replace g_crop by g_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.

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/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c