linux/drivers/media
Adam Goode 8a652a17e3 media: uvcvideo: Ensure all probed info is returned to v4l2
bFrameIndex and bFormatIndex can be negotiated by the camera during
probing, resulting in the camera choosing a different format than
expected. v4l2 can already accommodate such changes, but the code was
not updating the proper fields.

Without such a change, v4l2 would potentially interpret the payload
incorrectly, causing corrupted output. This was happening on the
Elgato HD60 S+, which currently always renegotiates to format 1.

As an aside, the Elgato firmware is buggy and should not be renegotating,
but it is still a valid thing for the camera to do. Both macOS and Windows
will properly probe and read uncorrupted images from this camera.

With this change, both qv4l2 and chromium can now read uncorrupted video
from the Elgato HD60 S+.

[Add blank lines, remove periods at the of messages]

Signed-off-by: Adam Goode <agoode@google.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-10 14:06:27 +02:00
..
cec media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
common Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
dvb-core treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dvb-frontends Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
firewire media: firewire: Using uninitialized values in node_probe() 2020-07-04 11:57:10 +02:00
i2c Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
platform media: rcar-fcp: Drop local dma_parms 2020-09-10 14:06:27 +02:00
radio Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
rc Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
spi media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
test-drivers media: vivid: fix compile warning/error 2020-09-08 11:54:00 +02:00
tuners Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
usb media: uvcvideo: Ensure all probed info is returned to v4l2 2020-09-10 14:06:27 +02:00
v4l2-core Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
Kconfig media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00