aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-24 01:41:14 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-26 07:58:50 -0400
commitf92afae2af702d209ac86bdb7642edb2f10bf8f3 (patch)
tree4e529ea3876a9b433a45e85d58973542b14b6242 /drivers/video
parent36d87d95587825c39ee8e127d56aafeb7dda45da (diff)
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 <archit@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/dss/dispc.c2
1 files changed, 1 insertions, 1 deletions
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,
1460{ 1460{
1461 int scale_x = out_width != orig_width; 1461 int scale_x = out_width != orig_width;
1462 int scale_y = out_height != orig_height; 1462 int scale_y = out_height != orig_height;
1463 bool chroma_upscale = true; 1463 bool chroma_upscale = plane != OMAP_DSS_WB ? true : false;
1464 1464
1465 if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE)) 1465 if (!dss_has_feature(FEAT_HANDLE_UV_SEPARATE))
1466 return; 1466 return;