diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-19 19:01:09 -0800 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-19 19:01:09 -0800 |
commit | 13aac084f52613baf79f047bdac0b0decc2b37d2 (patch) | |
tree | b5211790cf77de69d3425d824bc8ef138fe91494 /v4l | |
parent | 613018f65de3818251f3a07868d89893bb3a0068 (diff) | |
download | mediapointer-dvb-s2-13aac084f52613baf79f047bdac0b0decc2b37d2.tar.gz mediapointer-dvb-s2-13aac084f52613baf79f047bdac0b0decc2b37d2.tar.bz2 |
compat: Fix compat stuff for usbvision and zr364xx
From: Trent Piepho <xyzzy@speakeasy.org>
compat.h was missing from usbvideo-i2c.c and zr364xx.c
zr364xx.c needed the struct semaphore -> struct mutex compat check.
Added an old i2c id to compat.h. These could be added to the Hg copy of
linux/i2c-id.h instead? There's just this one so far.
zr364xx needs 2.6.15 because of vm_insert_page(), so add to versions.txt
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 6 | ||||
-rw-r--r-- | v4l/versions.txt | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index bdad519e9..25c11f460 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -74,6 +74,12 @@ # define I2C_M_IGNORE_NAK 0x1000 #endif +/* v4l-dvb uses an out of kernel copy of i2c-id.h, which does not have + some stuff that previous versions of i2c-id.h defined. */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) && defined(LINUX_I2C_ID_H) +# define I2C_ALGO_BIT 0x010000 +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) #define __le32 __u32 #endif diff --git a/v4l/versions.txt b/v4l/versions.txt index e30a74e85..07f8cdc38 100644 --- a/v4l/versions.txt +++ b/v4l/versions.txt @@ -43,6 +43,7 @@ USB_QUICKCAM_MESSENGER [2.6.15] USB_ZC0301 USB_ET61X251 +USB_ZR364XX [2.6.12] VIDEO_VIVI |