From: Archit Taneja Date: Fri, 24 Aug 2012 05:41:14 +0000 (+0530) Subject: OMAPDSS: DISPC: Downscale chroma if plane is writeback X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f92afae2af702d209ac86bdb7642edb2f10bf8f3;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git OMAPDSS: DISPC: Downscale chroma if plane is writeback When converting YUYV444 content to YUV422 or NV12 formats through writeback pipeline, the scaler needs to downscale the chroma plane. Ensure that chroma is downscaled when the pipeline is writeback. Signed-off-by: Archit Taneja --- diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index b9e53b3cbe05..435e565a7fc5 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c @@ -1460,7 +1460,7 @@ static void dispc_ovl_set_scaling_uv(enum omap_plane plane, { int scale_x = out_width != orig_width; int scale_y = out_height != orig_height; - bool chroma_upscale = true; + bool chroma_upscale = plane != OMAP_DSS_WB ? true : false; if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE)) return;