drivers: media: bcm2835_unicam: Improve frame sequence count handling
authorNaushir Patuck <naush@raspberrypi.com>
Fri, 16 Jun 2023 15:24:19 +0000 (16:24 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:36 +0000 (11:33 +0000)
commit48d92ac4a50b9f9cd6ec6c125ae3997d1e7eb6da
tree60da60513ed5b317a0ab3360be2eb22ec7aac7c5
parent0640a3298d0b6ba9db82c98e71965cc714fa6158
drivers: media: bcm2835_unicam: Improve frame sequence count handling

Ensure that the frame sequence counter is incremented only if a previous
frame start interrupt has occurred, or a frame start + frame end has
occurred simultaneously.

This corresponds the sequence number with the actual number of frames
produced by the sensor, not the number of frame buffers dequeued back
to userland.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c