summaryrefslogtreecommitdiff
path: root/drivers/media/platform/sunxi
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@chromium.org>2018-11-13 12:30:48 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-03 21:20:27 +0300
commit87e25f4b2c3c85804502c7f2364f396e59f0ff2d (patch)
treee3320969eeee50f15854d92b943d59e0deeebc73 /drivers/media/platform/sunxi
parent61df5aa325fec4f54ee5d27c086ed6e729213ce7 (diff)
downloadlinux-87e25f4b2c3c85804502c7f2364f396e59f0ff2d.tar.xz
media: venus: fix reported size of 0-length buffers
The last buffer is often signaled by an empty buffer with the V4L2_BUF_FLAG_LAST flag set. Such buffers were returned with the bytesused field set to the full size of the OPB, which leads user-space to believe that the buffer actually contains useful data. Fix this by passing the number of bytes reported used by the firmware. Signed-off-by: Alexandre Courbot <acourbot@chromium.org> Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/sunxi')
0 files changed, 0 insertions, 0 deletions