[media] v4l: vsp1: uds: Enable scaling of alpha layer
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 5 Mar 2014 18:49:19 +0000 (15:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 23 Apr 2014 13:17:21 +0000 (10:17 -0300)
Scaling of the alpha layer is disabled as both the RPF and WPF are
configured to hardcode the alpha value to 255. This results in a 0 alpha
value at the UDS output, making the image invisible when alpha blended
in the BRU. Fix it by enabling scaling of the alpha layer.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_uds.c

index 622342ac77700bb7d2d6f52944a627fd55a09e2c..1b20f28cbc39ae1b56fb6e3000d1ca254aa9526e 100644 (file)
@@ -131,7 +131,7 @@ static int uds_s_stream(struct v4l2_subdev *subdev, int enable)
                return 0;
 
        /* Enable multi-tap scaling. */
-       vsp1_uds_write(uds, VI6_UDS_CTRL, VI6_UDS_CTRL_BC);
+       vsp1_uds_write(uds, VI6_UDS_CTRL, VI6_UDS_CTRL_AON | VI6_UDS_CTRL_BC);
 
        vsp1_uds_write(uds, VI6_UDS_PASS_BWIDTH,
                       (uds_passband_width(uds->hscale)
@@ -139,7 +139,6 @@ static int uds_s_stream(struct v4l2_subdev *subdev, int enable)
                       (uds_passband_width(uds->vscale)
                                << VI6_UDS_PASS_BWIDTH_V_SHIFT));
 
-
        /* Set the scaling ratios and the output size. */
        format = &uds->entity.formats[UDS_PAD_SOURCE];
 
This page took 0.025683 seconds and 5 git commands to generate.