]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 28 Nov 2017 00:27:32 +0000 (19:27 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commit943a6a077352bdd10b53642c2202fbe1dcce3cca
treee6779eb9f457e47340c157c90ae7094f8f351190
parent7d898c0fb4c6d4a5078905b35176be56e2bd4512
media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper

To make vsp1_subdev_set_pad_format() usable by entities that support
selection rectangles, we need to reset the crop and compose rectangles
when setting the format on the sink pad. Do so and replace the custom
set_fmt implementation of the histogram code by a call to
vsp1_subdev_set_pad_format().

Resetting the crop and compose rectangles for entities that don't
support crop and compose has no adverse effect as the rectangles are
ignored anyway.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_entity.c
drivers/media/platform/vsp1/vsp1_histo.c