summaryrefslogtreecommitdiff
path: root/v4l
AgeCommit message (Collapse)Author
2006-11-19compat: Use kernel version to control PCIAGP_FAIL compat codeTrent Piepho
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>
2006-11-04ov7670 can be compiled with older kernel versionsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> ov7670 compiled fine with 2.6.16. However, cafe_ccic compilation with 2.6.16 produces: CC [M] /home/v4l/master/v4l/cafe_ccic.o /home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_setup_siobuf': /home/v4l/master/v4l/cafe_ccic.c:1162: warning: implicit declaration of function 'vmalloc_user' /home/v4l/master/v4l/cafe_ccic.c:1162: warning: assignment makes pointer from integer without a cast /home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_v4l_mmap': /home/v4l/master/v4l/cafe_ccic.c:1429: warning: implicit declaration of function 'remap_vmalloc_range' /home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_dfs_open': /home/v4l/master/v4l/cafe_ccic.c:1972: error: 'struct inode' has no member named 'i_private' /home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_pci_probe': /home/v4l/master/v4l/cafe_ccic.c:2119: warning: passing argument 2 of 'request_irq' from incompatible pointer type Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-04Make ov7670 and cafe_ccic compile at v4l-dvb treeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Those driver are developed using some stuff from newer kernels. Maybe they may compile with kernels lower than 2.6.19, but upper than 2.6.16. Anyway,since the targeted OLPC hardware is not available yet, IMO, it doesn't make much sense to work on backporting the drivers to kernels lower than kernel 2.6.19. CC: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-10-18Add support for DiBcom DiB7000PCPatrick Boettcher
From: Patrick Boettcher <pboettcher@dibcom.fr> This patch contains support for the DiB7000PC-driver. Signed-off-by: Francois KANOUNNIKOFF <fkanounnikoff@dibcom.fr> Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
2006-10-17use www.ivtvdriver.org for v4l-dvb + ivtv virtual mergeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> ivtvdriver.org is no longer working... but www.ivtvdriver.org still works. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-10-04Fix bug in check_config_defines.pl scriptTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The code to get the file list from hg manifest wasn't escaped right and the error value check was the opposite of what it should have been. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-10-04Add compat for true/falseMauro Carvalho Chehab
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>
2006-10-02Check for Kernel OSS includes for aci.cTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> aci.c needs some OSS include files from the kernel to compile. Typical kernel-headers packages don't have these include files, and so aci.c fails to compile. Have make_kconfig.pl check for the headers, and disable aci if they aren't there. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-17use ivtv/driver/Kbuild for build rules in v4l-dvb + ivtv trunk virtual mergeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Use ivtv's Kbuild file to make the build rules for the v4l-dvb + ivtv trunk virtual merge dynamic. This eliminats the static rules from the v4l-dvb tree and will prevent future build problems. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-14Currently, PCIAGP_FAIL only exists on 2.6.18-rc6-mm1Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-11Added some missing drivers to versions.txtMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-03Minor change to make_kconfig.pl Kconfig parsing codeTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Skip the parsing code that only make sense inside a Kconfig menu block when not in a menu block. Mostly to get rid of Perl warnings. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-03Keep rules in v4l/Makefile from confusing kernelTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> v4l/Makefile not only calls the kernel Makefile to do the module building, but it is in turn included by the kernel Makefile. This means _all_ the rules in v4l/Makefile get used by the kernel Makefile when it tries to build the modules. Some of these rules, for files like .config, Kconfig, .version, confuse the kernel building process. The kernel make thinks, "I need to remake _my_ Kconfig file because my .version file is out of date." But that rule was never supposed to be used by the kernel, it is just for v4l! This is fixed by putting $(obj) in front of all these files' rules. That way the kernel will never think the rules refer to its files and try to use them. Really, this whole business of having the kernel Makefile include v4l/Makefile is rather complex. It might be a good idea to create v4l/Kbuild, which the kernel will use in preference to v4l/Makefile, so that we don't have to worry about v4l/Makefile getting used in two different contexts. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-01Stop sourcing Kconfig.sound, it would show up twiceTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Since Kconfig.sound is processed by make_kconfig.pl like all the other Kconfig files, it was getting put into v4l/Kconfig twice. Once from a source directive v4l/Kconfig and again when it was processed by the script. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-01Fix compilation of modules that need OSS headersTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Create a symlink, v4l/oss, that points back to the v4l directory. This way code that includes "oss/something.h" will find the header files it wants (which has been linked to from v4l). The link will be created only if it doesn't exist and deleted by distclean. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-01Fix bug in build system dependency evaluatorTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> A subtle bug in the code that changed Kconfig depends expressions into Perl expressions would keep changes to Kconfig variables from propagating. The subroutine was supposed to change a _copy_ of the expression from Kconfig to Perl syntax, but was changing the expression itself. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Handle updating .config and Kconfig betterTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Both .config and Kconfig are created at the same time by the same program, make_kconfig.pl. make does not understand the concept of a program which creates two targets and cannot handle this properly. Everything works with this patch, but in some cases make -j will run make_kconfig.pl twice at the same time. This works, one script will just overwrite the output of the other, but it looks bad. Without make -j, everything works as it should and make_kconfig.pl isn't run more than it needs to be. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31New dependency tracking system for make_kconfig.plTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Restructure make_kconfig.pl and clean the code up some more. The dependency tracking code is rewritten. This version converts the "depends on" and "select X if" lines into Perl expressions, which are then evaluated. This way all complex expressions are handled correctly. Dependencies are tracked recursively until all are found. "select" lines with an "if" clause are handled correctly; the selected variable is only required when the "if" clause is true. Another improvement is that hex/string/int variables that don't have their dependencies met will not appear in the .config file. They aren't supposed to. make_kconfig will fail with an error message if MODULES is turned off in the Kernel's config, as building out of tree makes no sense in that situation. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Only include Makefiles onceTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The script which combines the individual Makefils into Makefile.media would include a Makefile each time it was referenced. This caused some Makefiles to get included multiple times. Also print comments in Makefile.media with the names of the Makefiles that are being included. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Remove links dependency from targets that don't need itTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> links is a phony target, so it is always remade. The config targets don't need the source links, so there is no need for them to have links as a depenedency. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Re-write make_makefile.pl, re-work v4l/MakefileTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The make_makefile.pl script is re-written. The old one was nasty. This one will correctly handle Makefile lines that are continued with a backslash. It will also generate a dependency list of the Makefile used to create Makefile.media. This way if any change, Makefile.media will be automatically re-made by make. The whole business where make_makefile.pl would call make_kconfig.pl is removed. The underlying logic of the main Makefile is completely changed. Make has a feature where it will make sure any included files are up-to-date, and then restart itself if any were updated. We now take advantage of this feature. Detect when make is building only targets which do not need include files like .myconfig or Makefile.media, and don't include them in those cases. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Create dependencies for Kconfig fileTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add the ability to the make_kconfig.pl script to create a file named ".kconfig.dep" which can be included in a Makefile and defines the dependencies of the v4l/Kconfig file. That is, all the individual Kconfig files that were used to make it. Added a rule to v4l/Makefile to remake Kconfig when needed, and include .kconfig.deps to get Kconfig's dependencies. Adjust the config targets so that they depend on Kconfig, rather than including the commands to create Kconfig in the config targets' scripts. The config targets no longer depend on .version, as they don't need it themselves. Rather, it's Kconfig that needs .version, so it's made one of Kconfig's dependencies. Add Kconfig as a dependency to .myconfig, it should be there since the make_myconfig.pl script uses Kconfig. Now if you change any of the Kconfig files, the v4l/Kconfig file will automatically get remade. This will in turn cause .myconfig to be re-made, and any new options will appear in .myconfig (turned off). Ideally this should trigger some kind of oldconfig system to update .config. Fix the .version rule so that instead of re-creating .version every time, it is only created when it didn't already exist. Since Kconfig depends on .version, it was getting re-created every time too. If .version existed, it would just get re-created to the same thing anyway. Stop echoing the echo srcdir command itself and don't echo anything if SRCDIR is blank. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31New code to read kernel config in make_kconfig.plTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> New code to read the Kernel's (or v4l-dvb's) '.config' file. This replaces the code that used to read the config.h/autoconf.h file. In 2.6.18 the autoconf.h file no longer mentions options set to 'n' at all, while .config has a comment line for each disabled option. Reading .config is easier and gives us a list of the disabled options. Restructure the code for reading '.version' too. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31With aci.h at the tree, the test is not requiredMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Still keeping the warning message for kernel-readers only. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-31Allow compilation of the audio driversMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Now, make will compile also the audio drivers at the tree. By default, they will not be installed. A new option were added to install those files: make sound-install Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-31Added audio-related stuff used on a few multimedia boardsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Those files are not part of V4L stuff. However, they are or dependent of V4L apis or used on some video boards. After this patch, it will be possible to compile and test they against changes at V4L API or drivers. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-31Fix a bug at the building systemMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> "select" were overriding "depends on". A workaround were previously been applied. This patch removes the workaround and fixes the issue. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-30Add new script, analyze_build.pl, that analyzes the Makefile treeTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> This script will read a Linux Kernel style Makefile tree and produce an overview of the build process. It produces three lists which show to associations of: 1. Kconfig variables to kernel module(s) built 2. Kernel modules to source file(s) that make them 3. Kconfig variables to source file(s) built It can also check the Makefiles for various errors and warnings. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-27Add compat code for usb_to_input_id() which appeared in 2.6.13Trent Piepho
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>
2006-08-24Add new script, check_config_defines.plTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> This script will check source files against the v4l-dvb and kernel Kconfig files, to make sure that all CONFIG_XXX defines mentioned in the source files have corresponding config options in the Kconfig files. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-23merge: http://linuxtv.org/hg/~pb/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-23"select" Kconfig were wrongly being processedMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-23Make easier to debug: just uncommenting my $debug=1Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-15merge from mainPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> merge from main Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-08-08remove embedded videodev.h patch from makelinks.shMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This fixes the patch failure when using the "make kernel-links" build method. We no longer have to patch videodev.h to include compat.h for the in-kernel build using the v4l-dvb development repository, as the individual card drivers that need compat.h are already including it. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-08-06Initial commit for the DiB7000M-demodPatrick Boettcher
From: Patrick Boettcher <pboettcher@dibcom.fr> Initial commit for the driver for the DiB7000M COFDM demodulator. Signed-off-by: Francois KANOUNNIKOFF <fkanounnikoff@dibcom.fr> Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr>
2006-08-03merge from mainPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> merge from main Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-08-02Look for module utilities in /sbin directoriesTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Normally programs like modinfo are in /sbin, and non-root users often don't have this in their path. Make the rmmod.pl script look in some extra directories like /sbin, /usr/sbin, etc. if it can't find the utilities in the path. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-02merge: from mchehabMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-02Removed obsolet manual add for MODULESMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> The building system now auto-generates this dependency, as tristate, while those options were manually generating it as boolean, generating a warning. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-02merge from mainPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> merge from main Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-08-02Added cross-dependecy check at the end of compilation cycleMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-01Quick fix to make building work againTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Instead of reading linux/config.h, read linux/autoconf.h to get the kernel's configuration. The former file has been obsoleted. In Kconfig 'select' lines, ignore the 'if' clause if one exists. This is not a permanent solution to correctly parse and evaluate Kconfig files. That is much harder, this will get building working again now. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-29merge: from mainPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> merge: from main Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-07-28version.txt updateAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Remove DVB_FE_CUSTOMISE - unnecessary Add comment about DVB_CORE_ATTACH requiring >= 2.6.17 Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-28Add Kconfig infrastructure for dvb_attachAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Allow it to be en/disabled Disable it in < 2.6.17 due to symbol_xxx() bug Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-25bttv: clean up some pre-2.6.0 class device compat stuffTrent Piepho
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>
2006-07-19[PATCH] irq-flags: media: Use the new IRQF_ constantsMauro Carvalho Chehab
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>
2006-07-15Change to kernel version checking code in make_kconfig.plTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The code to compare kernel versions was wrong, it would think 2.7.1 was older than 2.6.10 because 1 < 10. Fixed. Changed code to not require all options to be defined in versions.txt. It was necessary before only because of the way make_myconfig.pl worked, but that script has changed. Driver sub-options can be omitted from versions.txt, unless they somehow need a newer kernel than the driver itself. In fact, most of the drivers themselves could be removed from versions.txt, and only put in if there is an actual reason. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-15Adjust versions.txt to be more accurateTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Much moving about of drivers from one version to another. Most drivers are moved down to 2.6.12. Some drivers are moved up to require newer kernels. Comments are added for specific know reasons why some drivers fall under a certain kernel version. Various int/hex/string options are removed from versions.txt, they don't need to be there anymore. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>