Skip to content

Commit 101418b

Browse files
huangleimchehab
authored andcommitted
media: uvcvideo: Limit power line control for Sonix Technology
The device does not implement the power line control correctly. Add a corresponding control mapping override. Bus 003 Device 003: ID 3277:0072 Sonix Technology Co., Ltd. USB 2.0 Camera Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x3277 idProduct 0x0072 bcdDevice 1.00 iManufacturer 2 Sonix Technology Co., Ltd. iProduct 1 USB 2.0 Camera iSerial 3 REV0001 bNumConfigurations 1 Signed-off-by: huanglei <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 5f36851 commit 101418b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,6 +3264,15 @@ static const struct usb_device_id uvc_ids[] = {
32643264
.bInterfaceSubClass = 1,
32653265
.bInterfaceProtocol = 0,
32663266
.driver_info = UVC_INFO_QUIRK(UVC_QUIRK_FORCE_BPP) },
3267+
/* Sonix Technology USB 2.0 Camera */
3268+
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
3269+
| USB_DEVICE_ID_MATCH_INT_INFO,
3270+
.idVendor = 0x3277,
3271+
.idProduct = 0x0072,
3272+
.bInterfaceClass = USB_CLASS_VIDEO,
3273+
.bInterfaceSubClass = 1,
3274+
.bInterfaceProtocol = 0,
3275+
.driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited },
32673276
/* Acer EasyCamera */
32683277
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
32693278
| USB_DEVICE_ID_MATCH_INT_INFO,

0 commit comments

Comments
 (0)