From patchwork Sat Sep 6 15:26:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 4857611 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BC9AE9F32F for ; Sat, 6 Sep 2014 15:28:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D27AD2013A for ; Sat, 6 Sep 2014 15:28:07 +0000 (UTC) Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B6BD2012F for ; Sat, 6 Sep 2014 15:28:06 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s86FS5pC031195 for ; Sat, 6 Sep 2014 10:28:05 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s86FS5SJ002318 for ; Sat, 6 Sep 2014 10:28:05 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Sat, 6 Sep 2014 10:28:04 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s86FS4qM007285 for ; Sat, 6 Sep 2014 10:28:05 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id B40E480627 for ; Sat, 6 Sep 2014 10:28:04 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id 46E0E8062A for ; Sat, 6 Sep 2014 10:27:46 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s86FRjgQ028213 for ; Sat, 6 Sep 2014 10:27:45 -0500 Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id s86FRjFf001630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 6 Sep 2014 10:27:45 -0500 Received: from [216.82.253.163:51293] by server-15.bemta-7.messagelabs.com id F5/11-09096-1F72B045; Sat, 06 Sep 2014 15:27:45 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-2.tower-166.messagelabs.com!1410017263!18403379!1 X-Originating-IP: [74.125.82.43] X-SpamReason: No, hits=0.2 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, RCVD_ILLEGAL_IP,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22682 invoked from network); 6 Sep 2014 15:27:44 -0000 Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by server-2.tower-166.messagelabs.com with RC4-SHA encrypted SMTP; 6 Sep 2014 15:27:44 -0000 Received: by mail-wg0-f43.google.com with SMTP id x12so506628wgg.14 for ; Sat, 06 Sep 2014 08:27:43 -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=SuBYuby/hR8iUt3xahnW5wG24yvOn8atDQXKnWZc0nk=; b=g7lul64vKXqZbfqgYRS3FT4btRNN1q+kvHyKJaUfOvzX0RiRiEWw7sRo1NLKQGWGwH e5o1xTmxQOsvuRscihouSsBfWJMmPcML4kyEDqTqPI+rBqQYVwCQLKsmTyd2Mtrnlml6 xUyn1d2YWaC/Vlrxcq6OGOtmdvWo7tzkk4+Uy5Q3DC69TciuA7yWyw+kfVmi2Z8mvbE1 8eogeZiEQQRamIsUDvJBW60HkB5yhjA8AF5GuS2nYCWavTNoLoX8z0NHyJFGlh6rpKcL LODJ2kJz6l2t7WhW/3gRSKWidqR8cU0VSG4jv/Cs/R/uHz2YTsp1ZIaR719hocNwwqq8 e+2g== X-Received: by 10.180.99.34 with SMTP id en2mr10936703wib.34.1410017263150; Sat, 06 Sep 2014 08:27:43 -0700 (PDT) Received: from tango-charlie.Home ([2.127.193.40]) by mx.google.com with ESMTPSA id bg10sm4831620wjc.47.2014.09.06.08.27.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Sep 2014 08:27:42 -0700 (PDT) From: "Lad, Prabhakar" To: LMML Subject: [PATCH 3/5] media: videobuf2-core.h: add a helper to get status of start_streaming() Date: Sat, 6 Sep 2014 16:26:49 +0100 Message-ID: <1410017211-15438-4-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1410017211-15438-1-git-send-email-prabhakar.csengg@gmail.com> References: <1410017211-15438-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , Pawel Osciak , LKML , Hans Verkuil , Kyungmin Park , Marek Szyprowski , Mauro Carvalho Chehab X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 this patch adds a helper to get the status if start_streaming() was called successfully. Signed-off-by: Lad, Prabhakar Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Hans Verkuil --- include/media/videobuf2-core.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 5a10d8d..b3c9973 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -590,6 +590,15 @@ vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no) return 0; } +/** + * vb2_start_streaming_called() - return streaming status of driver + * @q: videobuf queue + */ +static inline bool vb2_start_streaming_called(struct vb2_queue *q) +{ + return q->start_streaming_called; +} + /* * The following functions are not part of the vb2 core API, but are simple * helper functions that you can use in your struct v4l2_file_operations,