Age | Commit message (Collapse) | Author |
|
From: Hans Verkuil <hverkuil@xs4all.nl>
mmdebug.h (included by mm.h) includes autoconf.h in turn. This will
overwrite the local v4l config with the kernel's config. If this header
is present, then include it in the generated config-compat.h before
we set our local v4l config. This way it won't be included again later.
mmdebug.h appeared in 2.6.28.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
This patch fixes build of bttv, cx88 and saa7134 on vanilla kernels
older than 2.6.22.
VIDEOBUF_DMA_SG has a dependency on CONFIG_HAS_DMA, which was
apparently introduced in 2.6.22 and didn't exist in 2.6.21.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
In order to make easier for debug, preserve debug info inside the /v4l
dir. Only the /lib/modules/`uname -r`/drivers/<foo> will have their
symbols stripped.
This allows using gcc to determine where a code broke, within the asm
code. This may also help in the future for its usage with systemtaps.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Nicola Soranzo <nsoranzo@tiscali.it>
The files v4l/Module.markers and v4l/modules.order , created by make, are not
removed by make clean.
Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Trent Piepho <xyzzy@speakeasy.org>
Changeset 9220:ae5f57c85068 from Tobias Lorenz <tobias.lorenz@gmx.net>,
broke the pull request script. Given the description of the changeset in
its entirety is "merges from main", and that the other (totally unrelated)
change introduced has already been reverted, I can only conclude that the
changeset was a mistake from someone new to Hg.
Priority: normal
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
CC: Tobias Lorenz <tobias.lorenz@gmx.net>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Author: Tejun Heo <htejun@gmail.com>
poll: allow f_op->poll to sleep
f_op->poll is the only vfs operation which is not allowed to sleep. It's
because poll and select implementation used task state to synchronize
against wake ups, which doesn't have to be the case anymore as wait/wake
interface can now use custom wake up functions. The non-sleep restriction
can be a bit tricky because ->poll is not called from an atomic context
and the result of accidentally sleeping in ->poll only shows up as
temporary busy looping when the timing is right or rather wrong.
This patch converts poll/select to use custom wake up function and use
separate triggered variable to synchronize against wake up events. The
only added overhead is an extra function call during wake up and
negligible.
This patch removes the one non-sleep exception from vfs locking rules and
is beneficial to userland filesystem implementations like FUSE, 9p or
peculiar fs like spufs as it's very difficult for those to implement
non-sleeping poll method.
While at it, make the following cosmetic changes to make poll.h and
select.c checkpatch friendly.
* s/type * symbol/type *symbol/ : three places in poll.h
* remove blank line before EXPORT_SYMBOL() : two places in select.c
Oleg: spotted missing barrier in poll_schedule_timeout()
Davide: spotted missing write barrier in pollwake()
kernel-sync:
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
CC: Nicola Soranzo <nsoranzo@tiscali.it>
|
|
From: Nicola Soranzo <nsoranzo@tiscali.it>
Fix compile error about ioremap_nocache with kernel 2.6.27.9 shipped by Fedora
10.
Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
While here, make sure that config-compat.h is rebuild if the script
change.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Author: Wang Chen <wangchen@cn.fujitsu.com>
dvb: Kill directly reference of netdev->priv
Simply replace netdev->priv with netdev_priv().
kernel-sync:
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Instead of relying on the cdev release callback we should rely on the
release callback from the device struct. This requires that we use
get_device/put_device to do proper refcounting. In order to do this
safely v4l2-dev.c now sets up its own file_operations that call
out to the driver's ops.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
The bt832 i2c driver was never used or even compiled and is no longer
maintained. It is now removed completely.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
tvp514x were written using newer i2c improvements committed on kernel
2.6.26. So, we need to not compile it with older kernels.
As pointed by Devin Heitmueller <devin.heitmueller@gmail.com>:
Reported by a user on the #linuxtv chatroom and confirmed by mkrufky:
make -C /home/wil/v4l-dvb/v4l
make[1]: Entering directory `/home/wil/v4l-dvb/v4l'
creating symbolic links...
Kernel build directory is /lib/modules/2.6.24-20-generic/build
make -C /lib/modules/2.6.24-20-generic/build
SUBDIRS=/home/wil/v4l-dvb/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-20-generic'
CC [M] /home/wil/v4l-dvb/v4l/tvp514x.o
/home/wil/v4l-dvb/v4l/tvp514x.c: In function 'ioctl_s_power':
/home/wil/v4l-dvb/v4l/tvp514x.c:1238: error: dereferencing pointer to
incomplete type
/home/wil/v4l-dvb/v4l/tvp514x.c: At top level:
/home/wil/v4l-dvb/v4l/tvp514x.c:1524: error: array type has incomplete
element type
/home/wil/v4l-dvb/v4l/tvp514x.c:1539: warning: initialization from
incompatible pointer type
/home/wil/v4l-dvb/v4l/tvp514x.c:1541: error: unknown field 'id_table'
specified in initializer
make[3]: *** [/home/wil/v4l-dvb/v4l/tvp514x.o] Error 1
make[2]: *** [_module_/home/wil/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-20-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/wil/v4l-dvb/v4l'
make: *** [all] Error 2
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Andy Walls <awalls@radix.net>
For kernels earlier than 2.6.22, we can't cancel work, so we have to flush the
work queue to completion before destroying it.
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
changeset 4ecae6da8244 removed algo_control from i2c drivers. However,
on older kernels, a dummy function to implement algo_control is required,
otherwise, an OOPS is generated.
This patch adds a backport for all i2c drivers that defines an
i2c_algorithm, except for cafe_ccic, since OLPC hardware only works
for kernels newer than 2.6.19.
Some of the backported drivers would need also extra changes to work with
older kernels, as specified on v4l/versions.txt. Yet, I decided to add
the backport for those drivers also, since the lack of algo_control doesn't
generate any compilation error, but it is enough to break the driver. So,
better to all for all boards than to allow compiling a kernel backported that
just generates OOPS.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Instead of using a spinlock, it is better to call the proper pcm stream
locking schema.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Thanks to Andy Walls for warning me
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Devin Heitmueller <devin.heitmueller@gmail.com>
The generated Makefile.media had entries in it's remove list for
Ubuntu that were concatenated together. Add a space when concatenating
together the various lists (so there is a space between the lists)
Thanks for Mike Krufky <mkrufky@linuxtv.org> for pointing this out and
testing the fix.
Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Laurent Pinchart <laurent.pinchart@skynet.be>
The uvcvideo driver makes use of the usb_endpoint_* functions as well as
the list_first_entry and uninitialized_var macros. Add them to v4l/compat.h
and update the driver with kernel version-based conditional compilation
sections.
Priority: normal
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
|
|
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
kernel-sync:
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
dsbr100 uses supports_autosuspend, which is not available in kernels <2.6.19.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
dir for V4L/DVB modules
From: Mauro Carvalho Chehab <mchehab@redhat.com>
One distro stores kernel/drivers/media files on non-standard dirs.
I can't see any logical rule for, once having the kernel original dir
position, determine were the kernel driver were placed on that distro.
For example, they put xc5000.ko driver inside <foo>/media/au0828,
while the expected place would be something like
<foo>/media/common/tuners.
So, this patch do some tricks, when "make rminstall" or "make install"
is called:
1) detect if it is such distro;
2) if so, it will run something like:
find <foo>/media -name <module.ko> -exec rm '{}' \;
where <module.ko> is the official V4L/DVB name for the compiled modules,
and <foo> is the distro non-standard dir.
This should remove the new V4L/DVB .ko modules that are located at the
non-standard dir or inside one of its sub-directories.
NOTICE: If there are other V4L/DVB drivers there that (1) aren't inside
V4L/DVB tree; (2) weren't selected to compile; then those drivers will
likely stop working.
This patch doesn't affect the other distros.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Thierry MERLE <thierry.merle@free.fr>
If a user installs the new CinergyT2 driver, on an kernel on which the
old driver is present, the make install procedure does not remove
the old driver if present.
Just adding an entry in v4l/obsolete.txt does the trick for the user.
Priority: normal
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
All core v4l sources should start with 'v4l2-'
This file was the last one for which this was not the case.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
RHEL 5 already declares bool. Still, there are some warnings that
probably indicate that something else needs to be done for the code to
work with RHEL5.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Author: David Woodhouse <David.Woodhouse@intel.com>
Define and use PCI_DEVICE_ID_MARVELL_88ALP01_CCIC for CAFÉ camera driver
Also, stop looking at the NAND controller (0x4100) and checking the
device class. For a while during development, all three functions on the
chip had the same ID. We made them fix that fairly promptly, and we can
forget about it now.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|