Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: AnalogTV + bttv09



Hi!

> I've some problems with mp1e, which I need use the analogtv plugins.
> I've no problems for about 10 minutes with the analogTV plugin. After
> that time I get just one new picture per second. But the system is not
> busy. Mp1e uses about 20-30%.
>
> I'm using VDR 1.2.5, Kernel 2.4.22 with the v4l2 patch and the bttv07
> driver. When I try to use the bttv09 driver I got the following error
> message:
>
> mp1e:v4l25.c:429: Failed to request capture buffers (22, Invalid
> argument)

I asked Gerd Knorr for help and he just solved this problem, 
use the attached patch.

Tobias
diff -ur rte.orig/mp1e/devices/v4l25.c rte/mp1e/devices/v4l25.c
--- rte.orig/mp1e/devices/v4l25.c	Sun Mar  9 01:33:04 2003
+++ rte/mp1e/devices/v4l25.c	Thu Oct 16 16:05:55 2003
@@ -142,6 +142,7 @@
 
 	vbuf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
 	vbuf.index = b - buffers;
+	vbuf.memory = V4L2_MEMORY_MMAP;
 
 	ASSERT("enqueue capture buffer",
 		IOCTL(fd, VIDIOC_QBUF, &vbuf) == 0);
@@ -415,6 +416,7 @@
 
 	vrbuf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
 	vrbuf.count = MAX(cap_buffers, min_cap_buffers);
+	vrbuf.memory = V4L2_MEMORY_MMAP;
 
 	ASSERT("request capture buffers",
 		IOCTL(fd, VIDIOC_REQBUFS, &vrbuf) == 0);

Home | Main Index | Thread Index