Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2034143iof; Tue, 7 Jun 2022 17:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9t9qrq0TkLW35TC+db+RUVBvlyro6So6dfn7bB4L6p8ESQ6WpATRaVz7/cSaYvId5ePdI X-Received: by 2002:a17:90b:3a87:b0:1e8:8079:b7e6 with SMTP id om7-20020a17090b3a8700b001e88079b7e6mr14474916pjb.139.1654648759925; Tue, 07 Jun 2022 17:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654648759; cv=none; d=google.com; s=arc-20160816; b=LxZd1y/uAo6/QNjMIcsfUkvbzVRh9aYpMonjh/1Wi0+44PIW9hxczoSgtEw/qncvdC B08cVymyQ1edE/6yUOhkv25K5LH+U+mDQZg24HsQ+F4HhIzwFUt3XOk8gUUGreujj/8w djoCy/h96T6K1vUaEXVg77FKSjrhNN1Qcvq7hnbLHrT1tM+IyvGR+I1ODgKhBdHOHDUf SB9ENO00E2IFheO6K0h02tQrjWOqRpQ+mp9cV6axHI2Ze5QpDLNtoa3Mt209X1SzMFOO A3Ym7C1G6Jm/NdRJnOuyY6opD7LxyjGMB6CQ+kNu996isN9DX/ipevoIbGEOvfQuKHA1 mHdw== 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=97COYvDNGqtT1p05IKSNW2IVq5s7PiPDusUGhaHXKaY=; b=Vzm9ZfkHrdAlPoBjkMQN2jmUdt7vCtpgQ65L4mbvvRI+h35nfrLwrH0ghAgZqLGlYw NJTOLNYoa331CVFZcrUG0f1Gs82hpXG/n5EI0IdMDKmdOXCzk6MHYDhHN6K/vrN9S/Xj acFrRPvhkzb1PJGxzBEEuJ5BIKggfKmLn5DFG76GRFVCXdPo9ic8Qzv5rKsKKjOkejfT UObIU1NFVfbjmXtMk3IpTELHjrYY5EAgl+uKATQtoFlLinbXRIOX8mbQxqC/7MWmhLib GS6JJcXxTjsQa9K8S16YGbRrPxDrFa+5UZja7tJhKakg829Wvlpf/0GQII7gxuXnzihA 1gbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LWoXEF+X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k191-20020a6384c8000000b003a1d18a5386si26399888pgd.17.2022.06.07.17.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LWoXEF+X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8488ADBEE; Tue, 7 Jun 2022 17:30:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244875AbiFGNoa (ORCPT + 99 others); Tue, 7 Jun 2022 09:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244891AbiFGNo0 (ORCPT ); Tue, 7 Jun 2022 09:44:26 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F10AFB1F for ; Tue, 7 Jun 2022 06:44:09 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id v25so23075508eda.6 for ; Tue, 07 Jun 2022 06:44:09 -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=97COYvDNGqtT1p05IKSNW2IVq5s7PiPDusUGhaHXKaY=; b=LWoXEF+Xr3cgF+JmD8q1XxaRaMdkAZjTzUoODDseCtucHHxSSiNZEvPHKmUDprOV8c zGbs/+KlpIcZblPR7bqRsv80S6MQgkuHhaNOmxslY/7dZRCshUcfSX6COkb5DjAgT/v/ oJMXJ6tUeGlzE863XczLzRsmU7xWN7nmF0IOk= 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=97COYvDNGqtT1p05IKSNW2IVq5s7PiPDusUGhaHXKaY=; b=0pZBSS8YfkGDQwA/2KmYvVRQA3zwB7rl7yTGiIV/dHlJ5wuHcs21ipwWnmdH5JNT2w XJJJ59mraUDq6cHgK/fxk3jDqJ4yg5wbRbmwQPdOCzsYjqhZ7keempmmzecKB29TQraY jNP6XULNs4qa4NK0vOZL8Rx92BEKjT/ELdWppMPzGzoYyrj+DwgxRW0c533w+bpZS7i+ UmlxPCmm2g/Z3lJhtxh6jgiVAAUy1xao8lKfc4xA/5GynYoifBhpd1G22xQqmPWfiev0 l2TeATb2BSdrvtugw17JdP2GrcS22qFsQOMLHkIyIHBnzZ4Q61fGk1DN54dfYKdQm/4x XXIg== X-Gm-Message-State: AOAM532a7Kfq0jwRs5s94yQbPR87I1KRLEEThFijO2gDd1iw1XtP70lm CL3jPpVi1049oh5PlmZ+QfEZdgrzPTVW+Q== X-Received: by 2002:a05:6402:2741:b0:41f:69dc:9bcd with SMTP id z1-20020a056402274100b0041f69dc9bcdmr33444610edd.239.1654609448320; Tue, 07 Jun 2022 06:44:08 -0700 (PDT) Received: from alco.corp.google.com ([2620:0:1059:10:d185:5aaa:c33d:f136]) by smtp.gmail.com with ESMTPSA id c10-20020a170906528a00b0070a80f03a44sm6621347ejm.119.2022.06.07.06.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 06:44:07 -0700 (PDT) From: Ricardo Ribalda To: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Figa , Sergey Senozhatsky , Yunke Cao Cc: Ricardo Ribalda Subject: [PATCH v3 0/7] uvcvideo: Fix handling of power_line_frequency Date: Tue, 7 Jun 2022 15:43:57 +0200 Message-Id: <20220607134405.166704-1-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 The uvc 1.5 standard recognizes 4 different values for this control, but we were only using the first 3. Also add a quirk for those devices that only support 50 and 60 Hz. v3: Add more devices v2: Thanks Laurent! Do not modify the behaviour of v1.1 Ricardo Ribalda (7): media: uvcvideo: Add missing value for power_line_frequency media: uvcvideo: Add UVC_QUIRK_LIMITED_POWERLINE media: uvcvideo: Add LIMITED_POWERLINE quirks for Quanta UVC Webcam media: uvcvideo: Add LIMITED_POWERLINE quirks for Chicony Easycamera media: uvcvideo: Add LIMITED_POWERLINE quirks for Chicony Easycamera media: uvcvideo: Add LIMITED_POWERLINE quirks for Quanta cameras media: uvcvideo: Add LIMITED_POWERLINE quirks for Acer EasyCamera drivers/media/usb/uvc/uvc_ctrl.c | 91 ++++++++++++++++++++++++++---- drivers/media/usb/uvc/uvc_driver.c | 63 +++++++++++++++++++++ drivers/media/usb/uvc/uvcvideo.h | 1 + 3 files changed, 143 insertions(+), 12 deletions(-) -- 2.36.1.255.ge46751e96f-goog