Skip to content

Commit

Permalink
[media] v4l: vsp1: uds: Enable scaling of alpha layer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Apr 23, 2014
1 parent 4fc7878 commit 6051f5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/platform/vsp1/vsp1_uds.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,14 @@ 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)
<< VI6_UDS_PASS_BWIDTH_H_SHIFT) |
(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];

Expand Down

0 comments on commit 6051f5f

Please sign in to comment.