From patchwork Fri Aug 30 11:07:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: amilsananak X-Patchwork-Id: 13784951 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C348318C004 for ; Fri, 30 Aug 2024 11:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725016064; cv=none; b=B3cqhgv/XpVunFwWfY/MqwxVvETaQwqXCj/wVskE082TqvI1KD6GP44O9Lcmz1dQ0HRRnUDoWu8h1qdxX/dSXdYTqN3Ni6tYBLHu+8KXudjx2Bslqa3a7oLfKlTh3xFv7dX8h3OcwtIUv6outeix1HXFGcS4FfbP799EX9Aq1rY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725016064; c=relaxed/simple; bh=ddcZUJP0lCNCsUD6ceogR0mhZnTc+Iic2YylUI2pFkc=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=JahLn8ZvIk0KAk3sTQVyxjC9Q4E8ZBEk4pickHblHAZDsAmtX4O8hpOWqCyiHTkoWc1ydxSyUmN+/BLJEFaPdvMFWyb/iAtb11h8sWXt8qlDYFN/w0Vozu+eDYEniDVcS/SJqmM+NnocYCH2N39kT50dAC3ZTVSilCXeisUCP1I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iWinfTNZ; arc=none smtp.client-ip=209.85.210.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iWinfTNZ" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-70f645a30dcso808801a34.3 for ; Fri, 30 Aug 2024 04:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725016062; x=1725620862; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ySADW4Kq/EaBWp1PPWZaR2Cv2x4kzBk5nUHxU8XVBos=; b=iWinfTNZTe+WkgbYeiThf2ASM3AcvvaQlL8jU/ZzOiWqSqejd1IU7LyAnzS8KYyr7I /CkDt8e8glXV1bvBC8ewDASv4Xye1Mg9p84ebuNSqc3BtWP54FWB3FJrKK0zlBF2NCZc 2Kld2LsYt85RW0GRzXRCPyXkHif5cOMxc5RkhO34TOaC0hke3MSX6LSexY4Jn69HWZw0 3az3zhFYf/H5ePQ2CoexY7gYOTBXHT5081FWPS0p0PcAst8LxLNWNUPxHqFjRShoU8DE JRJY3qH5JCsmu3A96nmaY/6Jir/rQC/X/7ONPhXylVDCck5mVJlX/b29v4UvGQ6wihIt LInQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725016062; x=1725620862; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ySADW4Kq/EaBWp1PPWZaR2Cv2x4kzBk5nUHxU8XVBos=; b=HlkGZviT6g6me1NV+zZElsirjit+B2vEzO8TYR3IqTh0wWf5nu36yJk+XTzdcJ6BB5 dGwAZPo6+nBx/pMZ93oik71cAkF5WojPYnGS676YhFuKmsgS6g4ouXZ0stscP2Lrhixm QL04BStvjNstR+XVEnrCwAExwI+AlB2/8TdlG4LvHqLumWWoKVSA+ZivyhiNGNbrzA/3 OpviaiVQML+6G2zqZp61jBkbzGtOtlg+Ue3BdZACSFZzHq+W/FayB3hxu/NjiUHhd+gJ l7TW7lDp7zLCbRzzmDku/oMZNczsF4wfCGMew9cgnvHyeG2TdAdsoQq+7F4VA0n/MhyG oQhw== X-Gm-Message-State: AOJu0YzvnrxdA9hzdZpCMtEUx6IgFWKRPdyCoqOCjHAdPgyAy9w5rrXx L99D2EASXFB5POs5yS57FFiJ0AdC57+3/milKElEEBUWBz0TLyURUDtCDXG8racxTnkrsKXOBPa QjheN8lRadmRh9RhC/bysxgn3cURy2RWSWO07nw== X-Google-Smtp-Source: AGHT+IE8QgqqdZ0x5b9jTQAMzhZ1aCxD8LtaDITAc7vWQa+lmiC8BIBsJ/I7bVSHTO5gSCUpfRUd66FaU5oJdnFV6Q8= X-Received: by 2002:a05:6358:440c:b0:1b5:f95a:5a67 with SMTP id e5c5f4694b2df-1b603c3bb99mr744742455d.15.1725016061653; Fri, 30 Aug 2024 04:07:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Amil Sanan Date: Fri, 30 Aug 2024 16:37:29 +0530 Message-ID: Subject: adding a new device in uvc_driver To: Laurent Pinchart , dan.scally@ideasonboard.com Cc: linux-usb@vger.kernel.org adding the webcam of new acer aspire7 output of lsusb: "Bus 001 Device 002: ID 0408:4033 Quanta Computer, Inc. ACER HD User Facing " From d18ad3bf9bbc93da3eeb0ca4ea6598955ac05a99 Mon Sep 17 00:00:00 2001 From: amilsanan Date: Thu, 29 Aug 2024 17:38:25 +0530 Subject: [PATCH] add a device in uvc_driver Signed-off-by: amilsanan --- 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 f0febdc08..1a3229ab6 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2441,6 +2441,15 @@ static const struct usb_device_id uvc_ids[] = { .driver_info = (kernel_ulong_t)&(const struct uvc_device_info){ .uvc_version = 0x010a, } }, + { .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, } }, /* LogiLink Wireless Webcam */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, -- 2.43.0