linux/drivers/media/usb
Laurent Pinchart ba95955ee1 media: uvcvideo: Accept invalid bFormatIndex and bFrameIndex values
[ Upstream commit dc9455ffae02d7b7fb51ba1e007fffcb9dc5d890 ]

The Renkforce RF AC4K 300 Action Cam 4K reports invalid bFormatIndex and
bFrameIndex values when negotiating the video probe and commit controls.
The UVC descriptors report a single supported format and frame size,
with bFormatIndex and bFrameIndex both equal to 2, but the video probe
and commit controls report bFormatIndex and bFrameIndex set to 1.

The device otherwise operates correctly, but the driver rejects the
values and fails the format try operation. Fix it by ignoring the
invalid indices, and assuming that the format and frame requested by the
driver are accepted by the device.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=210767

Fixes: 8a652a17e3 ("media: uvcvideo: Ensure all probed info is returned to v4l2")
Reported-by: Till Dörges <doerges@pre-sense.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 10:26:23 +01:00
..
airspy
as102
au0828
b2c2
cpia2
cx231xx
dvb-usb
dvb-usb-v2 media: lmedm04: Fix misuse of comma 2021-03-04 10:26:22 +01:00
em28xx media: em28xx: Fix use-after-free in em28xx_alloc_urbs 2021-03-04 10:26:20 +01:00
go7007
gspca
hackrf
hdpvr
msi2500
pulse8-cec
pvrusb2
pwc
rainshadow-cec
s2255
siano
stk1160
stkwebcam
tm6000 media: tm6000: Fix memleak in tm6000_start_stream 2021-03-04 10:26:21 +01:00
ttusb-budget
ttusb-dec
usbtv
usbvision
uvc media: uvcvideo: Accept invalid bFormatIndex and bFrameIndex values 2021-03-04 10:26:23 +01:00
zr364xx
Kconfig
Makefile