add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / multimedia / qc-usb / patches / 003-linux_2_6_27.patch
1 ---
2 --- a/qc-driver.c
3 +++ b/qc-driver.c
4 @@ -2528,7 +2528,11 @@ static int qc_v4l_ioctl(struct video_dev
5                         if (qcdebug&QC_DEBUGUSER) PDEBUG("VIDIOCGCAP");
6                         memset(&b, 0, sizeof(b));
7                         strcpy(b.name, "Logitech QuickCam USB");        /* Max 31 characters */
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
9 +                       b.type      = VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE;
10 +#else
11                         b.type      = qc->vdev.type;
12 +#endif
13                         b.channels  = 1;
14                         b.audios    = 0;
15                         b.maxwidth  = qc->sensor_data.maxwidth;
16 @@ -3007,7 +3011,9 @@ static struct file_operations qc_v4l_fop
17  
18  static struct video_device qc_v4l_template = {
19         name:           "QuickCam USB",
20 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
21         type:           VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE,
22 +#endif
23  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
24         hardware:       VID_HARDWARE_QCAM_USB,
25  #endif