Age | Commit message (Collapse) | Author |
|
From: Trent Piepho <xyzzy@speakeasy.org>
The #ifndef true test didn't work, as true is an enum, not a macro.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Oliver Endriss <o.endriss@gmx.de>
Fix compilation error introduced by changeset 6d08d71cbcfb.
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Add an inline versin of vm_insert_page() that uses remap_pfn_range() to
compat.h.
Remove compat code from em28xx-video.c, sn9c102_core.c, and
usbvision-video.c since compat.h is now doing the same thing.
USB_ZC0301, USB_ET61X251, and USB_ZR364XX will now compile under 2.6.12.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
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>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Add -include linux/version.h to the cflags. Now code can have backward
compatibility test without including compat.h first.
Linux headers included from compat.h are removed, so that code will get
the same headers when compiling in v4l-dvb as it does in the kernel.
Many drivers have compat.h moved to the end of their include list, as
this lets compat.h do things it can't do at the beginning. Such as test
of something is defined to include compat code, or to put a wrapper
around a function without changing the function's name.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Compat.h used to have an argument, now it doesn't. There was also some code:
if (current->flags & PF_FREEZE) { refrigerator(PF_FREEZE); }
which is the same as try_to_freeze(), and so can be replaced by it.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
The kernel's config settings from autoconf.h are overridden by the file
config-compat.h, which is included from compat.h. Code compiled before
compat.h is included will see the kernel's settings, while code compiled
after will see v4l-dvb's version of the settings. This has caused hard
to track down bugs on more than one occasion.
Always including compat.h first will not work, as some of the
compatibility code requires that certain kernel headers be included first
in order to work correctly.
This patch makes config-compat.h be included second (after the kernel's
autoconf.h) for every file by using a gcc "-include" command line option,
the same way the kernel autoconf.h file is included. This should
eliminate the problem of config-compat.h not being included in the right
spot.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
input_register_device() was changed to return an error code instead of
being void in 2.6.15. Handle it with a macro wrapper in config.h. For
this to work, linux/input.h must be included before config.h. This
required some trivial header re-ordering in budget-ci.c and ttusb_dec.c.
In kernel 2.6.15-rc1 a helper function called setup_timer() was added to
linux/timer.h. Add to compat.h, but require that linux/timer.h be
included first to give the definition of struct timer_list.
A new 4GB DMA zone, __GFP_DMA32, was added in 2.6.15-rc2. Alias it to
__GFP_DMA on older kernels.
Handle another 2.6.15 "input_dev->dev to input_dev->cdev.dev" change for
some recently added code in cinergyT2.c.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
The recent updates on some webcams replaced vmalloc_32 by vmallo_32_user.
However, it seems that this doesn't exist before kernel 2.6.19
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
PCIAGP_FAIL is a new pci quirk added in 2.6.19. The code in compat.h was
checking if PCIAGP_FAIL was already defined to determine whether or not
to include the backward compatibility code. This didn't work in a number
of cases when compat.h was included before linux/pci.h, as PCIAGP_FAIL
would get defined by compat.h and then re-defined by linux/pci.h.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
true/false were incorporated at a common code on pre-kernel 2.6.19.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Put static inline usb_to_input_id() inside compat.h for pre 2.6.13. This
needs linux/usb.h to be included first! Drivers that need
linux/usb_input.h compatibility must include linux/usb.h before they
include compat.h. There is just no way around it. linux/usb.h cannot be
unconditionally included in compat.h because that will break other,
non-usb, drivers.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Add bit of compat code for class_device_create_file() to compat.h for
pre-2.6.0 kernels. This allows an #ifdef to be removed from
bttv-driver.c, and helps other code which never had one. Changed the
code to turn on for pre-2.6.0, rather than pre-2.5.0, as the class device
stuff was added in 2.5.69.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Add a static inline version of schedule_timeout_interruptible(), it's
only two lines, to compat.h. This will make bt866 and ks0127 compile
with pre 2.6.14 kernels.
Remove #if/#else code from msp3400, saa7134-tvaudio, and vivi that used
to handle this.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
From the whitespace script
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
When building in-kernel, compile-time build options are passed into the
compiler using '#include <linux/config.h>' . This file #include's
<linux/autoconf.h> , which is created on the fly by the kbuild system.
However, this does not work correctly when building from the mercurial
repository, since the kernel is built indepentently of v4l/.myconfig
This creates a "config-compat.h", which will be #include'd by compat.h
and will emulate <linux/config.h> for the local build.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Fixed also a small mistake at including mutex.h
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Ingo Molnar <mingo@elte.hu>
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
build-tested.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
kernel-sync
|
|
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
kernel-sync
- Makes V4L compile with kernel 2.4
- em28xx doesn't compile with 2.4 kernels. Additional work is
necessary to make it compile.
Thanks-to: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
- Revert my changes from this morning. I was wrong :-(
Thanks to Laurent Pinchart <laurent.pinchart@skynet.be>
for pointing out my error.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Removed linux version check, #include <linux/input.h>
...Should now work for everybody.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
From: Ricardo Cerqueira <v4l@cerqueira.org>
kernel-sync
Ported changes by Dmitry Torokhov <dtor_core@ameritech.net> and added
backwards compatibility checks for kernels < 2.6.15
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
- Enable cx24123 dvb frontend module
in merged v4l/dvb cvs trees and kernel >= 2.6.16
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
From:
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Tyler Trafford <tatrafford@comcast.net>
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
* ../v4l/compat.h:
Fix compilation with older kernels.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
(default_set_tv_freq):
- ISO C90 forbids mixed declarations and code
* ../v4l/compat.h:
- Do not build support for nxt200x unless at least one of the
following is true:
a) KERNEL_VERSION >= 2.6.15
b) v4l / dvb merge-trees build environment.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
- Fix kcalloc error with kernel < 2.6.9.
Signed-off-by: Nickolay V. Shmyrev <<nshmyrev@yandex.ru>>
|
|
Fix build of em driver with 2.6.8 kernel.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
|
|
- moved Pinnacle IR table (ir_codes_em2820) to em2820-input.c
- IR struct renamed and moved to a header file.
- New file to handle em2820-specific IR.
- Some cleanups.
- attach now detects I2C IR and calls em2820-specific IR code
- IR compat code moved to compat.h
- New header with struct IR_i2c there, to allow it to be
used by board-specific input handlers.
Some improvements at em28xx board detection:
- Board detection message improved to show interface and class.
- Now it doesn't touch audio interfaces.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
- Fix compilation with 2.6.8.
Signed-off-by: Nickolay V. Shmyrev <<nshmyrev@yandex.ru>>
|
|
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
|
|
- Lots of small changes to allow compiling with kernel 2.4.
Compilation result not tested yet.
- After this patch, .version should be removed, since its
syntax has changed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
<cavedon@sssup.it>,Mauro Carvalho Chehab <mchehab@brturbo.com.br>
- Added support for Empia EM2820/2840 USB video capture devices.
Current support is working for:
Terratec Cinergy 250 USB
Pinnacle PCTV USB 2
Hauppauge WinTV USB 2
Support is not working for:
Terratec Cinergy 250 USB (em2800 based)
MSI VOX USB 2.0 (saa7114 decoder based)
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Ludovico Cavedon <cavedon@sssup.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
|
|
- Allow tda1004x & lgdt330x support in tree-merge for all kernels.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
* cx88-dvb.c:
* saa7134-dvb.c:
* scripts/merge-trees.sh:
* scripts/unmerge-trees.sh:
- move some #if kernel version into compat.h
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
- fix build for 2.6.14
* compat.h:
* ir-kbd-i2c.c: (ir_probe):
* saa7134-i2c.c:
* tvaudio.c: (chip_probe):
- removed some #if kernel version > 2.6.13 ... using compat.h instead.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
|
|
- Use KEY_MEDIA instead of KEY_VIDEOMODESWITCH since
it fix build with older kernels.
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: James Schettine <james@NOSPAM.MyVnc.com>
|
|
|