summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-03-10Added another variant of acked-by:Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-10Core: fix several locking related problemsMauro Carvalho Chehab
From: Simon Arlott <simon@fire.lp0.eu> Fix several instances of dvb-core functions using mutex_lock_interruptible and returning -ERESTARTSYS where the calling function will either never retry or never check the return value. These cause a race condition with dvb_dmxdev_filter_free and dvb_dvr_release, both of which are filesystem release functions whose return value is ignored and will never be retried. When this happens it becomes impossible to open dvr0 again (-EBUSY) since it has not been released properly. Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-By: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09Usbvideo module handlingMauro Carvalho Chehab
From: Oliver Neukum <oneukum@suse.de> Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09Cpia_pp.c: don't use _WORK_NARMauro Carvalho Chehab
From: Oleg Nesterov <oleg@tv-sign.ru> pp_cam_entry->cb_task need not to be _NOAUTOREL ... because in fact it is never used ??? Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09Saa7134: fix MODULES=n compilationMauro Carvalho Chehab
From: Adrian Bunk <bunk@stusta.de> This patch fixes the following compile error with CONFIG_MODULES=n: CC drivers/media/video/saa7134/saa7134-core.o /home/bunk/linux/kernel-2.6/linux-2.6.21-rc2-mm1/drivers/media/video/saa7134/saa7134-core.c:979:24: error: macro "request_submodules" passed 1 arguments, but takes just 0 /home/bunk/linux/kernel-2.6/linux-2.6.21-rc2-mm1/drivers/media/video/saa7134/saa7134-core.c: In function 'saa7134_initdev': /home/bunk/linux/kernel-2.6/linux-2.6.21-rc2-mm1/drivers/media/video/saa7134/saa7134-core.c:979: error: 'request_submodules' undeclared (first use in this function) /home/bunk/linux/kernel-2.6/linux-2.6.21-rc2-mm1/drivers/media/video/saa7134/saa7134-core.c:979: error: (Each undeclared identifier is reported only once /home/bunk/linux/kernel-2.6/linux-2.6.21-rc2-mm1/drivers/media/video/saa7134/saa7134-core.c:979: error: for each function it appears in.) make[5]: *** [drivers/media/video/saa7134/saa7134-core.o] Error 1 Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09Removed the old xc3028 tagMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09merge: 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>
2007-03-07build: do a better job at parsing hgrc filesTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> When parsing hgrc files, don't get confused by 'username' appearing in other sections, like [smtp]. Check the repo's hgrc file first, then ~/.hgrc Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-07build: speed up link creationTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Everytime a build is started, the build system creates links to every single source file from the v4l directory. This patch changes the command used, to one that is about 15x faster. When building just one file, the creating the links could take the majority of the total build time. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-07zr364xx: Use kernel's byte-swapping functionTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Some code to swap bytes wasn't using the swab16() function that the kernel provides for this. Make use of it, which results in more efficient code. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Antoine Jacquet <royale@zerezo.com>
2007-03-07saa7134: Clean up printk()sTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Change some debug messages from printk() to dprintk(). Add KERN_WARNING and KERN_ERR level indicators to other printk()s that lacked them. Format printk lines with consistent ("%s/dvb: ", dev->name) prefix. Fixed dprintk macro, which had an if with no else that wasn't protected with a do {} while(0) block. That leads to "if(...) dprintk(); else" not doing what one would expect. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2007-03-07radio: Fix error in Kbuild fileTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> All the radio drivers need video_dev, but they were depending on VIDEO_DEV!=n. That meant that one could try to compile the driver into the kernel when VIDEO_DEV=m, which will not work. If video_dev is a module, then the radio drivers must be modules too. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-07Add tveeprom entry for tuner LG S701D MK3Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-07Ivtv warning fixMauro Carvalho Chehab
From: Andrew Morton <akpm@linux-foundation.org> drivers/media/video/ivtv/ivtv-i2c.c:547: warning: initializer-string for array of chars is too long drivers/media/video/ivtv/ivtv-i2c.c:547: warning: (near initialization for 'ivtv_i2c_client_template.name') Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-07Allow using tea5761 radio device on tuner-coreMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> tea5761 is a driver wrote back on 2005, to support Philips tea5671 radio, meanting to be used on some devices that would be lauched with those chips. Recently, some people seems to be interested on having support for those chips at Linux Kernel. Let's enable compilation of this driver and ask they to test if this works fine. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-06Add some missing Hauppauge and Belkin devices to the driverThierry MERLE
From: Dwaine P. Garden <DwaineGarden@rogers.com> -Add some missing Hauppauge and Belkin devices to the driver. -Fixed up some device descriptions. Signed-off-by: Dwaine P. Garden <DwaineGarden@rogers.com> Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2007-03-05Fix compilation issue with zr364xx when V4L1 is disabledAntoine Jacquet
From: Antoine Jacquet <royale@zerezo.com> Add a missing header to fix compilation issue in the zr364xx driver when CONFIG_VIDEO_V4L1 and CONFIG_VIDEO_V4L1_COMPAT are not set. Signed-off-by: Antoine Jacquet <royale@zerezo.com>
2007-03-04ivtv: fix backwards compatibility for kernels 2.6.15 and earlierMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> build failure in 2.6.15: CC [M] ivtv-driver.o ivtv-driver.c: In function 'ivtv_init_struct1': ivtv-driver.c:625: warning: implicit declaration of function 'mutex_init' ivtv-driver.c: In function 'ivtv_probe': ivtv-driver.c:1170: error: 'IRQF_SHARED' undeclared (first use in this function) ivtv-driver.c:1170: error: (Each undeclared identifier is reported only once ivtv-driver.c:1170: error: for each function it appears in.) ivtv-driver.c:1170: error: 'IRQF_DISABLED' undeclared (first use in this function) Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-04Fix duplicated codes in Pinnacle Grey remoteRicardo Cerqueira
From: Emil Georgiev <emilonlinester@gmail.com> The keymap for this remote had duplicated labels for different keys, which resulted in those key pairs being unable to function as different inputs. Signed-off-by: Emil Georgiev <emilonlinester@gmail.com> Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2007-03-03merge: http://linuxtv.org/hg/~endriss/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-03dvb-ttpci: Update frontend lock status in transfer mode (bugfix)Oliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> In transfer/replay mode the frontend lock status was never updated. This caused a 'black screen' if VDR switched from transfer mode to live mode on the same transponder. Thanks to Marco Schluessler for spotting the problem. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-03-03cx25840-firmware include cleanupHans Verkuil
From: Jean Delvare <khali@linux-fr.org> There is no reason why cx25840-firmware.c would need to include <linux/i2c-algo-bit.h>. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-03If possible make vars/functions static.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-03Add missing IVTV_FB_WARN #defineHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> This is needed for ivtv-fb. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-03Replace SA_* with IRQF_*Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> SA_* interrupt flags are being phased out, update to newer flags. Thanks to Maarten Maathuis for pointing this out to me. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-03Add dependency on VIDEO_V4L1Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> VIDEO_V4L1 is needed to get tvaudio to be built. Stupid really as ivtv is only using the v4l2 API to communicate with tvaudio. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-03Add missing VIDEO_CX25840 dep, remove unused VIDEO_TLV320AIC23B depHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> VIDEO_CX25840 was missing in the ivtv dependencies. VIDEO_TLV320AIC23B was removed since it isn't used by ivtv. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-03-02or51132: refactor i2c code, improve error resilienceTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The code the i2c transactions was leftover from the old V4L-based ATSC driver. It did too little with too much code. It is re-written to remove unnecessary parameters and be more efficient. A demod register can now be read with one function call, instead of repeating a dozen line block of code each time. There were msleep()'s, which appear to be unnecessary, spread around all the I2C transactions. These have been removed. Reading SNR used to take about 130 ms, now it's down to 1.8 ms. Reads from the demodulator's registers do not return correct results sometimes. Adding or removing the delays in the I2C transactions did not appear to effect the probability of failure. If anything, the transactions without delays were less likely to fail, but since far more transactions could be made per second the number of failures per hour was greater. To increase reliability, the SNR and get_params functions will now retry once if they get bad data back. This appears to have reduced the probability of failure to effectively zero. Some error messages are cleaned up or given KERN_* levels when they were missing. or51132_setmode() wasn't returning correct error codes, which is fixed as well. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> CC: Rusty Scott <rustys@ieee.org>
2007-03-02[PATCH] Hauppauge Nova-T endianess problem on powerpcPatrick Boettcher
From: Dennis Ranke <mail@exoticorn.de> When trying to use a Hauppauge Nova-T Stick on a big-endian architecture (such as powerpc) no frontend can be attached. The attached patch fixes this problem by removing two lines in dib0700_ctrl_rd() that try to correct the endianess on two values that already are correct: - /* think about swapping here */ - value = le16_to_cpu(value); - index = le16_to_cpu(index); With this simple patch this dvb hardware works great, thanks to anyone involved for the good work. :) Signed-off-by: Dennis Ranke <mail@exoticorn.de> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2007-03-01merge: 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>
2007-02-28merge: http://linuxtv.org/hg/~hhackmann/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-28merge: http://linuxtv.org/hg/~mcisely/pvrusb2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-28merge: 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>
2007-02-27pvrusb2: (trivial) Fix too-wide source lineMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2007-02-27pvrusb2: Fix compilation warning for amd64 builds (use %zu instead of %u)Mike Isely
From: Mike Isely <isely@pobox.com> signed-off-by Mike Isely <isely@pobox.com> signed-off-by Michael Krufky <mkrufky@linuxtv.org>
2007-02-28merge: http://linuxtv.org/hg/~mkrufky/ivtv-compatMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-27ivtv: fix semaphore / mutex compat for kernels 2.6.15 and earlierMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-02-27compat: fix test for true already being definedTrent Piepho
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>
2007-02-28Fix bogus error messages in ivtv for VIDIOC_G_CHIP_IDENTHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-28Add VIDIOC_G_CHIP_IDENT to various i2c modulesHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27dvb: Remove lgh06xf driverTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The code of the dvb-pll driver and the lgh06xf driver is nearly identical. The main difference is that the lgh06xf driver would set the AGC TOP value on every tune call. The dvb-pll driver now has the ability to set the AGC TOP when the front-end device is opened, which is a better way to go about it. By using this ability of dvb-pll, the lgh06xf driver is made unnecessary. There is one other difference. dvb-pll will probe for the presence of an I2C pll chip by doing a one byte read, the lgh06xf driver did not do this. In some devices the PLL is not reachable over I2C at the timer the tuner is attached. Some more initialization, such as firmware loading, must take place first. None of the devices using a LG-H06xF should have this problem. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Michael Krufky <mkrufky@linuxtv.org>
2007-02-27dvb-pll: add code for doing tuner initializationTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Some tuners need or benefit from initialization, to change certain settings from their power on default values. Typically, tuners with TUA603x PLLs can benefit from setting the AGC TOP value to something else. This patch includes code to set the AGC TOP to 103 dBuV for the Thomson DTT-761x tuners, which I have experimentally verified gives the best SNR readings, increasing SNR by about 0.19 dB over the default value. Other tuners can make use of this as well. For example, the separate LG TDVS-H06xF driver's only difference from dvb-pll is this same setting of AGC TOP value. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-27dvb-pll: Fix Kconfig files and add support for making dvb-pll optionalTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> A number of drivers selected DVB_PLL when they did not need it, and some that did need it did not select it. The DVB_PLL option is given a name and help text, so that it will show up in the config menu. DVB_PLL support can be turned on if an out-of-tree driver needs it. The standard dvb fe customization support is added to dvb-pll.h. Since all modules which select DVB_PLL do so unconditionally, it is not possible to turn dvb-pll off when an enabled module selects it, unlike most of the other frontend/tuner drivers. This is because the users of dvb-pll have static references to dvb-pll symbols other than the attach function. If these references are removed, then dvb-pll will be disablable as the other frontend/tuner drivers are. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-27dvb-pll: Use sizeof() to get name lengthTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Better to use sizeof() to get the size of the output buffer for the tuner name, instead of just hard coding 128. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-27build: Have "make clean" delete Module.symversTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> If Module.symvers is kept around, modpost will think symbols from previous builds are still defined when in the current build they are not. This leads to undefined symbol warnings getting masked. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-27Generate driver IDs and chip IDs from the headers and use that in v4l2-dbg.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Instead of a hand-coded list the driver IDs and chip idents are generated automatically from the corresponding headers. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27Fixed 1 byte too short buffer in tda827x.cHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> - The i2c data buffer in tda827xa_set_params was 1 byte too short - saa7134-dvb now gives an error mesage if tda827x could not be attached - coding style fix in tda1004x.c Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2007-02-27Set initial global_alpha to 255 (opaque).Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> An opaque rather than transparent OSD lets it be used as a framebuffer. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27Add ivtv to versions.txt.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27Update ivtv VIDIOC_G_CHIP_IDENT.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> ivtv now sets the correct chip ident and returns the correct error codes. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>