Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp900270iog; Fri, 17 Jun 2022 16:58:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1td+QCs5AB1JIGMglKJGm+ER3xXqFXbL/NszCZ7Oev4hboQN/gNU1ROOBFFeqj2tp2m/v+L X-Received: by 2002:a05:6a00:23c2:b0:51b:c431:65bf with SMTP id g2-20020a056a0023c200b0051bc43165bfmr12628572pfc.20.1655510288922; Fri, 17 Jun 2022 16:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655510288; cv=none; d=google.com; s=arc-20160816; b=c0wMS7GL9BwzFFUvLFS+f6x1SPsWAoO5UFyuodYG7FYlJbVFaOlKEzSheenRdoDboL 6pW7azFkouNg8+VI4DApzq5m/AbRfO7n28dtMgojDGsnyVu2Poe36dteTNXefTbZAbCU Wo7o93VJzOv/q7ZgKL/XQy43+P5mrDT45RTqTNkdH/4Spm7tEGALoSKBrfy1PF8N/5Nd DKerRyKrMLnv0cwZyESsgMSbOwVNp21FuogkR6NSYkf5SHeerBxzl0TPU5BH798NjjxM 2tsSGt8G3yl/yWFOUNtNE+kU/R0MhFZxv/ay6q3b13sIcuG3PqHbEM4viIf9+/whkCqJ XG1Q== 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=scX391f5blpJybIeBstalb8q/E+bG9Wz4cWkWDEOBNM=; b=YGfzv5JekYs/JjxIg4hnuxjbf+mooSj6B+RWD9BcuMRXa+sl8WOh9dtShxRJVilHdC C/OkjxTB+H68VmXBplrXJZ0vl7X+JO0ZzBSWAETLF3BwCOlyhg46zJ66B7B4/mqWAMO0 ETFQx5fzwG4EsXPNClrs5VQVTwg2x//o6EMJrPKi7PuQmWW5VPuPy4CSsVBQm2BR1LG0 s/4beQpMwPgkGYEpDwRgKrrA/AlXoI5OfZdwM8kFvXO7FAAiUEIF2bi+ffqUlt8lT/Ji Nel/PWKefH6zS84hEWIqTtnuG9WqfPOHvdJ4T8y443Skx6vmleg1ZyA4831f0lbtSZKW yI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WZ25gGhF; 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 lp3-20020a17090b4a8300b001dcddce9c40si14145799pjb.143.2022.06.17.16.57.49; Fri, 17 Jun 2022 16:58:08 -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=WZ25gGhF; 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 S1383725AbiFQX4z (ORCPT + 99 others); Fri, 17 Jun 2022 19:56:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381373AbiFQX4a (ORCPT ); Fri, 17 Jun 2022 19:56:30 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C9265415 for ; Fri, 17 Jun 2022 16:56:19 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id n10so11368350ejk.5 for ; Fri, 17 Jun 2022 16:56:19 -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=scX391f5blpJybIeBstalb8q/E+bG9Wz4cWkWDEOBNM=; b=WZ25gGhFa6piGaIAblr/7+DjWPKrFrCiYrhva2rjbsBCWQkVv8JG0shVuTPmm4a78Y 5oUqPdiKh8Iopv/haFtV9Fvxg20fPQHUVTN4P5TRhETIt+HM1tyVhbOBj+9kSl9MsSIW Fr0D36hT+p/cFaQkJgwyAKlW8wuNzg/LuTeQo= 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=scX391f5blpJybIeBstalb8q/E+bG9Wz4cWkWDEOBNM=; b=Tg/ZMoRvk1hBHKIIKq/82K20bSb9zbMSUPww7PC6zD7+9YWJQR3mT/IryXGvhgtxCX BGOKFEsjy+jIcWblRaIWdWzLwKvEyn2hiwTYnP2fOsK2HdPqSpWVi9/C6b9mQOI77X1P U7/Lh4RhZ8e8rNNi/Txn4nXXFSP79snJjYRFdfdbVqv1zRslXFSYaWJaKg5uNpyFeAQX lrBl40PcxyG39TDqm+FEOH5IRuMi1T9J7MbRDn+0IgqwS4f5OmeBKlBpNbaTjq9OSNbg 1rrKIcuKgItGNTBU/fc1DqEMx7+HoLc4Lj5jAkFuRaKxRER5Yp7iC5pEG5Y6epaxJQIj t2tQ== X-Gm-Message-State: AJIora/hDXQR5nSIv7BHYs8RIF45IrOYldWumujxXd6cjKu6fkFYXFWm KGG+hjsKZUKICggsTBDni9Rtrg== X-Received: by 2002:a17:907:7da5:b0:711:c9cd:61e0 with SMTP id oz37-20020a1709077da500b00711c9cd61e0mr11257153ejc.443.1655510177994; Fri, 17 Jun 2022 16:56:17 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id z21-20020aa7d415000000b0043566884333sm1452538edq.63.2022.06.17.16.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 16:56:17 -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 v8 7/9] media: uvcvideo: Limit power line control for Chicony Easycamera Date: Sat, 18 Jun 2022 01:56:08 +0200 Message-Id: <20220617235610.321917-8-ribalda@chromium.org> X-Mailer: git-send-email 2.37.0.rc0.104.g0611611a94-goog In-Reply-To: <20220617235610.321917-1-ribalda@chromium.org> References: <20220617235610.321917-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 b22d083833ee..425520f06ce4 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2812,6 +2812,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.37.0.rc0.104.g0611611a94-goog