Skip to content
Commit 836a5841 authored by Naushir Patuck's avatar Naushir Patuck Committed by Phil Elwell
Browse files

media: bcm2835-unicam: Fix bug in buffer swapping logic



If multiple sets of interrupts occur simultaneously, it may be unsafe
to swap buffers, as the hardware may already be re-using the current
buffers. In such cases, avoid swapping buffers, and wait for the next
opportunity at the Frame End interrupt to signal completion.

Additionally, check the packet compare status when watching for frame
end for buffers swaps, as this could also signify a frame end event.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent bec820cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment