]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: omap3isp: preview: Mark output buffer done first
authorSakari Ailus <sakari.ailus@iki.fi>
Tue, 10 Nov 2015 23:34:18 +0000 (21:34 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 10:29:06 +0000 (08:29 -0200)
commit3452baf3cc0def2482a33766fe24532b15a24b13
tree5fef8a279e70d7e3640dd7c6b60c5b7dae94f2bb
parent5d4679cba78c40b1a07992966f011ae4f86f3436
[media] v4l: omap3isp: preview: Mark output buffer done first

The sequence number counter is incremented on each output buffer, and that
incremented value is used as the sequence number of that buffer. The input
buffer sequence numbering is based just on reading the same counter. If
the input buffer is marked done first, its sequence number ends up being
that of the output buffer - 1.

This is how the resizer works as well.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/isppreview.c