Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp383947rdb; Mon, 22 Jan 2024 07:13:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJT0QKQxhY5UcoZSsjaw9JsAsDBFI9GDi7wNRROAu8Wswvrzzmb9yIYQs4KspIEozsVQMp X-Received: by 2002:a05:620a:102a:b0:783:24cc:e5a2 with SMTP id a10-20020a05620a102a00b0078324cce5a2mr5068130qkk.45.1705936406584; Mon, 22 Jan 2024 07:13:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705936406; cv=pass; d=google.com; s=arc-20160816; b=upKviYRGP/rUlzG21dL4oafNHCUgNMT5Tk9PUj5OanhQEGvLAnYCycDQ3AMmR++64n XbciYTpS1j9jqLdDMfFy73d9CucG+TRjXEhIIEcbPBLGUn8rL1jZAK8anb7yS+3i72my qHWJsJzrbbTny3s9CR6J53TU/2QPNuyaPjY9vlX1ZZqlTqwcloqJrYHj0JSi+WJT6MlI VqfBm+JR1i7HwiQyMxjBjMg+KS4WyE2Nk+MFg+ra3dukaAiXgLHlYAyXKtZ7wL7TOhOT ZgxP8VD8kg2heTxkkvQpL4BQxlSBsMLovMkkO7+NmKNaKk7j1MojcBfNmR2gICk65dWM KNYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bvk+/+BLT/ZufMdcZL84O69Hke0a6Bw2/Lx8TmWOxxQ=; fh=1HkQWNnWsLCOBM5F/z7FUUDKQkbg6UDLg5BGIy5OMpI=; b=SD6Ad0MhsNW9UAUsYqQMcAJOLClVFSkFJ5xa6aNQD42a4jeETb0tHgzMOVjYHCIfBl VIZoyikeFvtp+t6XprIgn7o5EvMx7Du/pJAAP6KWpFGz2nDi9Gpm1H/L6jnwPuUvY+Ay f0wKXhNPyPk/W/WjoSpBVp3EDLAxg7smt/+iDhhHR5EO5CpiQYEf7sQQHasGdMBKOouY G1AQtpC2cvcJgg4F19l/5znWep3+Ki9Hx+wpihIOfLeqbFT7xmYspG7DSKGJmwRrTFAN /NtcaRv6JyATMFJGDXPVwhXZo+0pZJUINoUFx3deaFNfTw0powrQ7xuuLKDp+BZfL9xW PeWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DA8PcUpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w13-20020a05620a424d00b0078341846c86si6045946qko.414.2024.01.22.07.13.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:13:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DA8PcUpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33251-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5669F1C229ED for ; Mon, 22 Jan 2024 15:13:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A75C50A94; Mon, 22 Jan 2024 14:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DA8PcUpM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70F5C50A77; Mon, 22 Jan 2024 14:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935498; cv=none; b=CNCRyQPsu34bkvlLquWS1CeCv7g4eFqWsLypj1Wb3ZVxuzGDHVTQNT6uWvkWtSmerCQzW0Qy7FSnGZ6PusQjCYGI9mj2NaGywYN3rPE8nv9HxrO8qIQB/Tzn/JmgaBIWQerYdozg9Y3ADQcCr3FRsvx3P2WYyUf1r8xud+mGyRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935498; c=relaxed/simple; bh=Q6sIsbe65AUAC9gyFfi7YSXgGHrOKXFTe+igPa6lJiw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K5urL1bGHfZ5m+okOA/LJQ2j7t+v2ceqiYgiN9bLwHby50azVsq6NPjjdw+rUcH4pC1ucGAYWllwAuTDNXgmpE1PR/gbeI8kfTWui9rj4pwJ5b4RaudvjVFMnrX6ZRebylps6k+I6r8Ze7ioF/oWu3RnPyCFXLM4x7kA8BYWv/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DA8PcUpM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 326F8C433C7; Mon, 22 Jan 2024 14:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935498; bh=Q6sIsbe65AUAC9gyFfi7YSXgGHrOKXFTe+igPa6lJiw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DA8PcUpMzzIrILDYOJi8qunu94bKbb7sKJIH4VGPAu2NkxSF0TT0zrT9nDwvuHyco 4gGNEk6Wn6D7Q9O6eM5yxEb0uAGbEN67M5SAYFV3hbEKORLl0xRLc2qHgfpJPLPV7L dX9pLVpQCZSjX+LSeurRyfIqiIpt/5itn37GhUyeL/Cz3j/+29F2eIYjrkCkMkTlVa j09oyHLNQ7zs+a26VRFB00EzNrSwBT3gSKShwootuWD52DQi62uBbm8lphWU9ay2cO NmilKNHXzHAygOMWIvGsqhXuuz7RADIrkHmpbefMYN5VkXWKMB7nim7XVf40ys/HRj Eyvv9NySfDExg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ricardo Ribalda , Laurent Pinchart , Mauro Carvalho Chehab , Sasha Levin , linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 6.7 33/88] media: uvcvideo: Fix power line control for a Chicony camera Date: Mon, 22 Jan 2024 09:51:06 -0500 Message-ID: <20240122145608.990137-33-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122145608.990137-1-sashal@kernel.org> References: <20240122145608.990137-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.1 Content-Transfer-Encoding: 8bit From: Ricardo Ribalda [ Upstream commit dba3e701917a4cce92920f8ccb9fa4d4ee5ac07e ] The device does not implement the control properly. Fixes v4l2-compliance error: info: checking control 'Power Line Frequency' (0x00980918) fail: v4l2-test-controls.cpp(552): could not set valid menu item 3 Signed-off-by: Ricardo Ribalda Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- 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 08fcd2ffa727..4b5ea3501753 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2592,6 +2592,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited }, + /* Chicony Electronics Co., Ltd Integrated Camera */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x04f2, + .idProduct = 0xb67c, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = UVC_PC_PROTOCOL_15, + .driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_uvc11 }, /* Chicony EasyCamera */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, -- 2.43.0