[media] coda: set allow_zero_bytesused flag for vb2_queue_init
authorKamil Debski <k.debski@samsung.com>
Mon, 23 Feb 2015 12:26:18 +0000 (09:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 10 Apr 2015 12:47:00 +0000 (09:47 -0300)
commite4af23d33193c4da52fa84b835374e975085f8fd
tree87b05ab569b2b2600ffe14e0536fce0dfb71e6f9
parentf61bf13b6a07a93b9348e77808d369803f40b681
[media] coda: set allow_zero_bytesused flag for vb2_queue_init

The coda driver interprets a buffer with bytesused equal to 0 as a special
case indicating end-of-stream. After vb2: fix bytesused == 0 handling
(8a75ffb) patch videobuf2 modified the value of bytesused if it was 0.
The allow_zero_bytesused flag was added to videobuf2 to keep
backward compatibility.

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