WSL2-Linux-Kernel/drivers/media/pci/ivtv
Hans Verkuil 1e77cab218 ivtv: fix incorrect device_caps for ivtvfb
[ Upstream commit 25e9413921 ]

The VIDIOC_G_FBUF and related overlay ioctls no longer worked (-ENOTTY was
returned).

The root cause was the introduction of the caps field in ivtv-driver.h.
While loading the ivtvfb module would update the video_device device_caps
field with V4L2_CAP_VIDEO_OUTPUT_OVERLAY it would not update that caps
field, and that's what the overlay ioctls would look at.

It's a bad idea to keep information in two places, so drop the caps field
and only use vdev.device_caps.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Fixes: 2161536516 (media: media/pci: set device_caps in struct video_device)
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:21 +02:00
..
Kconfig media: ivtv: get rid of DVB deprecated ioctls 2021-06-04 08:06:53 +02:00
Makefile
ivtv-alsa-main.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
ivtv-alsa-pcm.c
ivtv-alsa-pcm.h
ivtv-alsa.h
ivtv-cards.c media: ivtv: Replace http links with https ones 2020-07-19 14:00:32 +02:00
ivtv-cards.h media: ivtv: prevent going past the hw arrays 2021-07-12 09:16:31 +02:00
ivtv-controls.c
ivtv-controls.h
ivtv-driver.c media updates for v5.13-rc1 2021-04-28 09:24:36 -07:00
ivtv-driver.h ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 14:23:21 +02:00
ivtv-fileops.c
ivtv-fileops.h
ivtv-firmware.c
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c media: ivtv: prevent going past the hw arrays 2021-07-12 09:16:31 +02:00
ivtv-i2c.h
ivtv-ioctl.c ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 14:23:21 +02:00
ivtv-ioctl.h
ivtv-irq.c
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 14:23:21 +02:00
ivtv-streams.h
ivtv-udma.c ivtv: convert get_user_pages() --> pin_user_pages() 2020-06-02 10:59:08 -07:00
ivtv-udma.h
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c ivtv: convert get_user_pages() --> pin_user_pages() 2020-06-02 10:59:08 -07:00
ivtv-yuv.h
ivtvfb.c media: ivtv: fix build for UML 2021-11-18 19:16:34 +01:00