Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3934024ybx; Mon, 4 Nov 2019 05:14:51 -0800 (PST) X-Google-Smtp-Source: APXvYqz5ajvXR8dipgUxFX7hvkpdvo1cdqfN0FskGf2oLEYtzWvAxcFJ2C/AYvTA1hT1qOXKAYMN X-Received: by 2002:a17:907:20e7:: with SMTP id rh7mr23345493ejb.150.1572873291441; Mon, 04 Nov 2019 05:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572873291; cv=none; d=google.com; s=arc-20160816; b=YFWVY9ayIiwNTf1MQVU23CJMsFYOY5k2BRXhpQCyJ15PnrzEq6lABL4zuuXePwr015 AAVjJRpf/wOfe6jeOJcMdAJbsJe/6crZKwouCUeF7iHqO5yFi5+Xj0flZqrEsikk2eVO BMOSTiOP0Is6LUAgYhbMQcZV3GBRR7DQlX/0QyZxmQFwsNG+TBsrWr4h7g0Mf9h0gfgi QOkv8pgCXXDQmQ2nKkseds9ZVay6l4AZCtz0YDu9Stx421k/sKmaieo2l/1q0E+qKjPS +TMV1LI4GB3vduX5qw7sIV5/cH+TiPocfhLEHCF60VTF7vqmsqvLpm9O7j0TdQKJIx+c gClA== 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 :message-id:date:subject:cc:to:from; bh=T+OjJ+6/I6gUD391Oea+4W1UmtPnSSXB5pb5k146uYU=; b=B380ARRzQBOa2V+pKGT6xOTa9mYCX26OfBYRramJ2N0uD84G7fuhCMYGWRpZRItnap hyPX/WjAmSCTFdlBid6AUjORwmMI/lBfFT0Q07Wcl04+r8t1sCaiBfUWpHHWpmY7M2Et tE2tGbQXAtSMVjjd0whbTVDG+iGC48aQzqTEHZPOW1qZcpNcZke+i/YaCgDF/sjV+6HB OFyEIs9Ajz/PuXvg7i5tZ4tlXVpkUmJbWiexUw02BYOSWZIklDaC9wHQdyi9mZxtmsrC VWP7rK4CFeOhYOL9sAeNs8TG2gryk+DdlCEhi9Q1kJeuS6cJ/xoa6oQdFAlpHa2WtteL l2nA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si2451337eju.106.2019.11.04.05.14.28; Mon, 04 Nov 2019 05:14:51 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729221AbfKDNKJ (ORCPT + 99 others); Mon, 4 Nov 2019 08:10:09 -0500 Received: from mail-lj1-f174.google.com ([209.85.208.174]:45085 "EHLO mail-lj1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728741AbfKDNKI (ORCPT ); Mon, 4 Nov 2019 08:10:08 -0500 Received: by mail-lj1-f174.google.com with SMTP id n21so3892909ljg.12; Mon, 04 Nov 2019 05:10:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T+OjJ+6/I6gUD391Oea+4W1UmtPnSSXB5pb5k146uYU=; b=IqyPoXHGeBVO046+L7s4B45oDmzC0caWCsFS6u/7LEXJuLwsZY5cYNnKW8nCoMwD3V o+DGCuoJOoXGp2FOcPOuQRzwm7tRjxH37XOEMr3mzl2/Kbkb4/PAu913cpa4zzKOxs3m xZEpKhl6zCwa+P+RAGohqrnNBsVJrU7GNJoicXgcqkqKG/nrSOhZRZDzTBZ5yVYoqAN0 mSV73q5VrqihbPxmCrPor2Yks6e70nJtIMCtam/TPHevVTWXTO94+vYJmytqL5v0t+Gi BbUVFKpmj+J7fatWX/r2ylgMYCIOWLyPdcmq4uWhzpbu+BA7tODsog52NppWxR65CAje 49tw== X-Gm-Message-State: APjAAAV+7diWo8pcWVzVIIKf13cpcuRtcn58V6dvAZYyjQ4AlkFyu86m d45lkRto0rCfsgVk0rqHZzQ= X-Received: by 2002:a2e:9449:: with SMTP id o9mr18241139ljh.110.1572873005318; Mon, 04 Nov 2019 05:10:05 -0800 (PST) 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 z3sm5931801ljz.51.2019.11.04.05.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 05:10:04 -0800 (PST) From: Ricardo Ribalda Delgado To: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH v2 1/3] v4l2-ctl: Support query V4L2_CTRL_TYPE_AREA controls Date: Mon, 4 Nov 2019 14:09:58 +0100 Message-Id: <20191104131000.22359-1-ribalda@kernel.org> X-Mailer: git-send-email 2.24.0.rc1 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 Tested with vivid: $ v4l2-ctl -l | grep area area 0x0098f90b (area) : flags=has-payload Signed-off-by: Ricardo Ribalda Delgado --- utils/v4l2-ctl/v4l2-ctl-common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/v4l2-ctl/v4l2-ctl-common.cpp b/utils/v4l2-ctl/v4l2-ctl-common.cpp index 651917e7..b1c12b35 100644 --- a/utils/v4l2-ctl/v4l2-ctl-common.cpp +++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp @@ -458,6 +458,9 @@ static void print_qctrl(int fd, struct v4l2_query_ext_ctrl *queryctrl, queryctrl->minimum, queryctrl->maximum, queryctrl->step, queryctrl->default_value); break; + case V4L2_CTRL_TYPE_AREA: + printf("%31s %#8.8x (area) :", s.c_str(), queryctrl->id); + break; default: printf("%31s %#8.8x (unknown): type=%x", s.c_str(), queryctrl->id, queryctrl->type); -- 2.24.0.rc1