]> 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)
commit68c3be6aabf0bd00f0ca3ba6526ed0705e497562
tree5fef8a279e70d7e3640dd7c6b60c5b7dae94f2bb
parentb22391b3b5f2b209265a768ccf26b213c92022ac
[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