]> git.baikalelectronics.ru Git - kernel.git/commit
[media] omap3isp: preview: Shorten shadow update delay
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 26 Mar 2012 13:24:50 +0000 (10:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 May 2012 17:08:53 +0000 (14:08 -0300)
commit0e4c819ed3dfd2599d1b84cc936bd7edcd679c0c
tree70a2b1cf6c6e61b0ab8af8d6a3d59a9a05d69582
parent6f779f36bf5921c2353fa7cd8a92e15884210be5
[media] omap3isp: preview: Shorten shadow update delay

When applications modify preview engine parameters, the new values are
applied to the hardware by the preview engine interrupt handler during
vertical blanking. If the parameters are being changed when the
interrupt handler is called, it just delays applying the parameters
until the next frame.

If an application modifies the parameters for every frame, and the
preview engine interrupt is triggerred synchronously, the parameters are
never applied to the hardware.

Fix this by storing new parameters in a shadow copy, and switch the
active parameters with the shadow values atomically.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isppreview.c
drivers/media/video/omap3isp/isppreview.h