[media] v4l: vsp1: Set the alpha value manually in RPF and WPF s_stream handlers
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 5 Aug 2015 19:57:35 +0000 (16:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Feb 2016 11:24:32 +0000 (09:24 -0200)
commit3dbb6100146666df45ef83d1552d4da097c60f72
tree3e2f11a6d74068372660f44d4f1f8a3d71e99247
parent96bfa6a5fd1dc5a7f2b5cd6f58bdcf1501146d17
[media] v4l: vsp1: Set the alpha value manually in RPF and WPF s_stream handlers

The RPF and WPF alpha values are set through V4L2 controls and applied
when starting the video stream by a call to v4l2_ctrl_handler_setup().
As that function uses the control handler mutex it can't be called in
interrupt context, where the VSP+DU pipeline handler might need to
reconfigure the pipeline.

Set the alpha value manually in the RPF and WPF s_stream handler to
ensure that the hardware is properly configured even when controlled
without the userspace API. If the userspace API is enabled protect that
with the control lock to avoid race conditions with userspace.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_rpf.c
drivers/media/platform/vsp1/vsp1_rwpf.h
drivers/media/platform/vsp1/vsp1_wpf.c