[media] omap3isp: preview: Fix output size computation depending on input format
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 5 Jul 2012 17:31:33 +0000 (14:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 22:36:39 +0000 (19:36 -0300)
commit7103180b4385de908d69815dbd6807879d371cbf
treedb3847302d612996dddd51996e9222913792c09b
parent8299d62843d4dcc5d769ce901799b8e7806ec93f
[media] omap3isp: preview: Fix output size computation depending on input format

The preview engine crops 4 columns and 4 lines when CFA is enabled.
Commit b2da46e52fe7871cba36e1a435844502c0eccf39 ("omap3isp: preview: Add
support for greyscale input") inverted the condition by mistake, fix
this.

Reported-by: Florian Neuhaus <florian.neuhaus@reberinformatik.ch>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Florian Neuhaus <florian.neuhaus@reberinformatik.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isppreview.c