1 From 32cf39c92dfd28e18936c31eea90b4d43a3c0968 Mon Sep 17 00:00:00 2001
2 From: Hardik Shah <hardik.shah@ti.com>
3 Date: Fri, 24 Apr 2009 14:33:48 +0530
4 Subject: [PATCH 56/69] DSS2: Rotation attrs for YUV need not to be reversed for 90 and 270
6 DSS2 supports horizontal mirroing. so only 180 and 0 degree attributes needs
7 to be reversed for mirroring.
8 Slight corrupt image is seen with 90 ad 270 degree rotation with mirroring
9 when the image height and widht is not 32-pixels aligned. To be specific
10 resolution is 168X192.
12 Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 drivers/video/omap2/dss/dispc.c | 4 ++--
15 1 files changed, 2 insertions(+), 2 deletions(-)
17 diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
18 index b6a39f5..f79decb 100644
19 --- a/drivers/video/omap2/dss/dispc.c
20 +++ b/drivers/video/omap2/dss/dispc.c
21 @@ -1110,9 +1110,9 @@ static void _dispc_set_rotation_attrs(enum omap_plane plane, u8 rotation,
24 case 0: vidrot = 2; break;
25 - case 1: vidrot = 3; break;
26 + case 1: vidrot = 1; break;
27 case 2: vidrot = 0; break;
28 - case 3: vidrot = 1; break;
29 + case 3: vidrot = 3; break;