[media] media: imx: csi: add sink selection rectangles
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jun 2017 18:34:08 +0000 (15:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 10:52:53 +0000 (07:52 -0300)
commit69e78611ffc84be13cf96781e10521103dfe50dd
tree662c5a5793272e97d862cd6d3880491c8ae218fc
parentfb30ee795576a349e86577d06e1bb4a5ce19ba52
[media] media: imx: csi: add sink selection rectangles

Move the crop rectangle to the sink pad and add a sink compose rectangle
to configure scaling. Also propagate rectangles from sink pad to crop
rectangle, to compose rectangle, and to the source pads both in ACTIVE
and TRY variants of set_fmt/selection, and initialize the default crop
and compose rectangles.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/imx-media-csi.c