summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-09-07bt87x.c: Backward compatibility changesTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> There was massive ALSA typedef to struct conversion in 2.6.16. This makes the code backward compatible with pre 2.6.16 ALSA. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-07Add module-init-tools version comment.Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> I've just determined that module-init-tools >=3.2 is needed for dvb_attach to work. This adds a comment to Kconfig about it. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-07Add tua6100 config wrapperAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> I had forgotten to add the wrapper round the tua6100_attach function if its disabled in Kconfig Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-06Improved i2c performance on software bitbang algoritmMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Software I2C were using a very conservative value of udelay=16, meaning about 20Kbps. According with Philips I2C datasheet, the i2c should answer well for times at the order of 4.7 us. So, using udelay=5 should work for all devices. After this patch, the speed should be close to 66,67 Kbps, with the current kernel software bitbang, with 30/60 duty cycle. Anyway, added a new parameter (i2c_udelay) that would allow using conservative values, if eventually a hardware doesn't support the datasheet values. Thanks to Jean Delvare <khali@linux-fr.org> for pointing this improvement. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-06merge: http://linuxtv.org/hg/~quincy/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-06Fixes an issue with V4L1 and make headers-installMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> V4L1 support should be disabled when no CONFIG_VIDEO_V4L1_COMPAT is defined, to allow checking for broken V4L2 ports. This is very important during the migration phase for V4L2 API. However, userspace apps should be capable of using both APIs, since they need to test at runtime, via VIDIOCGCAP ioctl, if V4L1 is supported. So, when __KERNEL__ is not defined, those ioctls and corresponding structs should be visible. This patch also removes the obsolete defines HAVE_V4L1 and HAVE_V4L2, that where causing some confusion, and were replaced by CONFIG_VIDEO_V4L1_COMPAT and CONFIG_VIDEO_V4L2. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-05Port budget-av to use the new tua6100 driverAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Port budget-av to use the new tua6100 driver Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-05Add driver for TUA6100Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> This driver was originally in budget-av.c, however I have extracted it into a seperate file to permit reuse. I also reworked the code to make it maintainable. I then examined the KNC1 windows drivers and rewrote the code in order to configure the PLL as they do. This solves a lot of reported tuning problems. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-03Fix broken pvrusb2 buildMike Isely
From: Mike Isely <isely@pobox.com> Fix broken build when 24XXX support is not selected. This is required due to the requirement of removing 24XXX ifdef's from the driver source. Signed-off-by: Mike Isely <isely@pobox.com>
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-03merge: http://linuxtv.org/hg/~quincy/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-03Adds Compro PS39U USB ID to Vicam driverMauro Carvalho Chehab
From: Bas Bloemsaat <bas.bloemsaat@gmail.com> Trivial patch to make Compro PS39U WebCam work with linux by using the vicam driver. The camera is just a vicam with another USB ID, so I added that ID to the driver, and it works now. Signed-off-by: Bas Bloemsaat <bas.bloemsaat@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-03Fix a typo: VRES, instead o HRESMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-02Improve resolution limit enforcements in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> The pvrusb2 driver resolution limits are now programmed the following way, based on empirical measurements of the hardware: Vertical max: 480 for NTSC, 576 otherwise Vertical min: 75 for 24xxx, 17 otherwise Horizontal max: 720 Horizontal min: 720 for 24xxx, 19 otherwise Signed-off-by: Mike Isely <isely@pobox.com>
2006-09-02Fix saa7115 miscalculation that breaks NTSCMike Isely
From: Mike Isely <isely@pobox.com> This repairs a problem introduced by a commit earlier today from Mauro. Hans Verkuil gets the credit for solving this. I'm committing it now because (a) nobody else has and (b) I'm stuck without it. Thanks-to: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mike Isely <isely@pobox.com>
2006-09-03Fix DVB Front-End Signal Strength InconsistencyAndrew de Quincey
From: "Bradley Kite" <bradley.kite@gmail.com> The cx22702 returns an 8 bit unshifted value for signal strength; this is inconsistent with most other frontends Signed-off-by: Bradley Derek Kite <bradley.kite@gmail.com> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-02Remove CONFIG_VIDEO_PVRUSB2_24XXX from pvrusb2 driverMike Isely
From: Mike Isely <isely@pobox.com> Support for 24xxx devices was previously explicitly bracketed with CONFIG_VIDEO_PVRUSB2_24XXX inside the code because we didn't trust the stability of these changes. We trust it now; so there's no reason to leave this out of the driver anymore. Signed-off-by: Mike Isely <isely@pobox.com>
2006-09-02Remove some dead data elements from pvrusb2 driverMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-09-02Partially reverting last patchMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Last patch did included two experimental stuff there, on cx88 and on pvrusb2. Reverting... Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-02Fixes some troubles on saa7115Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Scaling were not working fine; Some reserved registers were wrong; On some situations, saa7115 were not properly being initializated. Removed some duplicated code. Thanks-to: Hans Verkuil <hverkuil@xs4all.nl> for co-working on this patch. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-02merge: http://linuxtv.org/hg/~tap/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.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-09-01Add compat code to aci and btaudio so they compileTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> aci.c was missing compat.h, and both needed the mutex compat code for kernels < 2.6.16. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-09-01Code were preventing saa7111 and saa7118 to workMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-01VIDIOC_G_SLICED_VBI_CAP now accepts a v4l2_buf_type, make it IOWRHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The VIDIOC_G_SLICED_VBI_CAP needs to receive the v4l2_buf_type field before it can return a result. Hence this ioctl must be IOWR, not IOR. Since this ioctl is still marked experimental we can make this change. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01Fix VIDIOC_S_FMT min/max check in pvrusb2Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01Add cropping support to v4l2-ctl, set buf_type in sliced_vbi_cap query.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> VIDIOC_S/G_CROP is now handled by v4l2-ctl. The v4l2_buf_type is now filled in in VIDIOC_G_SLICED_VBI_CAP. Several test tools now compile when v4l1 API is disabled. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01VIDIOC_INT_S_REGISTER is IOW, not IOR.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01merge: http://linuxtv.org/hg/~tap/buildMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-01Fix: There were some missing breaks at register check routineMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Without the breaks, saa7115 were not initializing PLL2. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-01For contributers, it seems to be better to describe what changedMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-01saa7115 seems to need initializing some reserved registersMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Also fixed a scaling trouble Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.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 GNU License to the treeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Although mentioned on several files at the tree, the GNU License file, as used by default at the drivers, were missing at the tree. 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-30Fix scaling calculusMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Thanks-to: Hans Verkuil <hverkuil@xs4all.nl> for testing it on ivtv. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-30merge: http://linuxtv.org/hg/~tap/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> 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>