Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2146312ybl; Thu, 15 Aug 2019 07:16:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL80E1MDqVAqZskWyMDZE1jCXNKrQhkkwvzTAPXtqBQYelQJQAVir2f+NGP1QaI32o0p/b X-Received: by 2002:a65:5183:: with SMTP id h3mr3714018pgq.250.1565878565793; Thu, 15 Aug 2019 07:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565878565; cv=none; d=google.com; s=arc-20160816; b=ZDIR/dOzrElud7DJ3a7D7Dz+1SAx80hhf1o+ZlfJsDipCcQcDlNinV8oX92QyRzlPO bWogS6Ho0blORjb/1gEIkr7YfzJiBFxfZyxxvLAGHRrr6grtzy4OFfqwikzGGha/IdyN 5sTecywvD52ivfInwnrjk4k4HSnvVl0SOY6o9Xf8n0uurwvTt+Yt8lMngv5J32KcWBdV 9Cz0BH17z2+DLOQ3CXbdEj/5MbWjw5SXA+wJrkcrFG5MrNBCbytU2gZ+clNUv3X52q29 NIw0TJ7OSupGb6d5j/F6JGYm+XkqVsADvLYgyriGRN8vS0mwrefBBYVYiR1AZ50BRWeg k96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=y7kUFTfH+tp5z2+Ii5GobbBtlpuQTtYIVvHpX2Pimzw=; b=CqFVMPvGBV/HJfkSbN2egsTwuJ4i7eLwr6tJrk0pwdHyfL0OgZC7zGlwW+vaeHTkmp 5+kww78uZaCeSS2IathmimoT8GEYwGgjyaZog5i8LwjSHPhjupmFZxnNeB5u6qqXPT+8 lJCMozfR1k2S4guparlFgi8rpzZTTWxMpPeXKNwZABdmKZlbtDHbggjissBzsMQuV/KK pN4QJNLWvpZoLGCpuYR8q7HzX/hZEIP8nRo3lZIdK1w+8cdPe9+z+nKCpFWR0KVA7D8o sGZj3vCuAPqGu6z94gnPIybUTchJgJ91qbXdyJmp24v5kU9LA9Ab7H/qD497oM9TQzH6 epyA== ARC-Authentication-Results: i=1; mx.google.com; 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 z20si2011917plo.159.2019.08.15.07.15.50; Thu, 15 Aug 2019 07:16:05 -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; 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 S1732809AbfHOOOo (ORCPT + 99 others); Thu, 15 Aug 2019 10:14:44 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:37957 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731849AbfHOOOn (ORCPT ); Thu, 15 Aug 2019 10:14:43 -0400 Received: from [IPv6:2001:420:44c1:2579:f038:4b04:f67a:276f] ([IPv6:2001:420:44c1:2579:f038:4b04:f67a:276f]) by smtp-cloud8.xs4all.net with ESMTPA id yGWUhwFTBDqPeyGWXhYSlG; Thu, 15 Aug 2019 16:14:41 +0200 Subject: Re: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION From: Hans Verkuil To: Laurent Pinchart , Jacopo Mondi Cc: Mauro Carvalho Chehab , Sakari Ailus , "open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)" , open list References: <20190814202815.32491-1-jacopo@jmondi.org> <20190814202815.32491-3-jacopo@jmondi.org> <20190814224340.GD5015@pendragon.ideasonboard.com> <664fe7b3-9051-30da-736e-710a4e9cecde@xs4all.nl> Message-ID: Date: Thu, 15 Aug 2019 16:14:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <664fe7b3-9051-30da-736e-710a4e9cecde@xs4all.nl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfAp0N0pJwn5h1zan4pHjw8p+P0B1uNZBUOKalZ1aVx2u5TwLAPrQTimvcqy7qAZEwnd/USuFj45V6BA/d53Y/6dD90lrU9K+5keME5RuzgkXBoiD0G6c IOkTGPdJ91DvOJND8anpvlPW5wISF5XYWExuXYHS//gJSzgbmDSPZiBvJrOyykxAR0PRahCocbwtcZV62CRBoMYl6KiBfeDjvL72HUZhzRSbQ6pE0Ja2fYQ3 gwiZ/g3gvf44HeOMbKVEpXryM/TqV/+Zk1DBfaXZ2RKKXGHTbj1UDdEktK1CZRljmdiUKMMyun2c/uoT99ayq470uUfhSXDeR5JSrd1VlF+/7v4gY9dG0x/J 1sd58X3BVUnKVHSOsBJ/BbaxcIa/Be4Hl3ozSlgkvjWYhQLZewddqD9GLnRc5ytg0I5L7wG9bLmH6G2aWh5qXViBR/EWq6/IqxvPaJgZ/71pmkDaG5Yb0+Bq RFmNyN32331MuksV Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/15/19 4:10 PM, Hans Verkuil wrote: > On 8/15/19 12:43 AM, Laurent Pinchart wrote: >> 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. > > Probably a better name, if a bit long. But we might need other location > controls in the future (e.g. flash location), so CID_LOCATION is just too > generic. Note that the location defines themselves can most likely be used with any LOCATION control, so V4L2_LOCATION_FRONT would be fine with any control. Regards, Hans > > Regards, > > Hans > >> >>> + 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. >> >