summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-07-02 10:57:15 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:50:24 +0900
commitd5c117ccdde0b9a25161ea033364dbed479a1d55 (patch)
tree1a475ec7cf2a59d760385f8527728967e9920ac2 /drivers/media
parente28b7fdb96800903d74e0504704d38d2062e95ff (diff)
Revert "[media] s5p-mfc: set allow_zero_bytesused flag for vb2_queue_init"
This reverts commit e6c9dec3e7d68c477768e2955c7f8ed78a09bfd6.
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 169ac309be66..d740dbadf195 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -880,13 +880,6 @@ static int s5p_mfc_open(struct file *file)
ret = -ENOENT;
goto err_queue_init;
}
- /* One way to indicate end-of-stream for MFC is to set the
- * bytesused == 0. However by default videobuf2 handles bytesused
- * equal to 0 as a special case and changes its value to the size
- * of the buffer. Set the allow_zero_bytesused flag so that videobuf2
- * will keep the value of bytesused intact.
- */
- q->allow_zero_bytesused = 1;
q->mem_ops = &vb2_dma_contig_memops;
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
ret = vb2_queue_init(q);