Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1255407ybl; Wed, 14 Aug 2019 13:29:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpDhI/tV3Eln1fEhJsz7OCGGkxxc2SyvlIWSpDrGbGK9UA9Kl/wFw4ojHHDKaYnzUlEEFc X-Received: by 2002:aa7:85cd:: with SMTP id z13mr1859316pfn.214.1565814560857; Wed, 14 Aug 2019 13:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565814560; cv=none; d=google.com; s=arc-20160816; b=uYu4ywxDxzcaDRH2X1IYrExM3alrJlAe51NPzGOz+PryW6cmVARom+D95FEwOQwsrz K10NVQSEEU0tah6BK7EYuBXPO6o1xIcP4AydJfBlM6JinOQ2Jb22Els9w48UH8ctd2QH U5t+mnmMZxUk5l8dfG0W6ZLgysnTTIWIovnB4zn9kAAovuG2CFxyrgYZlhMDqEK6MQqB tVKUM4ngJ2usWgWMcl/QA4roDfJX1HQ7MBfBUvhjlXrSdRwZ3HSysK+MDp1Wz547M6pF uS/2znrunHCofxLpBHwtOrGczOAaKZF4O9dWxcqyW/wRjJnmDWZ+AqyWIs1hWOhcMUCl jBWQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=H8EI94piNpPBRcEcVnAnT+5SAHNAn1TM3w9H1WwSxlU=; b=g2uVhYnYVuBLjfbhElcrHzWUUoj4RIj9FuoC9zArO7rENYSWeefEjpBQO/Gsup/88K v+neWuaZO95ahZ8hyMECU3euxfb9Eudxi/rOtDsvsIDzNJMRIQUhvU2wcdPu1l8kvR6N OhJvA52UL8A7ESc0/+QxmSd42HcnE9hD3NoKHLG0u5MolNrMjdVi6BULvKE1nCN/L82M V9n9HvQCsr4TQk+Lhr7TODWsiMV3NU72loc3mhhbw+qkgIkrQ25Ozz+C9ybCs3z8LJAy ufi4oWY+iBmrWfY4XjPeRGI6PLVmU7oQNbafwftu8FFwlgYLAGziCTJolRvzhaWN7CN1 GXlQ== 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 t191si457732pgd.370.2019.08.14.13.29.05; Wed, 14 Aug 2019 13:29:20 -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 S1729562AbfHNU1R (ORCPT + 99 others); Wed, 14 Aug 2019 16:27:17 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:45043 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbfHNU1Q (ORCPT ); Wed, 14 Aug 2019 16:27:16 -0400 X-Originating-IP: 87.5.130.64 Received: from uno.homenet.telecomitalia.it (host64-130-dynamic.5-87-r.retail.telecomitalia.it [87.5.130.64]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 4E018FF808; Wed, 14 Aug 2019 20:27:13 +0000 (UTC) From: Jacopo Mondi To: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Laurent Pinchart Cc: Jacopo Mondi , linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)), linux-kernel@vger.kernel.org (open list) Subject: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION Date: Wed, 14 Aug 2019 22:28:12 +0200 Message-Id: <20190814202815.32491-3-jacopo@jmondi.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814202815.32491-1-jacopo@jmondi.org> References: <20190814202815.32491-1-jacopo@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)`` + This read-only control describes the camera location by reporting its + 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. + + + +.. 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. -- 2.22.0