diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-03-06 12:29:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-15 14:18:09 +0200 |
commit | 29e91a49b6fb92832f07b732282f9001a4aeb173 (patch) | |
tree | 679eefb7e99364f8e5f0c6a1e72d03e744f4130c /sound | |
parent | 0342da635054c58095bb21fec5efd0b8f04591df (diff) | |
download | linux-stable-29e91a49b6fb92832f07b732282f9001a4aeb173.tar.gz linux-stable-29e91a49b6fb92832f07b732282f9001a4aeb173.tar.bz2 linux-stable-29e91a49b6fb92832f07b732282f9001a4aeb173.zip |
ivtv: fix incorrect device_caps for ivtvfb
[ Upstream commit 25e94139218c0293b4375233c14f2256d7dcfaa8 ]
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: 2161536516ed (media: media/pci: set device_caps in struct video_device)
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions