From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D6C0C433EF for ; Thu, 19 May 2022 17:18:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242492AbiESRSW (ORCPT ); Thu, 19 May 2022 13:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbiESRSU (ORCPT ); Thu, 19 May 2022 13:18:20 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 153C932EFF; Thu, 19 May 2022 10:18:18 -0700 (PDT) Received: from pendragon.ideasonboard.com (unknown [45.131.31.124]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7CE666E0; Thu, 19 May 2022 19:18:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652980696; bh=55k1bJOY3Jt3Q5mBq3/VD6m9w5TeeNrndlmJVqblSOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NvE6CUqf247O3eYbekxQ+PR8CXjTuia0dyT5/RRom0auavRue2qFQMX97d0lpcU8l 7G3xHO8g85zQYw+qb1Ls8+Fi8i2cRu7TLUJ5Tzmw7WyzAAwGzQ+0Le9Gozz+qDdCVJ /CZbedEjBEmxOFo7O5BIPR4YU9QsQAWgA0AE/6Q0= Date: Thu, 19 May 2022 20:18:09 +0300 From: Laurent Pinchart To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Figa , Sergey Senozhatsky , Yunke Cao Subject: Re: [PATCH 1/4] media: uvcvideo: Add missing value for power_line_frequency Message-ID: References: <20220519154100.333091-1-ribalda@chromium.org> <20220519154100.333091-2-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220519154100.333091-2-ribalda@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, Thank you for the patch. On Thu, May 19, 2022 at 05:40:56PM +0200, Ricardo Ribalda wrote: > UVC 1.5 class defines 4 values for this control on: > 4.2.2.3.6 Power Line Frequency Control But UVC 1.1 doesn't. This thus has to be conditioned on the UVC version. > Add the missing value. > > Signed-off-by: Ricardo Ribalda > --- > drivers/media/usb/uvc/uvc_ctrl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c > index b4f6edf968bc..13cad4aa7573 100644 > --- a/drivers/media/usb/uvc/uvc_ctrl.c > +++ b/drivers/media/usb/uvc/uvc_ctrl.c > @@ -366,6 +366,7 @@ static const struct uvc_menu_info power_line_frequency_controls[] = { > { 0, "Disabled" }, > { 1, "50 Hz" }, > { 2, "60 Hz" }, > + { 3, "Auto" }, > }; > > static const struct uvc_menu_info exposure_auto_controls[] = { -- Regards, Laurent Pinchart