The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Ricardo Ribalda <ribalda@chromium.org>,
	Giuliano Lotta <giuliano.lotta@gmail.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Hans Verkuil <hverkuil-cisco@xs4all.nl>,
	Sasha Levin <sashal@kernel.org>,
	hdegoede@redhat.com, mchehab@kernel.org,
	linux-media@vger.kernel.org
Subject: [PATCH AUTOSEL 6.11 09/20] media: uvcvideo: Force UVC version to 1.0a for 0408:4033
Date: Sun, 24 Nov 2024 07:50:39 -0500	[thread overview]
Message-ID: <20241124125124.3339648-9-sashal@kernel.org> (raw)
In-Reply-To: <20241124125124.3339648-1-sashal@kernel.org>

From: Ricardo Ribalda <ribalda@chromium.org>

[ Upstream commit c9df99302fff53b6007666136b9f43fbac7ee3d8 ]

The Quanta ACER HD User Facing camera reports a UVC 1.50 version, but
implements UVC 1.0a as shown by the UVC probe control being 26 bytes
long. Force the UVC version for that device.

Reported-by: Giuliano Lotta <giuliano.lotta@gmail.com>
Closes: https://lore.kernel.org/linux-media/fce4f906-d69b-417d-9f13-bf69fe5c81e3@koyu.space/
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240924-uvc-quanta-v1-1-2de023863767@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/media/usb/uvc/uvc_driver.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index 1f0021f3221e5..79dd5bc729fcc 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2433,6 +2433,17 @@ static const struct uvc_device_info uvc_quirk_force_y8 = {
  */
 static const struct usb_device_id uvc_ids[] = {
 	/* Quanta ACER HD User Facing */
+	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
+				| USB_DEVICE_ID_MATCH_INT_INFO,
+	  .idVendor		= 0x0408,
+	  .idProduct		= 0x4033,
+	  .bInterfaceClass	= USB_CLASS_VIDEO,
+	  .bInterfaceSubClass	= 1,
+	  .bInterfaceProtocol	= UVC_PC_PROTOCOL_15,
+	  .driver_info		= (kernel_ulong_t)&(const struct uvc_device_info){
+		.uvc_version = 0x010a,
+	  } },
+	/* Quanta ACER HD User Facing */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
 				| USB_DEVICE_ID_MATCH_INT_INFO,
 	  .idVendor		= 0x0408,
-- 
2.43.0


  parent reply	other threads:[~2024-11-24 12:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-24 12:50 [PATCH AUTOSEL 6.11 01/20] gpio: free irqs that are still requested when the chip is being removed Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 02/20] spi: spi-fsl-lpspi: Adjust type of scldiv Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 03/20] HID: add per device quirk to force bind to hid-generic Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 04/20] soc: qcom: pd-mapper: Add QCM6490 PD maps Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 05/20] media: v4l: Add luma 16-bit interlaced pixel format Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 06/20] media: uvcvideo: " Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 07/20] media: uvcvideo: RealSense D421 Depth module metadata Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 08/20] media: uvcvideo: Add a quirk for the Kaiweets KTI-W02 infrared camera Sasha Levin
2024-11-24 12:50 ` Sasha Levin [this message]
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 10/20] media: vb2: use lock if wait_prepare/finish are NULL Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 11/20] media: cx231xx: Add support for Dexatek USB Video Grabber 1d19:6108 Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 12/20] mmc: core: Add SD card quirk for broken poweroff notification Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 13/20] mmc: sdhci-esdhc-imx: enable quirks SDHCI_QUIRK_NO_LED Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 14/20] firmware: qcom: scm: Allow QSEECOM on Dell XPS 13 9345 Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 15/20] soc: imx8m: Probe the SoC driver as platform driver Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 16/20] HID: bpf: Fix NKRO on Mistel MD770 Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 17/20] regmap: maple: Provide lockdep (sub)class for maple tree's internal lock Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 18/20] selftests/resctrl: Protect against array overflow when reading strings Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 19/20] USB: gadget: pxa27x_udc: Avoid using GPIOF_ACTIVE_LOW Sasha Levin
2024-11-24 12:50 ` [PATCH AUTOSEL 6.11 20/20] HID: magicmouse: Apple Magic Trackpad 2 USB-C driver support Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241124125124.3339648-9-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=giuliano.lotta@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=ribalda@chromium.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox