* kernel 2.6.38 has no linux/videodev.h
@ 2011-03-15 10:31 xinglp
2011-03-15 11:03 ` Martin Pitt
0 siblings, 1 reply; 2+ messages in thread
From: xinglp @ 2011-03-15 10:31 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 36 bytes --]
--
code farmer from lanxiangjixiao
[-- Attachment #2: udev-166-disable-v4l.patch --]
[-- Type: application/octet-stream, Size: 1004 bytes --]
diff -Naurz udev-166.orig/extras/v4l_id/v4l_id.c udev-166/extras/v4l_id/v4l_id.c
--- udev-166.orig/extras/v4l_id/v4l_id.c
+++ udev-166/extras/v4l_id/v4l_id.c
@@ -28,7 +28,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
-#include <linux/videodev.h>
+//#include <linux/videodev.h>
#include <linux/videodev2.h>
int main (int argc, char *argv[])
@@ -39,7 +39,7 @@
};
int fd;
char *device;
- struct video_capability v1cap;
+// struct video_capability v1cap;
struct v4l2_capability v2cap;
while (1) {
@@ -82,7 +82,7 @@
if ((v2cap.capabilities & V4L2_CAP_RADIO) > 0)
printf("radio:");
printf("\n");
- } else if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) {
+ }/* else if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) {
printf("ID_V4L_VERSION=1\n");
printf("ID_V4L_PRODUCT=%s\n", v1cap.name);
printf("ID_V4L_CAPABILITIES=:");
@@ -95,7 +95,7 @@
if ((v1cap.type & VID_TYPE_TUNER) > 0)
printf("tuner:");
printf("\n");
- }
+ }*/
close (fd);
return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel 2.6.38 has no linux/videodev.h
2011-03-15 10:31 kernel 2.6.38 has no linux/videodev.h xinglp
@ 2011-03-15 11:03 ` Martin Pitt
0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2011-03-15 11:03 UTC (permalink / raw)
To: linux-hotplug
Hello xinglp,
This was already fixed a while ago:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hJce8a43ac2cbbd4d6f5c29fc461c3caa8f8545b
(and some followup cleanups)
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-15 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 10:31 kernel 2.6.38 has no linux/videodev.h xinglp
2011-03-15 11:03 ` Martin Pitt
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).