aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-03-05 13:49:19 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-04-23 09:17:21 -0400
commit6051f5f860671577b0759a0d054781b3e599d1cd (patch)
tree62dc42765f81348b4f28a1d938e7d49ba74c6991 /drivers/media
parent4fc7878401f9980a5f1c24caae9b19adf61ea3f8 (diff)
[media] v4l: vsp1: uds: Enable scaling of alpha layer
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/vsp1/vsp1_uds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_uds.c b/drivers/media/platform/vsp1/vsp1_uds.c
index 622342ac7770..1b20f28cbc39 100644
--- a/drivers/media/platform/vsp1/vsp1_uds.c
+++ b/drivers/media/platform/vsp1/vsp1_uds.c
@@ -131,7 +131,7 @@ static int uds_s_stream(struct v4l2_subdev *subdev, int enable)
131 return 0; 131 return 0;
132 132
133 /* Enable multi-tap scaling. */ 133 /* Enable multi-tap scaling. */
134 vsp1_uds_write(uds, VI6_UDS_CTRL, VI6_UDS_CTRL_BC); 134 vsp1_uds_write(uds, VI6_UDS_CTRL, VI6_UDS_CTRL_AON | VI6_UDS_CTRL_BC);
135 135
136 vsp1_uds_write(uds, VI6_UDS_PASS_BWIDTH, 136 vsp1_uds_write(uds, VI6_UDS_PASS_BWIDTH,
137 (uds_passband_width(uds->hscale) 137 (uds_passband_width(uds->hscale)
@@ -139,7 +139,6 @@ static int uds_s_stream(struct v4l2_subdev *subdev, int enable)
139 (uds_passband_width(uds->vscale) 139 (uds_passband_width(uds->vscale)
140 << VI6_UDS_PASS_BWIDTH_V_SHIFT)); 140 << VI6_UDS_PASS_BWIDTH_V_SHIFT));
141 141
142
143 /* Set the scaling ratios and the output size. */ 142 /* Set the scaling ratios and the output size. */
144 format = &uds->entity.formats[UDS_PAD_SOURCE]; 143 format = &uds->entity.formats[UDS_PAD_SOURCE];
145 144