pxa_camera with one buffer don't work
Hi,
is it normal, that the pxa_camera driver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.
Thanks,
Stefan
Signature · 19 lines
Dipl.-Ing. Stefan Herbrechtsmeier Heinz Nixdorf Institute University of Paderborn System and Circuit Technology Fürstenallee 11 D-33102 Paderborn (Germany) office : F0.415 phone : + 49 5251 - 60 6342 fax : + 49 5251 - 60 6351 mailto : [email protected] www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 4 lines · Stefan Herbrechtsmeier
Hi,
is it normal, that the
pxa_cameradriver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.
Well, in v4l2-apps/test/capture_example.c we see:
if (req.count < 2) {
fprintf (stderr, "Insufficient buffer memory on %s\n",
dev_name);
exit (EXIT_FAILURE);
}so, they seem to refuse to run with fewer than 2 buffers. But if I remove this restriction and enforce 1 buffer, it works. 2.5 times slower, but works. Can there be a problem with your application? What kernel sources are you using? Try using the latest v4l-dvb/devel git.
Thanks
Guennadi
---
Guennadi Liakhovetski
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 11 lines · Guennadi Liakhovetski
Quoted 5 lines · Stefan Herbrechtsmeier
Hi,
is it normal, that the
pxa_cameradriver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.Well, in
v4l2-apps/test/capture_example.cwe see:
Quoted 7 lines
if (req.count < 2) { fprintf (stderr, "Insufficient buffer memory on %s\n", dev_name); exit (EXIT_FAILURE); }so, they seem to refuse to run with fewer than 2 buffers. But if I remove this restriction and enforce 1 buffer, it works. 2.5 times slower, but works.
If I do the same thing, I get a select timeout.
Quoted 2 lines
Can there be a problem with your application? What kernel sources are you using? Try using the latest v4l-dvb/devel git.
At the moment I use the kernel 2.6.24 and the V4L kernel modules from mercurial. After I have port my robot platform to the current kernel, I will test it again. What do you mean by latest v4l-dvb/devel git:
git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb.git?
Regards
Stefan
Signature · 19 lines
Dipl.-Ing. Stefan Herbrechtsmeier Heinz Nixdorf Institute University of Paderborn System and Circuit Technology Fürstenallee 11 D-33102 Paderborn (Germany) office : F0.415 phone : + 49 5251 - 60 6342 fax : + 49 5251 - 60 6351 mailto : [email protected] www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 18 lines · Stefan Herbrechtsmeier
Quoted 17 lines · Guennadi Liakhovetski
Quoted 5 lines · Stefan Herbrechtsmeier
Hi,
is it normal, that the
pxa_cameradriver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.Well, in
v4l2-apps/test/capture_example.cwe see:if (req.count < 2) { fprintf (stderr, "Insufficient buffer memory on %s\n", dev_name); exit (EXIT_FAILURE); }
Quoted 4 lines
Quoted 3 lines
so, they seem to refuse to run with fewer than 2 buffers. But if I remove this restriction and enforce 1 buffer, it works. 2.5 times slower, but works.
If I do the same thing, I get a select timeout.
With the same capture_example.c?
Quoted 5 lines
Quoted 3 lines
Can there be a problem with your application? What kernel sources are you using? Try using the latest v4l-dvb/devel git.
At the moment I use the kernel 2.6.24 and the V4L kernel modules from mercurial.
How new are the modules?
Quoted 4 lines
After I have port my robot platform to the current kernel, I will test it again.
What do you mean by latest v4l-dvb/devel git:
git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb.git?
Yes, its "devel" branch.
Thanks
Guennadi
---
Guennadi Liakhovetski
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 23 lines · Guennadi Liakhovetski
Quoted 20 lines · Stefan Herbrechtsmeier
Quoted 18 lines · Guennadi Liakhovetski
Quoted 6 lines · Stefan Herbrechtsmeier
Hi,
is it normal, that the
pxa_cameradriver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.Well, in
v4l2-apps/test/capture_example.cwe see:if (req.count < 2) { fprintf (stderr, "Insufficient buffer memory on %s\n", dev_name); exit (EXIT_FAILURE); }
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
so, they seem to refuse to run with fewer than 2 buffers. But if I remove this restriction and enforce 1 buffer, it works. 2.5 times slower, but works.
If I do the same thing, I get a select timeout.
With the same
capture_example.c?
I used a modified capture_example.c (with the modification you point me some emails ago). If I change the req.count to 1 and remove the restriction I get the select timeout.
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Can there be a problem with your application? What kernel sources are you using? Try using the latest v4l-dvb/devel git.
At the moment I use the kernel 2.6.24 and the V4L kernel modules from mercurial.
How new are the modules?
I have update the modules some hours ago.
Quoted 10 lines
Quoted 6 lines
After I have port my robot platform to the current kernel, I will test it again.
What do you mean by latest v4l-dvb/devel git:
git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb.git?Yes, its "devel" branch.
Thanks
Stefan
Signature · 19 lines
Dipl.-Ing. Stefan Herbrechtsmeier Heinz Nixdorf Institute University of Paderborn System and Circuit Technology Fürstenallee 11 D-33102 Paderborn (Germany) office : F0.415 phone : + 49 5251 - 60 6342 fax : + 49 5251 - 60 6351 mailto : [email protected] www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 25 lines · Stefan Herbrechtsmeier
Quoted 24 lines · Guennadi Liakhovetski
Quoted 21 lines · Stefan Herbrechtsmeier
Quoted 19 lines · Guennadi Liakhovetski
Quoted 5 lines · Stefan Herbrechtsmeier
Hi,
is it normal, that the
pxa_cameradriver don`t work with one buffer?. The DQBUF blocks if only one buffer is in the query.Well, in
v4l2-apps/test/capture_example.cwe see:if (req.count < 2) { fprintf (stderr, "Insufficient buffer memory on %s\n", dev_name); exit (EXIT_FAILURE); }so, they seem to refuse to run with fewer than 2 buffers. But if I remove this restriction and enforce 1 buffer, it works. 2.5 times slower, but works.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
If I do the same thing, I get a select timeout.
With the same
capture_example.c?I used a modified
capture_example.c(with the modification you point me some emails ago). If I change the req.count to 1 and remove the restriction I get the select timeout.
I forget to say, that I use V4L2_PIX_FMT_YUYV
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 4 lines · Stefan Herbrechtsmeier
Quoted 3 lines
I used a modified
capture_example.c(with the modification you point me some emails ago). If I change the
req.count to 1 and remove the restriction I get the select timeout.I forget to say, that I use
V4L2_PIX_FMT_YUYV
Aha, this, certainly, can make a difference! Unfortunately, I don't have a possibility to test with YUYV, so, someone with the hardware has to investigate this further (CC-ing the original YUYV-support in PXA270 author), or I need access to such hardware.
Thanks
Guennadi
---
Guennadi Liakhovetski
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 13 lines · Guennadi Liakhovetski
Quoted 6 lines · Stefan Herbrechtsmeier
Quoted 4 lines
I used a modified
capture_example.c(with the modification you point me some emails ago). If I change the
req.count to 1 and remove the restriction I get the select timeout.I forget to say, that I use
V4L2_PIX_FMT_YUYVAha, this, certainly, can make a difference! Unfortunately, I don't have a possibility to test with YUYV, so, someone with the hardware has to investigate this further (CC-ing the original YUYV-support in PXA270 author), or I need access to such hardware.
Thanks for your help Guennadi. I have look a little bit into the pxa_camera driver and have a
question: The function pxa_camera_dma_irq reset the passed FIFO channel if an overrun occur. But it should clear the others FIFOs too? Or is this wrong?
Regards
Stefan
Signature · 19 lines
Dipl.-Ing. Stefan Herbrechtsmeier Heinz Nixdorf Institute University of Paderborn System and Circuit Technology Fürstenallee 11 D-33102 Paderborn (Germany) office : F0.415 phone : + 49 5251 - 60 6342 fax : + 49 5251 - 60 6351 mailto : [email protected] www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 5 lines · Stefan Herbrechtsmeier
question: The function
pxa_camera_dma_irqreset the passed FIFO channel if an overrun occur.
But it should clear the others FIFOs too? Or is this wrong?From the datasheet:
"Reset input FIFO (RESETF)-- When set, the FIFO pointers of all three FIFOs are reset. This bit is automatically cleared after resetting the pointers."
Thanks
Guennadi
---
Guennadi Liakhovetski
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 13 lines · Guennadi Liakhovetski
Quoted 4 lines · Stefan Herbrechtsmeier
question: The function
pxa_camera_dma_irqreset the passed FIFO channel if an overrun occur.
But it should clear the others FIFOs too? Or is this wrong?From the datasheet:
"Reset input FIFO (RESETF)-- When set, the FIFO pointers of all three FIFOs are reset. This bit is automatically cleared after resetting the pointers."
But only the current DMA channel was stopped.
The V4L2_PIX_FMT_YUYV mode uses only on DMA channel. So there should be no difference to RGB / raw mode.
I will going on with porting my system to 2.6.25 and then test again.
Thanks
Stefan
Signature · 19 lines
Dipl.-Ing. Stefan Herbrechtsmeier Heinz Nixdorf Institute University of Paderborn System and Circuit Technology Fürstenallee 11 D-33102 Paderborn (Germany) office : F0.415 phone : + 49 5251 - 60 6342 fax : + 49 5251 - 60 6351 mailto : [email protected] www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list