linux-stable/drivers/media/pci/ivtv
Hans Verkuil dac04e6911 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 13:57:52 +02:00
..
ivtv-alsa-main.c media: ivtv: drop an unused macro 2021-11-22 08:29:50 +00: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: pci/ivtv: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
ivtv-driver.h ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 13:57:52 +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 13:57:52 +02:00
ivtv-ioctl.h
ivtv-irq.c
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c media: pci/ivtv: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 13:57:52 +02:00
ivtv-streams.h
ivtv-udma.c media: pci/ivtv: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
ivtv-udma.h
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c media: pci/ivtv: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
ivtv-yuv.h
ivtvfb.c media: ivtv: no need to initialise statics to 0 2021-12-14 16:19:04 +01:00
Kconfig media: ivtv: get rid of DVB deprecated ioctls 2021-06-04 08:06:53 +02:00
Makefile