Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1760871iob; Thu, 19 May 2022 13:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYUJD+BewmBaMZTYGqJYRsIW6YoNbq1GObt4ksWvlVbqugVwgbsA7SzsW/Km2F9b9tgbXO X-Received: by 2002:a05:6402:2788:b0:42a:c7b2:3fb3 with SMTP id b8-20020a056402278800b0042ac7b23fb3mr7358787ede.58.1652993943901; Thu, 19 May 2022 13:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652993943; cv=none; d=google.com; s=arc-20160816; b=h61OV7sOFcrpYA4Bqqiyq68JezYwyVT0C9Tm4KXAdTQBcIf6aRZ2QO/V8LcL+9bwb8 yb52qY2ae+wpWGGf4YuUK1s4SBqc8rsffVKZ+NbYr9l3picYV+rUTzFMIg46D+N9tUCO pSPlLEQHx3dlArGCuecxVqRlSIyzhwqesQgZW1fRW/Z3ugFmMe3F1HIZNQRNi+Nqlb1+ zz4BopPxowdFaCDdv0sHhpXxI2Xa4MJT+xamkV8ZEXfQdFk4BWvB7U8AnPWso7YFukR4 WjE1ul7axm+zR5uE8w23oUeLVy9lVWZUEjkd4G8TZ+O48TBQT8jGCGNvkeCw582yk2lP nfQg== 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=dnQaBZGKU69MTwRS8qWTSCDZ3R9++iPFedE4qLezN24=; b=g5M4BUOcZ9xFyY8MOVX66ME/fy7JIq3xkj6L6OPj5i6d8+3Qb0u7rh6cnx3niDVuQF bupYUUj17Voitfg9tvXST50wktXE/yJq7jcd1E6trUOtlg+BnBnZYZpJDJDhgh3Zm6lj rTW1ZURgZ1SrPc9BPsCd2rtGNDinyAZOf1/q9jNduB/rPpuUhcMe47Oa6mqxBWeMbWSm VOaJV4KsnX5B/UKZAXrLPYJGi+cTocKLGVluMR0b2Ox1jsD3XjtirDzN31nTwVIkjmTm qZbBFfCo/GZAg3ahQA3Mh10VVueiW62/uDYi0hAQOssjsqAMMKbuaL1UrICWEQFnrmKL XDnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G7MwAWrs; 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 hr39-20020a1709073fa700b006f392f11feasi7445107ejc.20.2022.05.19.13.58.37; Thu, 19 May 2022 13:59:03 -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=G7MwAWrs; 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 S241569AbiESPme (ORCPT + 99 others); Thu, 19 May 2022 11:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241267AbiESPlY (ORCPT ); Thu, 19 May 2022 11:41:24 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07D2013F30 for ; Thu, 19 May 2022 08:41:20 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id j4so3058526edq.6 for ; Thu, 19 May 2022 08:41: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:mime-version :content-transfer-encoding; bh=dnQaBZGKU69MTwRS8qWTSCDZ3R9++iPFedE4qLezN24=; b=G7MwAWrsF3KGXbnCiX64lpZaEv58Gq5Lv4QEGx6GLIkwE1e2uQwyshn1JeX9La5hhR BtwZEOgoX2vdWjguSOz05Ht9Nz/AJXePmkG4ji3Q1LiJSUT2lkWLFEeKxKu5p7lS7y0x tvXRyS3NOAMuYs7uVg9KJPVZQqY4H02kMhjPY= 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=dnQaBZGKU69MTwRS8qWTSCDZ3R9++iPFedE4qLezN24=; b=g6Q/vsnDZjzlai9S4g6ovShJa+mdjuUUb6tqVJdOUEbmZ7o8euA2MIsipHBW++JDp6 /g0nedc923BimGZ8SnbD/a+z9RO6mC3SCqyTmB9OY6qRZ2RYaOAh2Feis9zxgOXmBhY+ bF5YrP1tQ/mYFyTcFkvrINYyda6gl0Bdyp+hJAcscYeH5icKjjFMpN2KXpwcMngZc3m0 qdnixsQ+dSWZnq1f6AunoO+1FOUTS+BeqLPaq//UsL8MLt+1MAr/iqn0o8ncrH9c89oi uHlcOhxqTQgI/y2D+CFSnwHGSLAcSbIihr5ZdhpCEv/ykpwe2zMnYzEPJLkWkJt7LTAN hFWA== X-Gm-Message-State: AOAM531ivjKmGsnT4QXf0AcsTpDywIz4OvsWHlqe2g5GYfnNwI16XntV 6uwoFQwl7rZUTJpV1AURoevifg== X-Received: by 2002:a05:6402:f09:b0:42a:be2f:ceeb with SMTP id i9-20020a0564020f0900b0042abe2fceebmr6090840eda.110.1652974878684; Thu, 19 May 2022 08:41:18 -0700 (PDT) Received: from alco.corp.google.com ([100.104.168.197]) by smtp.gmail.com with ESMTPSA id k24-20020a056402049800b0042aae307407sm2990092edv.21.2022.05.19.08.41.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 08:41:18 -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 0/4] uvcvideo: Fix handling of power_line_frequency Date: Thu, 19 May 2022 17:40:55 +0200 Message-Id: <20220519154100.333091-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=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 The uvc 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. 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 | 28 ++++++++++++++++++++++++++++ drivers/media/usb/uvc/uvc_driver.c | 27 +++++++++++++++++++++++++++ drivers/media/usb/uvc/uvcvideo.h | 1 + 3 files changed, 56 insertions(+) -- 2.36.1.124.g0e6072fb45-goog