Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp600614iog; Wed, 15 Jun 2022 08:28:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8HM4eE+6x8SSPB0cvQ32K7dZHnSod+TrJZdjgSD5a2kwg+Q500zeJtTer3sFRh1FmsYFl X-Received: by 2002:a05:6402:2921:b0:42d:e086:fd10 with SMTP id ee33-20020a056402292100b0042de086fd10mr366788edb.254.1655306899330; Wed, 15 Jun 2022 08:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655306899; cv=none; d=google.com; s=arc-20160816; b=atCmV7jSYgsys/ojJxciCxRs1m+OiTFyzjZ5bby7Ec5ZB2h6eYBgJ2hZQPpzZ4pETy uqgSf+OB6dJcoFSMMqWu5dymqL/KgAX5rJV3N6CD7c8uNp9e/e8nC4imvkkfDWCWJLz3 WBMmtybDljDBVyll9/ZBMhONAiK2+l2IYAhscvNZ+kwXIoG4nQ4oc8DO+veMHNaZ+En+ dHGBu7jQY2JELaY/RyHgLn3GBZBq/s78jNtmuIv0immBaN4a71vGACt+wVLJxDfUof5z jVLTELi7mV8LnPPp2olXUCEpUVJERiJ/8wFkXTw8/qe8jNdt8a2UQs9IfYJHS49z3Kb8 g8WQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CWp/TDlLu0meMSWNP84sM360EY/f//zy8MWpOQZwKh8=; b=vYcNyBsW6IrC6oetYcgdoanvuoItKHVnhmX3KlSWd3DsCci0GHbX4aGQ7V3GbTz9/3 AqKkeMWqHAsrTXRsZ+a2yXMOaCexpb1FO3ylHmcNRZqlbMRH4hHW4pwBW5rU9GKKdXr3 SOyWdDtn+ZF113twQseLQ50R6wUpLYNwwj8b7JzNCrnS84NVbZP2yW2zs9ZPoz2HDLP5 wnPzxmD5X4ej64Ab8qxXiVqW2SCKB7Kd5Y2T9JT0+JQ2nywcmbelSJzgUe8aimBufV0/ 4iMdkAZTaCxyAWj+rBK4v8liaYgCVdnC9Z5JTTJB4WvmYdcsEfohUE+ljaJtbpg5sPD7 FqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZNe6rwXJ; 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 m17-20020a17090672d100b00711ca15cd52si15295333ejl.230.2022.06.15.08.27.49; Wed, 15 Jun 2022 08:28:19 -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=ZNe6rwXJ; 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 S232609AbiFOPNH (ORCPT + 99 others); Wed, 15 Jun 2022 11:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbiFOPNF (ORCPT ); Wed, 15 Jun 2022 11:13:05 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55916BF73 for ; Wed, 15 Jun 2022 08:13:03 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id kq6so23856423ejb.11 for ; Wed, 15 Jun 2022 08:13:03 -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:mime-version :content-transfer-encoding; bh=CWp/TDlLu0meMSWNP84sM360EY/f//zy8MWpOQZwKh8=; b=ZNe6rwXJn3bHt44oLsRQa1i5nHLJStfTICRqKaLQxhE65qqAXXBppV1CVQXVrIXJQB pO2ZMGtFeABXYMZ6NVA9GLS3mQwMVZMmBBzdZX+XCT+YHAPPEXQq3N7RJjiInXbRxKdL VyvN3L5S1SuTJNPBrteYlDPSCVJepp+gJtrdM= 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:mime-version :content-transfer-encoding; bh=CWp/TDlLu0meMSWNP84sM360EY/f//zy8MWpOQZwKh8=; b=18v8oHFyAALbasYyGQBkzEJha0cg7/s84Bcw9X6bmihhtscd0bDcmbK1iVl/Mytts5 4xPwj00k/GgeWGCzOcBtwFwioeZdtetc13R5vipm8W5EtYTPrm62xFu5AfKILbCrFlj7 /fC4mQjQnacTHzAsdUKRwHFU/9YBJbHClhK+HX5AvkY1ub2oZS51ZadENvTAQyYNpPrP Qoi1F7ZYmuSLTMmdQDSZTRe1pWrPCLBJdiVYYU25Oin6V2Xrwqkot50vbNXo/cZQ0wU5 kB9FgLjxoPj+bx6pHpyik4SkfzVBtoTdwmwxlO+kYlNNCcveXKS5xSfPAkw8Rt3yv/D2 2WcA== X-Gm-Message-State: AJIora8wUR/U6M2nL/fSKFRpdBVt+qnUMWfNOMt5ua5Jv5fMjUNnhYYG /MtsL/BpwIwifxBtUKPXk6nP/w== X-Received: by 2002:a17:907:9727:b0:6fe:d943:312f with SMTP id jg39-20020a170907972700b006fed943312fmr239230ejc.263.1655305981887; Wed, 15 Jun 2022 08:13:01 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id b25-20020aa7cd19000000b0042bd2012196sm9610264edw.85.2022.06.15.08.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 08:13:01 -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 v6 0/8] uvcvideo: Fix handling of power_line_frequency Date: Wed, 15 Jun 2022 17:12:51 +0200 Message-Id: <20220615151259.77825-1-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 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=ham 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 Hello, This series is a new version of "[PATCH v3 0/7] uvcvideo: Fix handling of power_line_frequency", with an attempt to generalize the UVC_QUIRK_LIMITED_POWERLINE quirk that it introduced and turn it into a control mappings override mechanism. The goal is still to support the UVC 1.5 power line frequency control extra option (patch 1/7), and work around an issue with devices that do not implement support for disabling the power line frequency (patches 2/7 to 7/7). Changelog v8: - Add support for per-device control mapping overrides Fix invalid memory access - Support minimum for V4L2_CTRL_TYPE_MENU New patch - Limit power line control for Quanta UVC Webcam Fix id Ricardo Ribalda (8): media: uvcvideo: Add missing value for power_line_frequency media: uvcvideo: Add support for per-device control mapping overrides media: uvcvideo: Support minimum for V4L2_CTRL_TYPE_MENU media: uvcvideo: Limit power line control for Quanta UVC Webcam media: uvcvideo: Limit power line control for Chicony Easycamera media: uvcvideo: Limit power line control for Chicony Easycamera media: uvcvideo: Limit power line control for Quanta cameras media: uvcvideo: Limit power line control for Acer EasyCamera drivers/media/usb/uvc/uvc_ctrl.c | 87 ++++++++++++++++++++++++----- drivers/media/usb/uvc/uvc_driver.c | 89 ++++++++++++++++++++++++++++++ drivers/media/usb/uvc/uvcvideo.h | 2 + 3 files changed, 163 insertions(+), 15 deletions(-) -- 2.36.1.476.g0c4daa206d-goog