linux/drivers/media/usb
Hans de Goede 93df48d37c media: uvcvideo: Fix uvc_ctrl_fixup_xu_info() not having any effect
uvc_ctrl_add_info() calls uvc_ctrl_get_flags() which will override
the fixed-up flags set by uvc_ctrl_fixup_xu_info().

uvc_ctrl_init_xu_ctrl() already calls uvc_ctrl_get_flags() before
calling uvc_ctrl_add_info(), so the uvc_ctrl_get_flags() call in
uvc_ctrl_add_info() is not necessary for xu ctrls.

This commit moves the uvc_ctrl_get_flags() call for normal controls
from uvc_ctrl_add_info() to uvc_ctrl_init_ctrl(), so that we no longer
call uvc_ctrl_get_flags() twice for xu controls and so that we no longer
override the fixed-up flags set by uvc_ctrl_fixup_xu_info().

This fixes the xu motor controls not working properly on a Logitech
046d:08cc, and presumably also on the other Logitech models which have
a quirk for this in the uvc_ctrl_fixup_xu_info() function.

Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.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
..
airspy media: media/usb: don't set description in ENUM_FMT 2019-07-22 14:01:05 -04:00
as102 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118 2019-05-24 17:39:02 +02:00
au0828 media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
b2c2 treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
cpia2 treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
cx231xx Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
dvb-usb Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
dvb-usb-v2 media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
em28xx media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
go7007 media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
gspca media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
hackrf Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
hdpvr media: usb: hdpvr: convert to use i2c_new_client_device() 2020-04-14 11:31:48 +02:00
msi2500 media: media/usb: don't set description in ENUM_FMT 2019-07-22 14:01:05 -04:00
pvrusb2 media: pvrusb2: fix parsing error 2020-08-26 18:50:11 +02:00
pwc media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
s2255 media: media/usb: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:16 +01:00
siano media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
stk1160 media: media/usb: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:16 +01:00
stkwebcam media: media/usb: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:16 +01:00
tm6000 tm6000: drop unnecessary list_empty 2020-09-01 14:12:36 +02:00
ttusb-budget media: dvb-ttusb-budget: cleanup printk logic 2020-09-03 11:15:47 +02:00
ttusb-dec media: ttusb-dec: convert tasklets to use new tasklet_setup() API 2020-08-29 08:14:42 +02:00
usbtv media: media/usb: use vb2_video_unregister_device() 2020-08-28 15:02:52 +02:00
uvc media: uvcvideo: Fix uvc_ctrl_fixup_xu_info() not having any effect 2020-09-10 14:06:27 +02:00
zr364xx media: docs: move user-facing docs to the admin guide 2020-04-14 10:34:58 +02:00
Kconfig media: move CEC USB drivers to a separate directory 2020-04-15 12:06:40 +02:00
Makefile media: move CEC USB drivers to a separate directory 2020-04-15 12:06:40 +02:00