Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4376628pxf; Tue, 23 Mar 2021 09:08:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwZtCGiH54095pyTRQ7+dpJmgGwCP7XUSKeTDl5LtM0e95cwLbjUrbYSCE+KHp0z+NmN6o X-Received: by 2002:a17:906:3ac3:: with SMTP id z3mr5800032ejd.106.1616515737437; Tue, 23 Mar 2021 09:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616515737; cv=none; d=google.com; s=arc-20160816; b=nmTgsKhjd0gjDYjmRgijgExvweaYclS/o7fOv/JeQYpSDux5s0o9KzPrubucafHpn8 U1et7hxlF2IrQ6VYnR8b+XMMy4jImmAeu/NlnFa4IWqyYWO0cDQG/qZn41xbeWr7KGD8 tnE9slhdaiUW+gY9A3ox164MBEmoHTUdtetO6UBC6ZoVE1SFCiVhfppiOm6rFLNxnLb5 XLsPQ/lGDShBIVT9eAm1x71eGHQatLMcflfhfmn6uT2dxdAokKLQRVofpgZQ16mm+8xS K/fF87NFFvoEwl/zY2NcB0BQVeogui6tmFuY73/Cdlv0PLRmJPw3tm6xJtJA9DIhGlqX hZ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=V2RrZIiiAXDjTWwS4GJM76K1p957k6O4aOC5f66VrG0=; b=rOtF9ZnLxTC8rvWcqlZbx5Rfhu8G4fWAzxu8716xh1vc0dXsUuPlwdmEksE7xMnzkC tKp+MXy8wSka5DdgVL0fDjpTLNudi9ahLnzqD2JCf5rmOCcWIXQN+kya6lMp+px5gFN7 5BTqsMKrTd4Zmh73fV2yGd81+6K1dyidXWUGEpE/Ts/NVUunaNbyqkE7ZO5joWwQ8p5S gFEqnkTNFFHl8L6U9KgmOowhe1Dz+vGYy4kzkt3/FVirMgyG7Gdnfce+aUvD1Cs4+c80 h+uOINUbOYI0TasbGpPDu/UlN7QDC0MrlZLARrqriWnoSQQbyyHBNssYoypT23TPPg2F R7ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c9fONZ0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu23si13618621edb.336.2021.03.23.09.08.30; Tue, 23 Mar 2021 09:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c9fONZ0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbhCWQFZ (ORCPT + 99 others); Tue, 23 Mar 2021 12:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhCWQFI (ORCPT ); Tue, 23 Mar 2021 12:05:08 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A23A0C061574 for ; Tue, 23 Mar 2021 09:05:08 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id e8so18234728iok.5 for ; Tue, 23 Mar 2021 09:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=V2RrZIiiAXDjTWwS4GJM76K1p957k6O4aOC5f66VrG0=; b=c9fONZ0pVanfBBnYSOpJiaySOx5hI94+NqD6CkppLs8GUQkeQhLzL0o3ReQ2IvDwJr UZdPTqwjNh470mOQMHJW4y/avc/ojoI41u/icb2EMeqhwmKKZaB6hDtS0DODD+qHRfaC WPciC6+yYWvSGsTj/ScLgLfSn94/6VvGLg+gY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=V2RrZIiiAXDjTWwS4GJM76K1p957k6O4aOC5f66VrG0=; b=VvBWc5LQ0BrY5F4L8CHdy5YweZHcH/wwg11yY9ZsIeGxkDtzRaGACX1bvCEr42+dds wE4k/hBsAL7sSq79tbf7i5B9darZQVeRk3GCBf2DWV0EdtmhCN4HO2rD7uZC073M5lnV 3wEkKaC1vT2BwD7J3Y18/tTccTizELvyDDIWKiOOTtcT0SlCSHF76nYh0L3260ifnd4n 8Jm3k2SkkozYPJKPkrrnW2HYaKYvyxbdS9lT3aEsEKp3j41sJF4l2tTeKnRzOzp/YE4Z OyKpa6cDjjru/Px/u/Fj5jgBDcnf8lIqB5nP82G+ZXhTEW66S6OpckEt3e7CeGS1wRTi iRYQ== X-Gm-Message-State: AOAM530qh0azvMWiKVWTIiCd2pDPfkm8LHHGTNsLn4dxdO7yl+3JoYm5 BTsEQC72OVA1V3rjRKlISsMWMpU8rKVJGA== X-Received: by 2002:a6b:7f4d:: with SMTP id m13mr4895975ioq.134.1616515507923; Tue, 23 Mar 2021 09:05:07 -0700 (PDT) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com. [209.85.166.45]) by smtp.gmail.com with ESMTPSA id k11sm2036082iok.1.2021.03.23.09.05.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 09:05:07 -0700 (PDT) Received: by mail-io1-f45.google.com with SMTP id k25so6111573iob.6 for ; Tue, 23 Mar 2021 09:05:06 -0700 (PDT) X-Received: by 2002:a05:6602:26c6:: with SMTP id g6mr4919501ioo.150.1616515506402; Tue, 23 Mar 2021 09:05:06 -0700 (PDT) MIME-Version: 1.0 References: <20210319055342.127308-1-senozhatsky@chromium.org> <20210319055342.127308-4-senozhatsky@chromium.org> In-Reply-To: <20210319055342.127308-4-senozhatsky@chromium.org> From: Ricardo Ribalda Date: Tue, 23 Mar 2021 17:04:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv3 3/6] media: v4l UAPI: add ROI auto-controls flags To: Sergey Senozhatsky Cc: Laurent Pinchart , Tomasz Figa , Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey On Fri, Mar 19, 2021 at 6:53 AM Sergey Senozhatsky wrote: > > UVC 1.5 defines the following Region Of Interest auto controls: > > D0: Auto Exposure > D1: Auto Iris > D2: Auto White Balance > D3: Auto Focus > D4: Auto Face Detect > D5: Auto Detect and Track > D6: Image Stabilization > D7: Higher Quality > D8 =E2=80=93 D15: Reserved, set to zero > > Signed-off-by: Sergey Senozhatsky > --- > include/uapi/linux/v4l2-common.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v4l2-c= ommon.h > index 3651ebb8cb23..34f1c262d6aa 100644 > --- a/include/uapi/linux/v4l2-common.h > +++ b/include/uapi/linux/v4l2-common.h > @@ -92,6 +92,16 @@ > #define V4L2_SEL_FLAG_LE (1 << 1) > #define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2) > Are you sure that you do not want to start with 1<<3, there might be some hardware that support LE/SE > +/* ROI auto-controls flags */ > +#define V4L2_SEL_FLAG_ROI_AUTO_EXPOSURE (1 << 0) > +#define V4L2_SEL_FLAG_ROI_AUTO_IRIS (1 << 1) > +#define V4L2_SEL_FLAG_ROI_AUTO_WHITE_BALANCE (1 << 2) > +#define V4L2_SEL_FLAG_ROI_AUTO_FOCUS (1 << 3) > +#define V4L2_SEL_FLAG_ROI_AUTO_FACE_DETECT (1 << 4) > +#define V4L2_SEL_FLAG_ROI_AUTO_DETECT_AND_TRACK (1 << 5) > +#define V4L2_SEL_FLAG_ROI_AUTO_IMAGE_STABILIXATION (1 << 6) > +#define V4L2_SEL_FLAG_ROI_AUTO_HIGHER_QUALITY (1 << 7) > + > struct v4l2_edid { > __u32 pad; > __u32 start_block; > -- > 2.31.0.rc2.261.g7f71774620-goog > --=20 Ricardo Ribalda