public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Andreas Nagel <andreasnagel@gmx.net>
Cc: Sakari Ailus <sakari.ailus@iki.fi>, linux-media@vger.kernel.org
Subject: Re: OMAP3 ISP: VIDIOC_STREAMON and VIDIOC_QBUF calls fail
Date: Thu, 08 Nov 2012 10:26:11 +0100	[thread overview]
Message-ID: <4541060.0oGRVnU8K8@avalon> (raw)
In-Reply-To: <509A4473.3080506@gmx.net>

Hi,

On Wednesday 07 November 2012 12:22:27 Andreas Nagel wrote:
> 
> > My code sets up the ISP pipeline, configures the format on all the
> > subdevices pads and the actual video device. Works fine so far.
> > Then I passed user pointers (aquired with malloc) to the device
> > driver for the capture buffers. Before issuing VIDIOC_STREAMON, I
> > enqueue my buffers with VIDIOC_QBUF, which fails with errno = EIO. I
> > don't know, why this is happening or where to got from here.
> > 
> >> One possibility could be that mapping the buffer to ISP MMU fails for
> >> a reason or another. Do you set the length field in the buffer?
> 
> Yes, the length was set when using userptr.
> 
> >> And am I missing something else?
> > 
> > The formats on the pads at different ends of the links in the pipeline
> > must match. In most cases, they have to be exactly the same.
> > 
> > Have you used the media-ctl test program here?
> > 
> > <URL:http://git.ideasonboard.org/media-ctl.git>
> > 
> > media-ctl -p gives you (and us) lots of information that helps figuring
> > out what could go wrong here.
> 
> All pads do indeed have the same format.
> I ran media-ctl, as you suggested. You can see the topology in the
> attached textfile.

media-ctl doesn't show pad formats, that's a bit weird. Are you using a recent 
version ?

Does the TVP5146 generate interlaced frames ?

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2012-11-08  9:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05 15:47 OMAP3 ISP: VIDIOC_STREAMON and VIDIOC_QBUF calls fail Andreas Nagel
2012-11-06 21:51 ` Sakari Ailus
2012-11-07 11:22   ` Andreas Nagel
2012-11-08  9:26     ` Laurent Pinchart [this message]
2012-11-08  9:29       ` Sakari Ailus
2012-11-10 13:49         ` Andreas Nagel
2012-11-10 20:22           ` Sakari Ailus
2012-11-12 11:27           ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4541060.0oGRVnU8K8@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=andreasnagel@gmx.net \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox