Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp284339iog; Fri, 17 Jun 2022 03:40:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrl7sr05pCExv6FeOunBxeVzOequ/NvUrvdBbiMI8hiy0ceP6WYmazRtcP+CA/kffOTp87 X-Received: by 2002:a17:902:7806:b0:168:d336:dda9 with SMTP id p6-20020a170902780600b00168d336dda9mr8802021pll.83.1655462403127; Fri, 17 Jun 2022 03:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655462403; cv=none; d=google.com; s=arc-20160816; b=v5I1SCriFtCy+7QRaAxx97TQR0DQQx5qvalZDLNDDYtxfRC2vk9pD3rLDR44dOfFCr E+e+C28/SzHHGZBXxamBZoXe6vaBFy92QUpLBHAMEE0FF7GJhYX1AjvdD4O6RkImcjfj uBAHFC2TI2Dwqe+Zq6YhQ2H+AbZ8I9bhTbixpEG4hxNY+37lo4TiPmKO+vsNGh4qgGEX FXIHXGkOh1npssaltkCibBP5uFVQtXwrafoSnuDO7t3m3YgNIVTxPiXjo++NoHMEIr8D W25DvAWBzB9+o88OCpR2m4bRgUKFF9TGJDVljMqj3KETz/bDiV+YxL2NhovI7/NIA1hL Euug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eknO20DpjREAR8olUhraC51K66eHn6x17UHnd3DEaa8=; b=EKJCqSnVgBQuMkeHKsLLAq4vR4qw79gMTwfzdlGFbI7v4FxlAYrlsBcS8aBSMxZPJV vagJ2abQfj0sDtLcU8aYXdLB6MmjATbrzqxaMxySfqVixhHHxTNvI/aSljA5pdxuH08+ LAsOn+aOVnhsoZQqfzdiOwFRytpdrAVrz4H9iyQoN1404SjCgqZbcPiZUW4qmR+yFTY3 EWyFFbn0dA8y7thCDdnsTfwcEtjdSjVraMIpQsxvv7aB6LAz/y8thCouS4ZlcwHT5iVe r1ufLUhHKgAWPCtzW0FRzTNJRzxEnQhdaTVfQ3yhUarJCRL5E7tcdVZ2EOi9gghjmI4j ZyNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MS26u7Da; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a056a00234b00b0051c10b55b92si5601177pfj.187.2022.06.17.03.39.44; Fri, 17 Jun 2022 03:40:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MS26u7Da; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381941AbiFQKhX (ORCPT + 99 others); Fri, 17 Jun 2022 06:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381841AbiFQKg7 (ORCPT ); Fri, 17 Jun 2022 06:36:59 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C5346AA7F for ; Fri, 17 Jun 2022 03:36:58 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id c13so1160667eds.10 for ; Fri, 17 Jun 2022 03:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eknO20DpjREAR8olUhraC51K66eHn6x17UHnd3DEaa8=; b=MS26u7DaOv6ziiY21jTHfyU7S//cZGKwdDT2kK3k0ryFpdvKTeXmsFywZ9AC/6ZR4Z At5YLy1D9Jk/f2lWDcg41xfF9DZcXJdOoToGabSeKiVDVh6Csf8yL2sr9/2IedqfDbv+ YMa3RDuJq9FnmBn+7hNFSA5wiCX6NLoyO28JI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eknO20DpjREAR8olUhraC51K66eHn6x17UHnd3DEaa8=; b=0CKfrgMrLvZt07K+BSVToMUZM99leq9kMQql6uN85zelKQgRCi5RF4P3KmciOjvBuh GoDQ8WUDPo9dhVxzhc3TTHj8iHAvlzimzEDGWW9NGB5YhY+0haU9VU7yItVG+aoJTdPz dH04KbEiHWlcCWvCtxdVdIKBtyrUgBR7fMyptLShu7bBM5ugliusqEMb4wQqZeNt5wKt uBBcX0cE28wIOCB/kO4AUjmpMbOukRs8MrKMer3GwWKnpSJ4czbqLny9KX4O3heGu8Qy /l81hgffGt1DDABuTGaXajtUd7S/BktVp3auvk08dLI4oxuvqc1QfZY+Zj6THKZoHq99 olYg== X-Gm-Message-State: AJIora9yizAVcPAliGI8LDWdCghBQP7R9goElW9JmKgaY2+z/CY9d1yY C8ug9G47iRlW85cYopt3GjyNVA== X-Received: by 2002:a05:6402:2788:b0:431:3f86:1d4e with SMTP id b8-20020a056402278800b004313f861d4emr11857977ede.238.1655462216795; Fri, 17 Jun 2022 03:36:56 -0700 (PDT) Received: from alco.corp.google.com ([2620:0:1059:10:a86e:90:fb4:466e]) by smtp.gmail.com with ESMTPSA id z19-20020a056402275300b004319b12371asm3704340edd.47.2022.06.17.03.36.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 03:36:56 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, tfiga@chromium.org, senozhatsky@chromium.org, yunkec@google.com Cc: Ricardo Ribalda Subject: [PATCH v7 6/8] media: uvcvideo: Limit power line control for Chicony Easycamera Date: Fri, 17 Jun 2022 12:36:43 +0200 Message-Id: <20220617103645.71560-7-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog In-Reply-To: <20220617103645.71560-1-ribalda@chromium.org> References: <20220617103645.71560-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Another Chicony camera device does not implement the power line control correctly. Add a corresponding control mapping override. Bus 001 Device 003: ID 04f2:b5eb Chicony Electronics Co., Ltd EasyCamera Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb5eb bcdDevice 90.45 iManufacturer 3 Chicony Electronics Co.,Ltd. iProduct 1 EasyCamera iSerial 2 0001 bNumConfigurations 1 Signed-off-by: Ricardo Ribalda Signed-off-by: Laurent Pinchart --- 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 5b8a71a9edfb..d21de83021f5 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2820,6 +2820,15 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceProtocol = 0, .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_RESTRICT_FRAME_RATE) }, /* Chicony EasyCamera */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x04f2, + .idProduct = 0xb5eb, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 0, + .driver_info = (kernel_ulong_t)&uvc_ctrl_power_line_limited }, + /* Chicony EasyCamera */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO, .idVendor = 0x04f2, -- 2.36.1.476.g0c4daa206d-goog