linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* omap3-isp-live does not allocate big enough buffers?
@ 2012-10-08  7:46 Florian Neuhaus
  2012-10-08 14:06 ` Laurent Pinchart
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Neuhaus @ 2012-10-08  7:46 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linux-media@vger.kernel.org

Hi Laurent

I am working on a demo-application for displaying a videostream on a 
beagleboard. Now I have seen that you have done something similar, 
but if I run your "live" application out of the omap3-isp-live repo,
then I get the following error:

root@beagleboard:~# modprobe omap_vout video1_numbuffers=3 
video2_numbuffers=3 video1_bufsize=771200 video2_bufsize=771200 
vid1_static_vrfb_alloc=n vid2_static_vrfb_alloc=n
root@beagleboard:~# ./live
fb size is 800x480
Device /dev/video6 opened: OMAP3 ISP resizer output (media).
viewfinder configured for 2011 800x482
AEWB: #win 10x7 start 16x74 size 256x256 inc 30x30
trying to allocate 800x480
Device /dev/video7 opened: omap_vout ().
3 buffers requested.
Buffer 0 mapped at address 0xb6d68000.
Buffer 1 mapped at address 0xb6cac000.
Buffer 2 mapped at address 0xb6bf0000.
3 buffers requested.
Buffer 0 too small (771200 bytes required, 770048 bytes available).
error: unable to allocate buffers for viewfinder.
error: unable to set buffers pool

This seems to happen in the v4l2_alloc_buffers function of v4l2.c
when memtype is V4L2_MEMORY_USERPTR. Has it been broken in the
newer kernel versions? Do you have hint where I should start fixing?

I am using the following config:
beagleboard-xm
linux-omap branch, tag v3.5
leopard imaging li-5m03 with mt9p031

Greetings,
Florian


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

end of thread, other threads:[~2012-10-10 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-08  7:46 omap3-isp-live does not allocate big enough buffers? Florian Neuhaus
2012-10-08 14:06 ` Laurent Pinchart
2012-10-10  9:19   ` AW: " Florian Neuhaus
2012-10-10 14:59     ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).