From: Hardik Shah Date: Fri, 24 Apr 2009 09:03:48 +0000 (+0530) Subject: DSS2: Rotation attrs for YUV need not to be reversed for 90 and 270 X-Git-Tag: Release-2010-05/1~2^2~86 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=58d687fff6e1458be3a125b4642538c21a8b9f3a DSS2: Rotation attrs for YUV need not to be reversed for 90 and 270 DSS2 supports horizontal mirroing. so only 180 and 0 degree attributes needs to be reversed for mirroring. Slight corrupt image is seen with 90 ad 270 degree rotation with mirroring when the image height and widht is not 32-pixels aligned. To be specific resolution is 168X192. Signed-off-by: Hardik Shah --- diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index b6a39f5eb397..f79decbb7a73 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -1110,9 +1110,9 @@ static void _dispc_set_rotation_attrs(enum omap_plane plane, u8 rotation, if (mirroring) { switch (rotation) { case 0: vidrot = 2; break; - case 1: vidrot = 3; break; + case 1: vidrot = 1; break; case 2: vidrot = 0; break; - case 3: vidrot = 1; break; + case 3: vidrot = 3; break; } } else { switch (rotation) {