Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1915303iob; Thu, 19 May 2022 19:00:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeJs8VkfLfFs4q4Y5Kr2IXAs9xu0tSuzWENkzutNOaez/r/w+pzUKDFviPi3UwTnP0Yg3P X-Received: by 2002:a17:907:97d6:b0:6fe:a4e8:a804 with SMTP id js22-20020a17090797d600b006fea4e8a804mr1930503ejc.389.1653012010046; Thu, 19 May 2022 19:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653012010; cv=none; d=google.com; s=arc-20160816; b=KUmzKqFc13U39H8hevRS+9Nfal08uaqzoXwPWtLONxUF0idhl3GEM5a1jwU1DOSW/4 WjVXal+jMl6iEi9xVVzBvSkBwLCnsyGoUuBMnUJ/RSHUTMG2aAe8ZLn0GzqnJMB3K7wf BN+lKT97dC5mtB1kb2T5hoIe2Sa6vWsJDdQk34cYgeO2dJk+Vc59Ap/feJ4nZXztHZzr XYckIiMG/UifDgF/Vib1bOI1g8Yi3pjHzYlfKScC7oyHTxii1tk2BHx+PlV+ARRh3Vtz 2m+p4Hewo5MhUSH9Gx9CyBv1IiCkqpEqvqKsJFYQYajTz6E+sBKehQFTcNad1LPWDXzZ zDkw== 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=1yewj9dP5wt1s9U7YLpUlVzt9mnRkbAegjhyrplYM9o=; b=cjmXgQJU1Wngnjd7JdyGhKjIvFwuO2HyAJKgNYRt6RP9ZooRdiHr/QTkKrX5BylZz/ cLp6N1rfrsqXiHVK24FlNXdOoWKGaAA94UpV2XMWOEhdj0fB5vWUdFNpIpP5x+1//yfb pkg7j+gIL0jK3CtcMjTXUZob0AJkgFtOYSlHXkHAYQD1nJNWPwzeR2pn+q1VFurl8zsA //eetQKSqluUYk7iRDcT+6v4K2Q3QyyMzLay3ClFwofiag2BahB9Ybx5DkzQ4J4RRy4C TdQB2ucEJMKODcOUDZUeLCcLGbfciL8XoDaa0eu6GFmOD5020Lsv20V1tMrE4WcKZPQo hBYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ZS4k5Fm/"; 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 hu8-20020a170907a08800b006fea42b2e6fsi85218ejc.642.2022.05.19.18.59.44; Thu, 19 May 2022 19:00:10 -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="ZS4k5Fm/"; 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 S243688AbiESSNM (ORCPT + 99 others); Thu, 19 May 2022 14:13:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240964AbiESSNL (ORCPT ); Thu, 19 May 2022 14:13:11 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D5B5E2770 for ; Thu, 19 May 2022 11:13:10 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id eg11so7936858edb.11 for ; Thu, 19 May 2022 11:13: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=1yewj9dP5wt1s9U7YLpUlVzt9mnRkbAegjhyrplYM9o=; b=ZS4k5Fm/0QXzwwqTCYl+32tMdKVp4Irl/rcz5oQBu563PTd1iYtaAJvhqv9eCO3k9E X8Job9oByn6vKu6kHUHdHIlhnCizt03qVrq2i+f8+N7tMCPaeoIg8hwzo9EJXkRCC5vx zDoLvvgAELMBrE3OEhh2peuigQmED0zjecoKk= 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=1yewj9dP5wt1s9U7YLpUlVzt9mnRkbAegjhyrplYM9o=; b=4Eyaf/BrjIE7hs20LlDi94I8jPF5tls4B4GJ5bixN0n1owjwq3MedCFtWWT3xvRF3k KAqUCuY3RWg9E4VF+ysi4sbXGLz2vq0U9WAL+IkjDfrH/NMks6SU2XjTxaaQgIgzVB/x HSuLN9WXeAVPWquQ68tavOg2NZkr+a2Q2F28Wx9fO0kgszkKMuTaKoRCh4RbaHgFo43b 1KYc3YrLjDht7hrGVOhu0ubhIu9NuoienuIl6eveHqGwh84FfJ5385Ict61a+4iWGytB 0ASKUziHwhWBh0MZDkxezY5UAd1hpv7CjFXRUe4J6ydZcPWSGTNCwPoUV5KHASK/TZHc 9RPg== X-Gm-Message-State: AOAM5317fa61WvnVQe3169B5mA+YyrA5RzHdHwaPw7mLZVwKO6zuDLOd WPjM3zKKrt9/ksSUgZFDofZazg== X-Received: by 2002:a50:9b0d:0:b0:42a:4bda:c70 with SMTP id o13-20020a509b0d000000b0042a4bda0c70mr6837244edi.287.1652983988675; Thu, 19 May 2022 11:13:08 -0700 (PDT) Received: from alco.lan (80.71.134.83.ipv4.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id hw7-20020a170907a0c700b006f3ef214e3csm1225801ejc.162.2022.05.19.11.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 11:13: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 v2 0/4] uvcvideo: Fix handling of power_line_frequency Date: Thu, 19 May 2022 20:13:02 +0200 Message-Id: <20220519181306.42136-1-ribalda@chromium.org> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 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 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. v2: Thanks Laurent! Do not modify the behaviour of v1.1 Ricardo Ribalda (4): 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 drivers/media/usb/uvc/uvc_ctrl.c | 91 ++++++++++++++++++++++++++---- drivers/media/usb/uvc/uvc_driver.c | 27 +++++++++ drivers/media/usb/uvc/uvcvideo.h | 1 + 3 files changed, 107 insertions(+), 12 deletions(-) -- 2.36.1.124.g0e6072fb45-goog