Skip to content

Commit

Permalink
V4L/DVB: mx2_camera: fix for list bufnum in frame_done_emma
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Grzeschik authored and Mauro Carvalho Chehab committed Aug 9, 2010
1 parent b3fc178 commit cd9ebdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ static void mx27_camera_frame_done_emma(struct mx2_camera_dev *pcdev,
buf = list_entry(pcdev->capture.next,
struct mx2_buffer, vb.queue);

buf->bufnum = bufnum;
buf->bufnum = !bufnum;

list_move_tail(pcdev->capture.next, &pcdev->active_bufs);

Expand Down

0 comments on commit cd9ebdb

Please sign in to comment.