Your message dated Fri, 19 Feb 2010 14:25:15 +0100
with message-id <[email protected]>
and subject line Closing bug
has caused the Debian Bug report #502805,
regarding qc-usb-source: fix build failure against Linux 2.6.27
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
502805: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502805
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qc-usb-source
Version: 0.6.6-6
Severity: wishlist
Tags: patch
The module fails to compile against Linux 2.6.27 due to removal of type
field from video_device struct:
<URL:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0ea6bc8d43c9ee3c5384bea184eab020927a5b2c>
Attached a patch which #ifdef's around this problem. Not pretty but confirmed
working.
Thanks, Kel.
---
--- a/qc-driver.c
+++ b/qc-driver.c
@@ -2528,7 +2528,11 @@
if (qcdebug&QC_DEBUGUSER) PDEBUG("VIDIOCGCAP");
memset(&b, 0, sizeof(b));
strcpy(b.name, "Logitech QuickCam USB"); /* Max
31 characters */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+ b.type = VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE;
+#else
b.type = qc->vdev.type;
+#endif
b.channels = 1;
b.audios = 0;
b.maxwidth = qc->sensor_data.maxwidth;
@@ -3007,7 +3011,9 @@
static struct video_device qc_v4l_template = {
name: "QuickCam USB",
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
type: VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE,
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
hardware: VID_HARDWARE_QCAM_USB,
#endif
---
--- End Message ---
--- Begin Message ---
Hi Kel,
I had completely forgotten about your patch, I'm sorry. Funnily
enough, I had to track down the changes and produce a similar-looking
patch myself because of my bad memory :)
Now the driver compiles in all Debian kernels, so I'm closing this bug.
Thanks a lot
--
MartÃn Ferrari
--- End Message ---