Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp303430iog; Fri, 17 Jun 2022 04:04:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tC2rL4ti38OvPixHFpM9EkKGoDFdIgXj3/581Czk6PKsYbYbc71KeIXXsqI2EZr+seRBTT X-Received: by 2002:a17:902:7c10:b0:168:f08d:d0f with SMTP id x16-20020a1709027c1000b00168f08d0d0fmr9064465pll.31.1655463848529; Fri, 17 Jun 2022 04:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655463848; cv=none; d=google.com; s=arc-20160816; b=pI587GsSM1lO7FH3sl5HdtSvwirUYAH2bGCBWZow/tyrZDNxI6sC4c1PMJ8WDVlfyb ZNS9JRD5gxNo3Z67WQ9LC7sJTiU06H9g8/GxDcS4SZNUReFeUbu1w2xVKSZH8gi/d+T2 8VGkLK6Mn27qtEgL+EO6fotLXo7Pb0+X9sYjG3ls5nf3WYM3WiKW1lUFR6MR5yTfWV9d BNT2MGl/12VnALvl8yeGjb8K/6Ypg8wz9WNa+meV2DxA2Qvl8dSFCM2TmtZX/q7NPsnJ od3hMSUr3I4Abr7q1UXo1G50MjJ2l69WkP5MRRfyBaW+SWBkuzPRtYBpj/oPNII30G84 4vqA== 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=jfXZuA91UZ4UABMZy8DvtEqMCyRJz53qHahMYZKumBw=; b=ubBMxxHU83/YddzbeWhJuXPcCVtPqrHO/em3SD2L8Djp4bBv3SBFtUT6yVli1Ct6HW TdpKx+kILULE/oZsic0YS9WiLKidrH5hdWgAXnZojSj1DZGCM3Rbc1yRxaYiBwsYO088 8Hywmxr2Ll4z0ELPX4c2OaAG33N1EXd9IlnCUXQShHhIIrv/P5Ed617iFQccg/Ws5/MX 8vm73dcbHWgNJYFfm8LDqLHSsu1k4bsOEZdpFL5mLRU86B2k+b3aYShbfB6Z3zMXLOat 9xOKQOuYeBrcL67zKrWziuT+AI2wJDslQcC5eGjPQN3gr2X99KzgnQyaNglEE7m5OaFf KOhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="lmM32/gx"; 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 i10-20020a170902cf0a00b0016403c4ee3esi5576646plg.546.2022.06.17.04.03.38; Fri, 17 Jun 2022 04:04: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="lmM32/gx"; 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 S230341AbiFQKgy (ORCPT + 99 others); Fri, 17 Jun 2022 06:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380868AbiFQKgw (ORCPT ); Fri, 17 Jun 2022 06:36:52 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FD086AA76 for ; Fri, 17 Jun 2022 03:36:51 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id eo8so5679321edb.0 for ; Fri, 17 Jun 2022 03:36:51 -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=jfXZuA91UZ4UABMZy8DvtEqMCyRJz53qHahMYZKumBw=; b=lmM32/gxFg7OFSU0yBpZAixUFMlBMbbCmASnojBrHELKXKmA/HwcH31fYEoFlvCRp9 JpFdyLF37tHd1nlHoFARAwe/JkIN/DkgdFFmXWY1t+NBP1iti0U3iPQjNp5NBMOVt2tT QWyzXUgQhUE3uF4MIm4N9sbGtuqvaKCTuUzM8= 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=jfXZuA91UZ4UABMZy8DvtEqMCyRJz53qHahMYZKumBw=; b=TReEz3dzuIiyZbZmRWWSKod56glVhsksrHpuBaePkIkrL10EicmFqr5qylJ96Jmr2S /T4qmW6czYZUDpSM/HlHPmZRTqRSlEZ0KoRY3dz7q0aGqNruHiaASibfIx7eqhVfVtca gCAtMI7nP8ezzg++85Xhnk5kWpdi6PEiFdDahfoJHQxW2CIWnomkgP8ekpJqsFNAPK0a FU+4WzZDeQIDkaw9kMnS0awRU+jIj/CxdNTkf9G7688debnj+9BBwcNSMXeasfrqvJ7O A2wHbgAGOEFN7XmVY05Jb2/3TFK1BCp23tvRVibtU2lAIgNYMJ8SXHDFsSUyPZGqSo7G 6eDw== X-Gm-Message-State: AJIora/yune94SMHZdntNHTzbbfFmacWyTfBitWcn05Ld6PWyfGJYjKb w79Iv7g2pIlY965vyU6pkgRJmX2rbmCnaw== X-Received: by 2002:aa7:dd85:0:b0:435:64d1:5ba with SMTP id g5-20020aa7dd85000000b0043564d105bamr1608968edv.389.1655462209698; Fri, 17 Jun 2022 03:36:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 03:36:48 -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 0/8] uvcvideo: Fix handling of power_line_frequency Date: Fri, 17 Jun 2022 12:36:37 +0200 Message-Id: <20220617103645.71560-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=-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 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 v7: - Support minimum for V4L2_CTRL_TYPE_MENU Fix uvc_query_v4l2_menu Changelog v6: - 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 | 90 ++++++++++++++++++++++++------ drivers/media/usb/uvc/uvc_driver.c | 89 +++++++++++++++++++++++++++++ drivers/media/usb/uvc/uvcvideo.h | 2 + 3 files changed, 165 insertions(+), 16 deletions(-) -- 2.36.1.476.g0c4daa206d-goog