[media] v4l: vsp1: Align crop rectangle to even boundary for YUV formats
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Thu, 28 May 2015 12:59:39 +0000 (09:59 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:26:08 +0000 (08:26 -0300)
commit85a0638b7855dfb00dc9b66bc2fdd4276d7dc87c
treecca5f7951043e75eade160094c2e98abae76cb31
parent1c991fee30c72ff49bb96558d5f1c14a60230677
[media] v4l: vsp1: Align crop rectangle to even boundary for YUV formats

Make sure that there are valid values in the crop rectangle to ensure
that the color plane doesn't get shifted when cropping.
Since there is no distinction between 12bit and 16bit YUV formats in
at the subdev level, use the more restrictive 12bit limits for all YUV
formats.

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_rwpf.c