From patchwork Thu Jun 30 08:31:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Jones X-Patchwork-Id: 932152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5U8WD1C002407 for ; Thu, 30 Jun 2011 08:32:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754119Ab1F3IcJ (ORCPT ); Thu, 30 Jun 2011 04:32:09 -0400 Received: from mail2.matrix-vision.com ([85.214.244.251]:56562 "EHLO mail2.matrix-vision.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754109Ab1F3IcI (ORCPT ); Thu, 30 Jun 2011 04:32:08 -0400 Received: from mail2.matrix-vision.com (localhost [127.0.0.1]) by mail2.matrix-vision.com (Postfix) with ESMTP id D6E253F665; Thu, 30 Jun 2011 10:32:06 +0200 (CEST) Received: from erinome (g2.matrix-vision.com [80.152.136.245]) by mail2.matrix-vision.com (Postfix) with ESMTPA id A5C583F633; Thu, 30 Jun 2011 10:32:06 +0200 (CEST) Received: from erinome (localhost [127.0.0.1]) by erinome (Postfix) with ESMTP id 5B8796F8A; Thu, 30 Jun 2011 10:32:06 +0200 (CEST) Received: by erinome (Postfix, from userid 108) id 50E146F9C; Thu, 30 Jun 2011 10:32:06 +0200 (CEST) Received: from ap437-joe.intern.matrix-vision.de (host65-46.intern.matrix-vision.de [192.168.65.46]) by erinome (Postfix) with ESMTPA id 40EF56F8A; Thu, 30 Jun 2011 10:32:06 +0200 (CEST) From: Michael Jones To: Laurent Pinchart Cc: linux-media@vger.kernel.org Subject: prompt ISP CCDC freeze-up on STREAMON Date: Thu, 30 Jun 2011 10:31:53 +0200 Message-Id: <1309422713-18675-2-git-send-email-michael.jones@matrix-vision.de> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309422713-18675-1-git-send-email-michael.jones@matrix-vision.de> References: <1309422713-18675-1-git-send-email-michael.jones@matrix-vision.de> X-MV-Disclaimer: true (erinome) X-AV-Checked: ClamAV using ClamSMTP (erinome) X-AV-Checked: ClamAV using ClamSMTP (mail2) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Jun 2011 08:32:13 +0000 (UTC) --- yavta.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/yavta.c b/yavta.c index 2a166c6..95976b4 100644 --- a/yavta.c +++ b/yavta.c @@ -485,7 +485,9 @@ static int video_enable(struct device *dev, int enable) int type = dev->type; int ret; + printf("+%s\n", enable ? "STREAMON" : "STREAMOFF"); ret = ioctl(dev->fd, enable ? VIDIOC_STREAMON : VIDIOC_STREAMOFF, &type); + printf("-%s\n", enable ? "STREAMON" : "STREAMOFF"); if (ret < 0) { printf("Unable to %s streaming: %d.\n", enable ? "start" : "stop", errno); @@ -1063,6 +1065,7 @@ int main(int argc, char *argv[]) { struct device dev; int ret; + int i; /* Options parsings */ int do_file = 0, do_capture = 0, do_pause = 0; @@ -1259,6 +1262,9 @@ int main(int argc, char *argv[]) video_enum_inputs(&dev); } + for (i=0; i<100; i++) { + printf("==== %d ====\n", i); + if (do_set_input) { video_set_input(&dev, input); ret = video_get_input(&dev); @@ -1313,6 +1319,8 @@ int main(int argc, char *argv[]) return 1; } + } + video_close(&dev); return 0; }