saa7130 driver error
- Date: Wed, 23 Apr 2008 15:35:28 +0200
- From: "Francisco Javier Cabello Torres" <fjcabello@xxxxxxxxxxxxxxxx>
- Subject: saa7130 driver error
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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list