| From cead875dee937bb6d819d4a25a932eb6e8304064 Mon Sep 17 00:00:00 2001 |
| From: Sergey Senozhatsky <senozhatsky@chromium.org> |
| Date: Mon, 23 Aug 2021 15:42:51 +0900 |
| Subject: [PATCH] CHROMIUM: media: uvcvideo: add ROI quirk for Quanta Computer |
| user facing camera |
| |
| This webcam has current ROI rectangle configuration that |
| is outside of the MIN/MAX boundaries. |
| |
| ROI current area l:0 t:0 w:724 h:1284 |
| ROI default area l:0 t:0 w:1280 h:720 |
| ROI min bounds area l:0 t:0 w:1 h:1 |
| ROI max bounds area l:0 t:0 w:1284 h:724 |
| |
| Add a quirk. |
| |
| BUG=b:196800810 |
| TEST=v4l2-ctl -l on hatch |
| |
| Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> |
| Change-Id: I4c73371c2a1a517880337e827c20c58082f63387 |
| Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3109293 |
| Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> |
| --- |
| drivers/media/usb/uvc/uvc_driver.c | 9 +++++++++ |
| 1 file changed, 9 insertions(+) |
| |
| diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c |
| index 80d1d7da773c231f34c8c55654273f8d9c57f123..01583e6a23d013b873a81a4ab4572b5a939a21e5 100644 |
| --- a/drivers/media/usb/uvc/uvc_driver.c |
| +++ b/drivers/media/usb/uvc/uvc_driver.c |
| @@ -2474,6 +2474,15 @@ static const struct uvc_device_info uvc_quirk_force_y8 = { |
| * though they are compliant. |
| */ |
| static const struct usb_device_id uvc_ids[] = { |
| + /* Quanta Computer, Inc. HD User Facing */ |
| + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
| + | USB_DEVICE_ID_MATCH_INT_INFO, |
| + .idVendor = 0x0408, |
| + .idProduct = 0xa092, |
| + .bInterfaceClass = USB_CLASS_VIDEO, |
| + .bInterfaceSubClass = 1, |
| + .bInterfaceProtocol = 0, |
| + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_REINIT_ROI) }, |
| /* Quanta USB2.0 HD UVC Webcam */ |
| { .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
| | USB_DEVICE_ID_MATCH_INT_INFO, |
| -- |
| 2.38.1.584.g0f3c55d4c2-goog |
| |