]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: bcm2835-unicam: Improve frame sequence count handling
authorNaushir Patuck <naush@raspberrypi.com>
Wed, 27 Nov 2024 11:15:12 +0000 (11:15 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Dec 2024 11:50:18 +0000 (12:50 +0100)
commitf21ebe2c7defed9f9287778c0ff540be29fe2ce6
tree120691e1b82e1d0507eb281a0d188fa565ba68bd
parentfb6ba073ff0778eabc5028149d436e76ba09ca52
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>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/broadcom/bcm2835-unicam.c