Skip to content

Commit

Permalink
[media] omap3isp: preview: Shorten shadow update delay
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed May 8, 2012
1 parent bac387e commit b0b29e1
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 108 deletions.
Loading

0 comments on commit b0b29e1

Please sign in to comment.