1 --- hal-0.5.14/hald/linux/probing/probe-video4linux.c.orig 2009-08-24 14:42:30.000000000 +0200
2 +++ hal-0.5.14/hald/linux/probing/probe-video4linux.c 2011-04-20 18:57:54.383104888 +0200
7 -#include <linux/videodev.h>
8 #include <linux/videodev2.h>
15 - struct video_capability v1cap;
16 struct v4l2_capability v2cap;
17 LibHalContext *ctx = NULL;
18 LibHalChangeSet *cset;
22 HAL_DEBUG (("ioctl VIDIOC_QUERYCAP failed"));
24 - if (ioctl (fd, VIDIOCGCAP, &v1cap) == 0) {
25 - libhal_changeset_set_property_string (cset,
26 - "video4linux.version", "1");
28 - libhal_changeset_set_property_string (cset,
29 - "info.product", v1cap.name);
31 - if ((v1cap.type & VID_TYPE_CAPTURE) > 0) {
32 - LIBHAL_FREE_DBUS_ERROR (&error);
33 - libhal_device_add_capability (ctx, udi, "video4linux.video_capture", &error);
34 - } if ((v1cap.type & VID_TYPE_OVERLAY) > 0) {
35 - LIBHAL_FREE_DBUS_ERROR (&error);
36 - libhal_device_add_capability (ctx, udi, "video4linux.video_overlay", &error);
37 - } if (v1cap.audios > 0) {
38 - LIBHAL_FREE_DBUS_ERROR (&error);
39 - libhal_device_add_capability (ctx, udi, "video4linux.audio", &error);
40 - } if ((v1cap.type & VID_TYPE_TUNER) > 0) {
41 - LIBHAL_FREE_DBUS_ERROR (&error);
42 - libhal_device_add_capability (ctx, udi, "video4linux.tuner", &error);
45 - HAL_DEBUG (("ioctl VIDIOCGCAP failed"));
49 LIBHAL_FREE_DBUS_ERROR (&error);