Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 142473 Details for
Bug 208568
media-video/qc-usb-0.6.6 ebuild with patch for kernels >=2.6.24
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/qc-usb-0.6.6-kernel-2.6.24.patch
qc-usb-0.6.6-kernel-2.6.24.patch (text/plain), 1.51 KB, created by
Laurento Frittella (mrfree)
on 2008-02-02 12:16:40 UTC
(
hide
)
Description:
files/qc-usb-0.6.6-kernel-2.6.24.patch
Filename:
MIME Type:
Creator:
Laurento Frittella (mrfree)
Created:
2008-02-02 12:16:40 UTC
Size:
1.51 KB
patch
obsolete
>by Stefan Lippers-Hollmann <s.l-h@gmx.de> >fixes kernel 2.6.24 compatibility. > >diff -urNad qc-usb-0.6.6~/qc-driver.c qc-usb-0.6.6/qc-driver.c >--- qc-usb-0.6.6~/qc-driver.c 2006-10-24 04:06:19.000000000 +0200 >+++ qc-usb-0.6.6/qc-driver.c 2007-12-09 17:20:30.000000000 +0100 >@@ -821,7 +821,9 @@ > if (!cr) goto fail2; > urb->transfer_buffer = kmalloc(qc_i2c_maxbufsize*sizeof(u8), GFP_KERNEL); /* Allocate maximum ever needed */ > if (!urb->transfer_buffer) goto fail3; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) > spin_lock_init(&urb->lock); >+#endif > urb->complete = qc_i2c_handler; > urb->context = qc; > #if (LINUX_VERSION_CODE<KERNEL_VERSION(2,6,9) && !defined(CONFIG_SUSE_KERNEL)) || LINUX_VERSION_CODE<KERNEL_VERSION(2,6,8) >@@ -3006,7 +3008,9 @@ > static struct video_device qc_v4l_template = { > name: "QuickCam USB", > type: VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE, >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) > hardware: VID_HARDWARE_QCAM_USB, >+#endif > minor: -1, > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) > release: qc_v4l_release, >diff -urNad qc-usb-0.6.6~/quickcam.h qc-usb-0.6.6/quickcam.h >--- qc-usb-0.6.6~/quickcam.h 2006-11-04 14:38:27.000000000 +0100 >+++ qc-usb-0.6.6/quickcam.h 2007-12-09 17:17:01.000000000 +0100 >@@ -126,7 +126,9 @@ > #define FALSE 0 > #define TRUE (!FALSE) > typedef unsigned char Bool; >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) > #define BIT(x) (1<<(x)) >+#endif > #define SIZE(a) (sizeof(a)/sizeof((a)[0])) > #define MAX(a,b) ((a)>(b)?(a):(b)) > #define MIN(a,b) ((a)<(b)?(a):(b))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208568
:
142471
| 142473