linux-stable/drivers/media/platform
Alexandre Courbot 87e25f4b2c 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>
2018-12-03 13:20:27 -05:00
..
am437x media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
atmel media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cadence media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
cec-gpio
coda media: coda: debug output when setting visible size via crop selection 2018-11-23 05:36:35 -05:00
cros-ec-cec
davinci media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
exynos-gsc media: exynos-gsc: replace v4l2_crop by v4l2_selection 2018-11-20 13:46:06 -05:00
exynos4-is media: exynos4-is: convert g/s_crop to g/s_selection 2018-11-20 13:53:20 -05:00
marvell-ccic
meson
mtk-jpeg
mtk-mdp
mtk-vcodec media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() 2018-11-23 04:34:10 -05:00
mtk-vpu
omap
omap3isp media: omap3isp: Unregister media device as first 2018-11-06 07:11:06 -05:00
qcom media: venus: fix reported size of 0-length buffers 2018-12-03 13:20:27 -05:00
rcar-vin media: rcar-csi2: Handle per-SoC number of channels 2018-11-23 05:41:51 -05:00
rockchip/rga media: rockchip/rga: constify video_device structure 2018-11-23 06:07:06 -05:00
s3c-camif media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
s5p-cec
s5p-g2d media: s5p-g2d: convert g/s_crop to g/s_selection 2018-11-20 13:53:57 -05:00
s5p-jpeg
s5p-mfc media: s5p_mfc_dec.c: convert g_crop to g_selection 2018-11-20 13:47:46 -05:00
seco-cec media: seco-cec: declare ops as static const 2018-11-23 06:59:41 -05:00
soc_camera media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
sti
stm32 media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
sunxi/sun6i-csi media: sun6i: Add A31 compatible 2018-11-23 05:16:29 -05:00
tegra-cec
ti-vpe
vicodec media: vicodec: constify v4l2_ctrl_ops structure 2018-11-23 06:03:33 -05:00
vimc media: vimc: constify structures stored in fields of v4l2_subdev_ops structure 2018-11-23 06:04:32 -05:00
vivid media: vivid: free bitmap_cap when updating std/timings/etc. 2018-11-23 06:23:40 -05:00
vsp1
xilinx
fsl-viu.c
imx-pxp.c media: imx-pxp: Improve pxp_soft_reset() error message 2018-11-23 05:38:50 -05:00
imx-pxp.h
Kconfig media: sun6i: Add support for Allwinner CSI V3s 2018-11-23 05:15:59 -05:00
m2m-deinterlace.c
Makefile media: sun6i: Add support for Allwinner CSI V3s 2018-11-23 05:15:59 -05:00
mx2_emmaprp.c
pxa_camera.c media: v4l: fwnode: Initialise the V4L2 fwnode endpoints to zero 2018-10-04 16:21:02 -04:00
rcar-fcp.c
rcar_drif.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
rcar_fdp1.c
rcar_jpu.c
renesas-ceu.c media: renesas-ceu: Use default mbus settings 2018-10-04 16:25:33 -04:00
sh_veu.c
sh_vou.c media: doc-rst: Fix broken references 2018-11-23 05:42:49 -05:00
via-camera.c
via-camera.h
video-mux.c
vim2m.c media: vim2m: use cancel_delayed_work_sync instead of flush_schedule_work 2018-11-23 06:20:01 -05:00