public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* saa7130 driver error
@ 2008-04-23 13:35 Francisco Javier Cabello Torres
  2008-04-23 14:11 ` Daniel Glöckner
  0 siblings, 1 reply; 2+ messages in thread
From: Francisco Javier Cabello Torres @ 2008-04-23 13:35 UTC (permalink / raw)
  To: video4linux-list, Gerd Knorr

Dear all,

I am developping a conventional video application over a saa7130 board.
I am using kernel 2.6.24.4 and I use saa7134 driver which is included.

I am able to open the device and get images using mmap way.
Sometimes saa7134 decoder is not able to complete a buffer and an
internal timeout rises. The function called is  saa7134_buffer_timeout
(saa7134-core.c).

When this happens VIDIOC_DQBUF ioctl returns -1 and errno=EIO.
In this case application shoudl enqueue the buffer calling VIDIOC_QBUF.
The problem is that after calling VIDIOC_DQBUF ioctl, v4l2_buffer structure
is not
properly filled. Buffer index isn't set and when I try to enqueue the buffer
the driver
always gives me an error.

I have checked videbuf-core.c and as I expected,  videobuf_qbuf function
expects
buffer number in order to dequeue it.

The problem is each time this happens one buffer is lost. If you are using
eight buffers,
after eight errors the capture will stop.

Anyone has any clue?

Thanks in advance

Paco

-- 
Francisco Javier Cabello Torres
Investigación y Desarrollo
Research and Development
-----
V I S U A L T O O L S
C/Isla Graciosa, 1.
28034 Madrid, Spain.
Telephone: + 34 91 729 48 44
Fax: +34 91 358 52 36
Clave pública:
http://keyserv.nic-se.se:11371/pks/lookup?op=get&search=0x568AE122BBBE5820
--------------------------------------
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: saa7130 driver error
  2008-04-23 13:35 saa7130 driver error Francisco Javier Cabello Torres
@ 2008-04-23 14:11 ` Daniel Glöckner
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Glöckner @ 2008-04-23 14:11 UTC (permalink / raw)
  To: Francisco Javier Cabello Torres; +Cc: video4linux-list

On Wed, Apr 23, 2008 at 03:35:28PM +0200, Francisco Javier Cabello Torres wrote:
> When this happens VIDIOC_DQBUF ioctl returns -1 and errno=EIO.
> In this case application shoudl enqueue the buffer calling VIDIOC_QBUF.
> The problem is that after calling VIDIOC_DQBUF ioctl, v4l2_buffer structure
> is not
> properly filled. Buffer index isn't set and when I try to enqueue the buffer
> the driver
> always gives me an error.

This issue came up a few times on the list

http://marc.info/?t=105628128200001
http://marc.info/?t=108968901100001
http://marc.info/?t=117733484100008 (<- exactly 1 year ago!)
http://marc.info/?t=118708263500011

It doesn't look like there has been any agreement on how to handle this case.

  Daniel

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-23 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 13:35 saa7130 driver error Francisco Javier Cabello Torres
2008-04-23 14:11 ` Daniel Glöckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox