[media] coda: re-queue buffers if start_streaming fails
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 21 Oct 2014 16:25:52 +0000 (13:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 17:54:40 +0000 (15:54 -0200)
commitb8b1b58c5dd3d8448ace438bb52ea9f8670fdd5b
treec08f11c58be40488383b6e2a8c44b83befafa18e
parentf2035364ccbf357ae23bddd6ebf67b35ecdc6a67
[media] coda: re-queue buffers if start_streaming fails

Patch b906352c2338 ([media] coda: dequeue buffers if start_streaming fails)
incorrectly marked buffers as DEQUEUED in case of start_streaming failure, when
in fact they should be set to QUEUED. The videobuf2 core warns about this.

Reported-by: Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c