V4L/DVB: mx2_camera: fix for list bufnum in frame_done_emma
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Tue, 3 Aug 2010 09:37:54 +0000 (06:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:43:03 +0000 (23:43 -0300)
commitcd9ebdbc0541b4e8ee145c81642d68332f79b932
treec71ea77d347fa2d4c134ffa3e18087220633686e
parentb3fc1782c8b84574e44cf5869c9afa75523e2db8
V4L/DVB: mx2_camera: fix for list bufnum in frame_done_emma

The emma uses bufnum 1 and 0. This patch tells the bufqueue to change
the next buffer to the next one and not the current one.
Otherwise the BUG_ON above will trigger everytime.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c