linux/drivers
Nicolas Dufresne 756901c49e media: hantro: Fix JPEG encoder ENUM_FRMSIZE on RK3399
[ Upstream commit 29bd426764 ]

Since 79c987de8b, enumerating framesize on format set with "MODE_NONE"
(any raw formats) is reporting an invalid frmsize.

  Size: Stepwise 0x0 - 0x0 with step 0/0

Before this change, the driver would return EINVAL, which is also invalid
but worked in GStreamer. The original intent was not to implement it, hence
the -ENOTTY return in this change. While drivers should implement
ENUM_FRMSIZE for all formats and queues, this change is limited in scope to
fix the regression.

This fixes taking picture in Gnome Cheese software, or any software using
GSteamer to encode JPEG with hardware acceleration.

Fixes: 79c987de8b ("media: hantro: Use post processor scaling capacities")
Reported-by: Robert Mader <robert.mader@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tested-by: Robert Mader <robert.mader@collabora.com>
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>
2023-03-10 09:33:43 +01:00
..
accessibility
acpi ACPI: resource: Do IRQ override on all TongFang GMxRGxx 2023-03-10 09:33:04 +01:00
amba
android
ata
atm
auxdisplay
base driver core: fw_devlink: Make cycle detection more robust 2023-03-10 09:33:38 +01:00
bcma
block
bluetooth Bluetooth: hci_qca: get wakeup status from serdev device handle 2023-03-10 09:33:02 +01:00
bus
cdrom
char applicom: Fix PCI device refcount leak in applicom_init() 2023-03-10 09:33:32 +01:00
clk
clocksource clocksource/drivers/riscv: Patch riscv_clock_next_event() jump before first use 2023-03-10 09:33:03 +01:00
comedi
connector
counter
cpufreq cpufreq: davinci: Fix clk use after free 2023-03-10 09:33:01 +01:00
cpuidle
crypto crypto: crypto4xx - Call dma_unmap_page when done 2023-03-10 09:33:04 +01:00
cxl
dax
dca
devfreq
dio
dma dmaengine: ptdma: check for null desc before calling pt_cmd_callback 2023-03-10 09:33:39 +01:00
dma-buf
edac
eisa
extcon
firewire
firmware firmware: dmi-sysfs: Fix null-ptr-deref in dmi_sysfs_register_handle 2023-03-10 09:33:34 +01:00
fpga fpga: microchip-spi: rewrite status polling in a time measurable way 2023-03-10 09:33:34 +01:00
fsi
gnss
gpio gpio: vf610: connect GPIO label to dev name 2023-03-10 09:33:18 +01:00
gpu drm/shmem-helper: Fix locking for drm_gem_shmem_get_pages_sgt() 2023-03-10 09:33:24 +01:00
greybus
hid hid: bigben_probe(): validate report count 2023-03-10 09:33:23 +01:00
hsi
hte
hv
hwmon hwmon: (mlxreg-fan) Return zero speed for broken fan 2023-03-10 09:33:22 +01:00
hwspinlock
hwtracing hwtracing: hisi_ptt: Only add the supported devices to the filters list 2023-03-10 09:33:31 +01:00
i2c i2c: designware: fix i2c_dw_clk_rate() return size to be u32 2023-03-10 09:33:29 +01:00
i3c
idle
iio iio: light: tsl2563: Do not hardcode interrupt trigger type 2023-03-10 09:33:29 +01:00
infiniband IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors 2023-03-10 09:33:40 +01:00
input
interconnect
iommu iommu/vt-d: Allow to use flush-queue when first level is default 2023-03-10 09:33:40 +01:00
ipack
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-10 09:33:07 +01:00
isdn
leds leds: simatic-ipc-leds-gpio: Make sure we have the GPIO providing driver 2023-03-10 09:33:26 +01:00
macintosh
mailbox
mcb
md dm: remove flush_scheduled_work() during local_exit() 2023-03-10 09:33:22 +01:00
media media: hantro: Fix JPEG encoder ENUM_FRMSIZE on RK3399 2023-03-10 09:33:43 +01:00
memory
memstick
message
mfd mfd: pcf50633-adc: Fix potential memleak in pcf50633_adc_async_read() 2023-03-10 09:33:28 +01:00
misc misc: fastrpc: Fix an error handling path in fastrpc_rpmsg_probe() 2023-03-10 09:33:33 +01:00
mmc
most
mtd mtd: mtdpart: Don't create platform device that'll never probe 2023-03-10 09:33:38 +01:00
mux
net net/mlx4_en: Introduce flexible array to silence overflow warning 2023-03-10 09:33:08 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-10 09:33:01 +01:00
parisc
parport
pci PCI: qcom: Fix host-init error handling 2023-03-10 09:33:38 +01:00
pcmcia
peci
perf
phy phy: rockchip-typec: fix tcphy_get_mode error case 2023-03-10 09:33:38 +01:00
pinctrl pinctrl: renesas: rzg2l: Fix configuring the GPIO pins as interrupts 2023-03-10 09:33:17 +01:00
platform platform/chrome: cros_ec_typec: Update port DP VDO 2023-03-10 09:32:52 +01:00
pnp
power power: supply: remove faulty cooling logic 2023-03-10 09:33:36 +01:00
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-10 09:32:56 +01:00
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: tps65219: use generic set_bypass() 2023-03-10 09:33:19 +01:00
remoteproc remoteproc: qcom_q6v5_mss: Use a carveout to authenticate modem headers 2023-03-10 09:33:40 +01:00
reset
rpmsg
rtc
s390 s390: vfio-ap: tighten the NIB validity check 2023-03-10 09:33:02 +01:00
sbus
scsi scsi: aic94xx: Add missing check for dma_map_single() 2023-03-10 09:33:20 +01:00
sh
siox
slimbus
soc
soundwire soundwire: cadence: Don't overflow the command FIFOs 2023-03-10 09:33:29 +01:00
spi spi: synquacer: Fix timeout handling in synquacer_spi_transfer_one() 2023-03-10 09:33:23 +01:00
spmi
ssb
staging media: imx: imx7-media-csi: fix missing clk_disable_unprepare() in imx7_csi_init() 2023-03-10 09:33:41 +01:00
target
tc
tee
thermal thermal/drivers/hisi: Drop second sensor hi3660 2023-03-10 09:33:05 +01:00
thunderbolt
tty tty: serial: imx: disable Ageing Timer interrupt request irq 2023-03-10 09:33:37 +01:00
ufs scsi: ufs: exynos: Fix DMA alignment for PAGE_SIZE != 4096 2023-03-10 09:33:15 +01:00
uio
usb usb: host: fsl-mph-dr-of: reuse device_set_of_node_from_dev 2023-03-10 09:33:38 +01:00
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen xen/grant-dma-iommu: Implement a dummy probe_device() callback 2023-03-10 09:33:02 +01:00
zorro
Kconfig
Makefile