Skip to content
Commit e83a117d authored by Naushir Patuck's avatar Naushir Patuck Committed by Dom Cobley
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 6987c58f
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