From patchwork Fri May 13 13:24:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 6598 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Fri, 13 May 2011 17:42:51 +0200 Received: from mchehab by gaivota with local (Exim 4.73) (envelope-from ) id 1QKuVv-0004gX-Ax for mchehab@gaivota; Fri, 13 May 2011 17:42:51 +0200 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.19) for (single-drop); Fri, 13 May 2011 17:42:51 +0200 (CEST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1QKsMA-0005BI-TZ; Fri, 13 May 2011 13:24:39 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933049Ab1EMNYR (ORCPT + 1 other); Fri, 13 May 2011 09:24:17 -0400 Received: from smtp.nokia.com ([147.243.128.24]:56105 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932618Ab1EMNYP (ORCPT ); Fri, 13 May 2011 09:24:15 -0400 Received: from maxwell.research.nokia.com (maxwell.research.nokia.com [172.21.50.162]) by mgw-da01.nokia.com (Switch-3.4.4/Switch-3.4.3) with ESMTP id p4DDODBA001994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 May 2011 16:24:15 +0300 Received: from kaali.localdomain (kaali.localdomain [192.168.239.7]) by maxwell.research.nokia.com (Postfix) with ESMTPS id 65BA537FCDA; Fri, 13 May 2011 16:24:13 +0300 (EEST) Received: from sailus by kaali.localdomain with local (Exim 4.72) (envelope-from ) id 1QKsLl-0004Ho-Bc; Fri, 13 May 2011 16:24:13 +0300 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl Subject: [PATCH 1/1] v4l: Document EACCES in VIDIOC_G_CTRL and VIDIOC_G_EXT_CTRLS Date: Fri, 13 May 2011 16:24:13 +0300 Message-Id: <1305293053-16448-1-git-send-email-sakari.ailus@maxwell.research.nokia.com> X-Mailer: git-send-email 1.7.2.5 X-Nokia-AV: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab VIDIOC_G_CTRL and VIDIOC_G_EXT_CTRLS return EACCES when setting a read-only control or getting a write-only control. Document this. Signed-off-by: Sakari Ailus --- Documentation/DocBook/v4l/vidioc-g-ctrl.xml | 7 +++++++ Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml | 7 +++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/Documentation/DocBook/v4l/vidioc-g-ctrl.xml b/Documentation/DocBook/v4l/vidioc-g-ctrl.xml index 8b5e6ff..5146d00 100644 --- a/Documentation/DocBook/v4l/vidioc-g-ctrl.xml +++ b/Documentation/DocBook/v4l/vidioc-g-ctrl.xml @@ -117,6 +117,13 @@ because another applications took over control of the device function this control belongs to. + + EACCES + + Attempt to set a read-only control or to get a + write-only control. + + diff --git a/Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml index 3aa7f8f..5e73517 100644 --- a/Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml +++ b/Documentation/DocBook/v4l/vidioc-g-ext-ctrls.xml @@ -294,6 +294,13 @@ The field size is set to a value that is enough to store the payload and this error code is returned. + + EACCES + + Attempt to try or set a read-only control or to get a + write-only control. + +