From 6a12cf34108cc1f664ddc68ada24417564d9da66 Mon Sep 17 00:00:00 2001 From: Adrian Salido-Moreno Date: Wed, 18 Jul 2012 10:26:56 -0700 Subject: [PATCH] mdss: display: remove check for odd dst offsets MDSS does not support odd width, height or src offsets for YUV formats, however odd coordinates are acceptable for dst offsets. Remove odd check done for dst offsets CRs-Fixed: 372900 Change-Id: I69230640f94bf080a8be4ea6d79f0901a7fa72cd Signed-off-by: Adrian Salido-Moreno --- drivers/video/msm/mdss/mdss_mdp_overlay.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/msm/mdss/mdss_mdp_overlay.c b/drivers/video/msm/mdss/mdss_mdp_overlay.c index 43ddb5e88d27..2e9a2dc4ddfa 100644 --- a/drivers/video/msm/mdss/mdss_mdp_overlay.c +++ b/drivers/video/msm/mdss/mdss_mdp_overlay.c @@ -115,11 +115,10 @@ static int mdss_mdp_overlay_req_check(struct msm_fb_data_type *mfd, if (fmt->is_yuv) { if ((req->src_rect.x & 0x1) || (req->src_rect.y & 0x1) || (req->src_rect.w & 0x1) || (req->src_rect.h & 0x1)) { - pr_err("invalid odd src resolution\n"); + pr_err("invalid odd src resolution or coordinates\n"); return -EINVAL; } - if ((req->dst_rect.x & 0x1) || (req->dst_rect.y & 0x1) || - (req->dst_rect.w & 0x1) || (req->dst_rect.h & 0x1)) { + if ((req->dst_rect.w & 0x1) || (req->dst_rect.h & 0x1)) { pr_err("invalid odd dst resolution\n"); return -EINVAL; }