From patchwork Tue Sep 11 17:06:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe De Muyter X-Patchwork-Id: 10595949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5C8C921 for ; Tue, 11 Sep 2018 17:06:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EF7229A64 for ; Tue, 11 Sep 2018 17:06:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9299E29AD3; Tue, 11 Sep 2018 17:06:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CD2829A64 for ; Tue, 11 Sep 2018 17:06:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728122AbeIKWG5 (ORCPT ); Tue, 11 Sep 2018 18:06:57 -0400 Received: from smtp2.macqel.be ([109.135.2.61]:49320 "EHLO smtp2.macqel.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727647AbeIKWG5 (ORCPT ); Tue, 11 Sep 2018 18:06:57 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.macqel.be (Postfix) with ESMTP id 98179130D43; Tue, 11 Sep 2018 19:06:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at macqel.be Received: from smtp2.macqel.be ([127.0.0.1]) by localhost (mail.macqel.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id otU1b8ObYmVJ; Tue, 11 Sep 2018 19:06:41 +0200 (CEST) Received: from perdita.MACQEL (perdita.macqel [10.1.40.53]) by smtp2.macqel.be (Postfix) with ESMTP id 0967C130D3A; Tue, 11 Sep 2018 19:06:41 +0200 (CEST) Received: from perdita.MACQEL (localhost [127.0.0.1]) by perdita.MACQEL (8.14.4/8.14.4/SuSE Linux 0.8) with ESMTP id w8BH6cfV027561; Tue, 11 Sep 2018 19:06:40 +0200 Received: (from p6@localhost) by perdita.MACQEL (8.14.4/8.14.4/Submit) id w8BH6cS5027551; Tue, 11 Sep 2018 19:06:38 +0200 X-Authentication-Warning: perdita.MACQEL: p6 set sender to phdm@macq.eu using -f From: Philippe De Muyter To: linux-media@vger.kernel.org, slongerbeam@gmail.com Cc: Philippe De Muyter Subject: [PATCH v3 0/2] media: v4l2-subdev.h: allow V4L2_FRMIVAL_TYPE_CONTINUOUS & _STEPWISE Date: Tue, 11 Sep 2018 19:06:31 +0200 Message-Id: <1536685593-27512-1-git-send-email-phdm@macqel.be> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add V4L2_FRMIVAL_TYPE_CONTINUOUS and V4L2_FRMIVAL_TYPE_STEPWISE for subdev's frame intervals in addition to implicit existing V4L2_FRMIVAL_TYPE_DISCRETE type. --- v2: Add a 'type' field and a helper function, as asked by Hans v3: Fix documentation (as asked by Hans) Convert a driver to use the new helper function (asked by Hans) Initialize 'which' to V4L2_SUBDEV_FORMAT_ACTIVE in helper Philippe De Muyter (2): media: v4l2-subdev.h: allow V4L2_FRMIVAL_TYPE_CONTINUOUS & _STEPWISE media: imx: capture: use 'v4l2_fill_frmivalenum_from_subdev' .../uapi/v4l/vidioc-subdev-enum-frame-interval.rst | 69 +++++++++++++++++++++- drivers/media/v4l2-core/v4l2-common.c | 32 ++++++++++ drivers/staging/media/imx/imx-media-capture.c | 18 +----- include/media/v4l2-common.h | 12 ++++ include/uapi/linux/v4l2-subdev.h | 22 ++++++- 5 files changed, 133 insertions(+), 20 deletions(-)