[media] v4l: vsp1: bru: Don't program background color in control set handler
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 1 Nov 2015 14:19:42 +0000 (12:19 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 20:36:38 +0000 (17:36 -0300)
commitf22af945f79a2bd68941efdb57d52e8d81db4d45
tree581f0661851c4a3a0d8bce72fe9c2373789db423
parentef9621bcd6640d48834ec9315dae06e9d7cb5283
[media] v4l: vsp1: bru: Don't program background color in control set handler

The datasheet clearly states that all but a few registers can't be
modified when the device is running. Programming the background color
in the control set handler is thus prohibited. Program it when starting
the module instead.

This requires storing the background color value internally as the
module can be started from the frame completion interrupt handler, and
accessing control values requires taking a mutex.

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_bru.c
drivers/media/platform/vsp1/vsp1_bru.h
This page took 0.028647 seconds and 5 git commands to generate.