From patchwork Fri Aug 21 09:29:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 7050571 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DB4249F358 for ; Fri, 21 Aug 2015 09:31:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E83AB204D1 for ; Fri, 21 Aug 2015 09:31:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B0682047D for ; Fri, 21 Aug 2015 09:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753867AbbHUJbX (ORCPT ); Fri, 21 Aug 2015 05:31:23 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:33315 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753706AbbHUJaB (ORCPT ); Fri, 21 Aug 2015 05:30:01 -0400 Received: by lbbsx3 with SMTP id sx3so40019357lbb.0; Fri, 21 Aug 2015 02:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V0b8j6bUQghDw5uApswWWErl8x7ZYh6/F9cjDxlqTg4=; b=aEldf8C89vM3/31EKhgYCA5C9sjx//7KXjh0KoA0afy0nNCr3ZSPW24Hie9/pu13/e +Jj3szdqEd7Vsoa8HgE3+7PlIvGLKaql4rbna23Gfhh3cfDFJm2oZ6pl5AHMWRw5PaPh WgZ2gN5O9P3sAmuPoBfJK+xVd4kxvJWQ05hKRPclbz04c6dSGJkhpQxqFo2GDQNkAELq DS3hfcIDZkhPU/dE5zc9uRQFpk/M9Qa6LxRdalwmXy+NtusUW6cvC7pSghkAOvGncygh iPFggTVszdWH5tVCjvGYIijO/NDyIgON1svDkA7dcQ9NE5BDyEm2dxCHCwjd7V8fEGII e9DQ== X-Received: by 10.112.62.133 with SMTP id y5mr6276409lbr.120.1440149399824; Fri, 21 Aug 2015 02:29:59 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id f10sm2112680lae.23.2015.08.21.02.29.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Aug 2015 02:29:58 -0700 (PDT) From: Ricardo Ribalda Delgado To: Mauro Carvalho Chehab , Mike Isely , Laurent Pinchart , Hans Verkuil , Steven Toth , Sakari Ailus , Vincent Palatin , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 8/8] Docbook: media: Document changes on struct v4l2_ext_controls Date: Fri, 21 Aug 2015 11:29:46 +0200 Message-Id: <1440149386-19783-9-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1440149386-19783-1-git-send-email-ricardo.ribalda@gmail.com> References: <1440149386-19783-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Vidioc-g-ext-ctrls can now be used to get the default value of the controls. Signed-off-by: Ricardo Ribalda Delgado --- Documentation/DocBook/media/v4l/v4l2.xml | 9 +++++++++ Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 14 ++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml index e98caa1c39bd..be52bd2fb335 100644 --- a/Documentation/DocBook/media/v4l/v4l2.xml +++ b/Documentation/DocBook/media/v4l/v4l2.xml @@ -153,6 +153,15 @@ structs, ioctls) must be noted in more detail in the history chapter applications. --> + 4.4 + 2015-08-20 + rr + Extend vidioc-g-ext-ctrls;. Replace ctrl_class with a new +union with ctrl_class and which. Which is used to select the current value of +the control or the default value. + + + 3.21 2015-02-13 mcc diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml index c5bdbfcc42b3..224fa2bd1481 100644 --- a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml @@ -216,7 +216,12 @@ Valid if V4L2_CTRL_FLAG_HAS_PAYLOAD is set for this control &cs-str; + + union + (anonymous) + + __u32 ctrl_class The control class to which all controls belong, see @@ -228,6 +233,15 @@ with a count of 0. If that succeeds, then the driver supports this feature. + + __u32 + which + Which control are get/set/tried. V4L2_CTRL_WHICH_CUR_VAL +will return the current value of the control and V4L2_CTRL_WHICH_DEF_VAL will +return the default value of the control. Please note that the default value of the control cannot +be set or tried, only get. + + __u32 count The number of controls in the controls array. May