Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1434390ybl; Wed, 14 Aug 2019 17:16:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPr1AFmdFuc+36uQ+42ROMWLFYZI26qHUFyyqpVHkbUtXGxL8TqTnrDsSr1aCKIYT2g9Qh X-Received: by 2002:a17:90a:71ca:: with SMTP id m10mr501274pjs.27.1565828208391; Wed, 14 Aug 2019 17:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565828208; cv=none; d=google.com; s=arc-20160816; b=ZAlR4R7FxcGlh0lvW6+8gI0Dgahfwm+CjXqak+fV866SH54vjEaoDXx7YOhsWvj+L3 Bx18xcLQtntySBickxZV6lPuNrvr+gQGCaN6lBgSmyO/IxECYQHII8bmu3E7yw2K+ZBJ n9GrlQcr/BhKxn1ZxaWGT9CkGNtucJH0j1UuLx2lWFxiqJmJaPuAZX3y/mT68eVWnNqx j5lmFXORpcM65kR8k0SwFOADdUbNF5tuMtL0E+e7VTg+MY5IURdCOonLbXaaZ4dhEcgw 9fXl82Esdrl3+wQysDNPBtxD0k87yNkMkgR5rzXKcIeRGX4luAH9rqWiAN0NcDp98ZVz INfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tEs3k7nNA4iPlhkafvABeYevVQQXazxyOCw5hE1G6MI=; b=zq+X5sYfTLv9RBXnV4otgS2IxVgM+D7fiuZ8h6PbKEaP2SOD1eSCRTN5Rra+UEeHGr +PmL2VazUhJZCRo5UvrYKJ0nWxaDB3kr3DvvfTQ5lGOE21x1ishvqWu2WxLVqzFy/DzR MP8VOBZZU3sXI4cDsMiP4cSDIBMxJLsB7JgscGnGF/zOQ5uTJ/iWK9cECNJY4GcFMJ0Y a6WLMc9kYFpHAsNGWu62A8UnMhcUkPGflfRZaOV9U6+SoI05FwcQG0pKBR5NXhSkmCRY 1t34jCfx7bdBsNgjxRICsg1tAUlDIYMz8HOAbQLGMturdCE3RYQUAhzcI/aV0UUJkHZ1 KziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Qk99QL3m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r62si850656plb.363.2019.08.14.17.16.31; Wed, 14 Aug 2019 17:16:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Qk99QL3m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728864AbfHNWnp (ORCPT + 99 others); Wed, 14 Aug 2019 18:43:45 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:57924 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfHNWnp (ORCPT ); Wed, 14 Aug 2019 18:43:45 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 604A82B2; Thu, 15 Aug 2019 00:43:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565822623; bh=ICpj+cOqcRGmfFUWQfxuOIteGqOdKh0L3iEelT37IRI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qk99QL3m2JnY5nuIw6NAQURbztsq3TN/Gnyv4QhkXT4JL0ObnTeKeYXEfaxFhdL+1 0TZcjb5fULoZUp8PGgrydO44c28SiYNfztWkwJK1z+8Dm4vNphz8Mv/oQcAH0Y++o/ Ef7eN0oHgeOSNbbMZlG/Ft0VC+GfwQuI8FXhTOX0= Date: Thu, 15 Aug 2019 01:43:40 +0300 From: Laurent Pinchart To: Jacopo Mondi Cc: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , "open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)" , open list Subject: Re: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION Message-ID: <20190814224340.GD5015@pendragon.ideasonboard.com> References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-3-jacopo@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190814202815.32491-3-jacopo@jmondi.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Wed, Aug 14, 2019 at 10:28:12PM +0200, Jacopo Mondi wrote: > Add documentation for the V4L2_CID_LOCATION camera control. The newly > added read-only control reports the camera device mounting position. > > Signed-off-by: Jacopo Mondi > --- > .../media/uapi/v4l/ext-ctrls-camera.rst | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > index 51c1d5c9eb00..fc0a02eee6d4 100644 > --- a/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > +++ b/Documentation/media/uapi/v4l/ext-ctrls-camera.rst > @@ -510,6 +510,29 @@ enum v4l2_scene_mode - > value down. A value of zero stops the motion if one is in progress > and has no effect otherwise. > > +``V4L2_CID_LOCATION (integer)`` Maybe V4L2_CID_CAMERA_SENSOR_LOCATION ? Same for the values below. > + This read-only control describes the camera location by reporting its Here too I would mention camera sensor instead of just camera (or possibly imaging sensor). > + mounting position on the device where the camera is installed. This > + control is particularly meaningful for devices which have a well defined > + orientation, such as phones, laptops and portable devices as the camera > + location is expressed as a position relative to the device intended > + usage position. In example, a camera installed on the user-facing side > + of a phone device is said to be installed in the ``V4L2_LOCATION_FRONT`` > + position. The DT bindings could use such an example :-) I would extend this to tablets and laptops. > + > + > + Do we need three blank lines ? > +.. flat-table:: > + :header-rows: 0 > + :stub-columns: 0 > + > + * - ``V4L2_LOCATION_FRONT`` > + - The camera device is located on the front side of the device. > + * - ``V4L2_LOCATION_BACK`` > + - The camera device is located on the back side of the device. > + > + > + > .. [#f1] > This control may be changed to a menu control in the future, if more > options are required. -- Regards, Laurent Pinchart