OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../udev/v4l-remove.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Submitted By: Matt Burgess <matthew_at_linuxfromscratch_dot_org>
  17. Date: 2011-03-26
  18. Initial Package Version: 166
  19. Upstream Status: From upstream
  20. Origin: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=4ace8a43ac2cbbd4d6f5c29fc461c3caa8f8545b
  21. Description: Fixes a compilation error caused by the removal of the
  22. Video for Linux 1 API from Linux kernels from 2.6.38
  23. onwards.
  24. diff -Naur udev-166.orig/extras/v4l_id/v4l_id.c udev-166/extras/v4l_id/v4l_id.c
  25. --- udev-166.orig/extras/v4l_id/v4l_id.c 2009-12-03 12:45:03.000000000 +0000
  26. +++ udev-166/extras/v4l_id/v4l_id.c 2011-03-25 20:26:33.000000000 +0000
  27. @@ -28,7 +28,6 @@
  28. #include <sys/types.h>
  29. #include <sys/time.h>
  30. #include <sys/ioctl.h>
  31. -#include <linux/videodev.h>
  32. #include <linux/videodev2.h>
  33. int main (int argc, char *argv[])
  34. @@ -39,7 +38,6 @@
  35. };
  36. int fd;
  37. char *device;
  38. - struct video_capability v1cap;
  39. struct v4l2_capability v2cap;
  40. while (1) {
  41. @@ -82,19 +80,6 @@
  42. if ((v2cap.capabilities & V4L2_CAP_RADIO) > 0)
  43. printf("radio:");
  44. printf("\n");
  45. - } else if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) {
  46. - printf("ID_V4L_VERSION=1\n");
  47. - printf("ID_V4L_PRODUCT=%s\n", v1cap.name);
  48. - printf("ID_V4L_CAPABILITIES=:");
  49. - if ((v1cap.type & VID_TYPE_CAPTURE) > 0)
  50. - printf("capture:");
  51. - if ((v1cap.type & VID_TYPE_OVERLAY) > 0)
  52. - printf("video_overlay:");
  53. - if (v1cap.audios > 0)
  54. - printf("audio:");
  55. - if ((v1cap.type & VID_TYPE_TUNER) > 0)
  56. - printf("tuner:");
  57. - printf("\n");
  58. }
  59. close (fd);