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: 7341 Return-path: Envelope-to: mchehab@pedra Delivery-date: Thu, 30 Jun 2011 09:06:01 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1QcG0P-0001AZ-Cx for mchehab@pedra; Thu, 30 Jun 2011 09:06:01 -0300 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Thu, 30 Jun 2011 09:06:01 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QcCgk-0004Qw-VM; Thu, 30 Jun 2011 08:33:31 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754119Ab1F3IcJ (ORCPT + 1 other); 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) Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: --- 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; }