linux/drivers/staging
Andrzej Pietrasiewicz d84b9202d7 media: cedrus: Fix .buf_prepare
The driver should only set the payload on .buf_prepare if the
buffer is CAPTURE type. If an OUTPUT buffer has a zero bytesused
set by userspace then v4l2-core will set it to buffer length.

If we overwrite bytesused for OUTPUT buffers, too, then
vb2_get_plane_payload() will return incorrect value which might be then
written to hw registers by the driver in cedrus_h264.c or cedrus_vp8.c.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-06-02 13:10:03 +02:00
..
android
axis-fifo
board
clocking-wizard
emxx_udc staging: emxx_udc: fix loop in _nbu2ss_nuke() 2021-05-20 17:18:35 +02:00
fbtft
fieldbus staging: fieldbus: simplify devm_anybuss_host_common_probe 2021-04-13 09:53:41 +02:00
fwserial TTY/Serial driver updates for 5.13-rc1 2021-04-26 11:20:10 -07:00
gdm724x
greybus spi: Updates for v5.13 2021-04-26 16:32:11 -07:00
gs_fpgaboot
hikey9xx
iio staging: iio: cdc: ad7746: avoid overwrite of num_channels 2021-05-13 16:50:08 +01:00
kpc2000
ks7010
media media: cedrus: Fix .buf_prepare 2021-06-02 13:10:03 +02:00
most
mt7621-dma
mt7621-dts staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk' 2021-04-12 19:10:54 -07:00
mt7621-pci
netlogic
nvec
octeon Networking changes for 5.13. 2021-04-29 11:57:23 -07:00
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu staging: rtl8188eu: remove unused function parameters 2021-04-22 10:42:23 +02:00
rtl8192e staging: rtl8192e: indent statement properly 2021-04-22 10:38:42 +02:00
rtl8192u Staging: rtl8192u: ieee80211: remove odd backslash. 2021-04-12 11:37:47 +02:00
rtl8712
rtl8723bs staging: rtl8723bs: avoid bogus gcc warning 2021-05-10 14:26:24 +02:00
rts5208 staging: rts5208: remove unnecessary ftrace-like logging 2021-04-12 11:40:13 +02:00
sm750fb
unisys
vc04_services ARM: SoC drivers for v5.13 2021-04-26 12:11:52 -07:00
vme
vt6655
vt6656
wfx Networking changes for 5.13. 2021-04-29 11:57:23 -07:00
wlan-ng
Kconfig Networking changes for 5.13. 2021-04-29 11:57:23 -07:00
Makefile Networking changes for 5.13. 2021-04-29 11:57:23 -07:00