linux-stable/drivers/staging
Chen-Yu Tsai 30f2e94a8f media: hantro: Empty encoder capture buffers by default
[ Upstream commit 309373a357 ]

The payload size for encoder capture buffers is set by the driver upon
finishing encoding each frame, based on the encoded length returned from
hardware, and whatever header and padding length used. Setting a
non-zero default serves no real purpose, and also causes issues if the
capture buffer is returned to userspace unused, confusing the
application.

Instead, always set the payload size to 0 for encoder capture buffers
when preparing them.

Fixes: 775fec6900 ("media: add Rockchip VPU JPEG encoder driver")
Fixes: 082aaecff3 ("media: hantro: Fix .buf_prepare")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:25:42 +02:00
..
android
axis-fifo
board
clocking-wizard
emxx_udc
fbtft staging: fbtft: fb_st7789v: reset display before initialization 2022-02-15 17:14:22 +01:00
fieldbus
fwserial
gdm724x staging: gdm724x: fix use after free in gdm_lte_rx() 2022-03-01 22:42:32 +01:00
greybus
gs_fpgaboot
iio staging:iio:adc:ad7280a: Fix handing of device address bit reversing. 2022-04-08 13:58:25 +02:00
ks7010
media media: hantro: Empty encoder capture buffers by default 2022-06-09 10:25:42 +02:00
most
mt7621-dts staging: mt7621-dts: fix pinctrl-0 items to be size-1 items on ethernet 2022-04-08 13:58:59 +02:00
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge staging: qlge: add unregister_netdev in qlge_probe 2022-04-08 13:58:24 +02:00
r8188eu staging: r8188eu: fix endless loop in recv_func 2022-04-08 13:58:26 +02:00
rtl8192e Staging drivers update for 5.17-rc1 2022-01-12 11:18:49 -08:00
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: Improve the comment explaining the locking rules 2022-03-02 16:38:24 +01:00
rts5208
sm750fb
unisys
vc04_services staging: vchiq_core: handle NULL result of find_service_by_handle 2022-04-13 19:27:23 +02:00
vme
vt6655
vt6656
wfx staging: wfx: fix an error handling in wfx_init_common() 2022-04-13 19:27:24 +02:00
wlan-ng
Kconfig
Makefile