]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: fix crop and compose handling for Gen3
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 11 May 2018 14:41:26 +0000 (10:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 11 May 2018 15:39:51 +0000 (11:39 -0400)
commit94e74d483f224bd79174e975258e6bd1aeb6d17e
tree32447612d3264d8df981f47495729b817475f44e
parent487dbb0e20e3b4c9f198bc8ddfa0e2d5c00fd46d
media: rcar-vin: fix crop and compose handling for Gen3

When refactoring the Gen3 enablement series crop and compose handling
where broken. This went unnoticed but can result in writing out side the
capture buffer. Fix this by restoring the crop and compose to reflect
the format dimensions as we have not yet enabled the scaler for Gen3.

Fixes: 7672deb9b60bb29d ("media: rcar-vin: use different v4l2 operations in media controller mode")
Reported-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/rcar-v4l2.c