summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bttv-driver.c
AgeCommit message (Collapse)Author
2006-01-01ioctls cleanups.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br> - Now, all internal ioctls are at v4l2-common.h - removed unused ioctl at saa6752hs.h - all debug ioctl code moved to v4l2-common.c - removed duplicated stuff from other cards Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-18Fix bttv sub-device unregisterRicardo Cerqueira
From: Christopher Pascoe <c.pascoe@itee.uq.edu.au> Fixes sub-device release for BTTV. Without this, DVB modules can't be reloaded Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-12-17Fixed compiling with gcc 2.9xMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-14bttv VBI fixesHans Verkuil
From: Michael H. Schimek <mschimek@gmx.at> - V4L2_(G|S|TRY)_FMT returned incorrect VBI start lines for PAL-M, NTSC-JP, and PAL-60. They also returned an inaccurate VBI offset. - V4L2_(G|S)_FMT and V4L2_TRY_FMT disagreed about the start of VBI capturing in PAL and SECAM second field. Note the start line fixes may break applications using VIDIOCSVBIFMT because this ioctl fails when the driver does not support exactly the requested parameters. - V4L2_TRY_FMT did not clear the reserved field in struct v4l2_vbi_format. - V4L2_(S|TRY)_FMT did not expect very large or small VBI start or count values, returning wrong (but safe) counts due to an overflow. - VIDIOCGVBIFMT confused V4L and V4L2 VBI flags. However this had no effect because the flags have the same value and bttv never sets them. - In v4l_compat_translate_ioctl() the VIDIOC(G|S)VBIFMT code did not expect V4L2 drivers supporting VBI formats besides V4L2_PIX_FMT_GREY. Signed-off-by: Michael H. Schimek <mschimek@gmx.at> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-12-10ir-kbd-gpio is now part of bttvRicardo Cerqueira
From: Ricardo Cerqueira <v4l@cerqueira.org> Merged ir-kbd-gpio into bttv as bttv-input, for consistency with other input modules Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-12-07Reverted a wrong commit at the previous patch.Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07kernel-sync patches.Mauro Carvalho Chehab
- kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07include reorder to be in sync with V4L treeMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07Syncs bttv stuff with kernel version.Mauro Carvalho Chehab
kernel-sync - Syncs bttv stuff with kernel version. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-04kernel-syncMichael Krufky
[PATCH 9/11] MEDIA: replace all uses of pci_module_init with pci_register_driver From: Otavio Salvador <otavio@debian.org> This patch replace all calls to pci_module_init, that's deprecated and will be removed in future, with pci_register_driver that should be the used function now. Signed-off-by: Otavio Salvador <otavio@debian.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-04Remove AUDC_CONFIG_PINNACLE horror, fix mt20xx radio support.Hans Verkuil
Remove AUDC_CONFIG_PINNACLE horror. This also fixes radio support for mt20xx tuners. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-24Fix bttv ioctls VIDIOC_ENUMINPUT, VIDIOCGTUNER, VIDIOC_QUERYCAP.Nickolay V. Shmyrev
From: Michael H. Schimek <mschimek@gmx.at> * ../linux/drivers/media/video/bttv-driver.c: (bttv_common_ioctls), (bttv_do_ioctl): Fixed bttv ioctls VIDIOC_ENUMINPUT, VIDIOCGTUNER, VIDIOC_QUERYCAP. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Michael H. Schimek <mschimek@gmx.at>
2005-11-24bttv raw format fix to fix VIDIOCSPICT ioctl.Nickolay V. Shmyrev
From: Michael H. Schimek <mschimek@gmx.at> * ../v4l/linux/drivers/media/video/bttv-driver.c: * ../v4l/linux/drivers/media/video/video-buf.c: bttv raw format fix to fix VIDIOCSPICT ioctl. Signed-off-by: Michael H. Schimek <mschimek@gmx.at> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-18bttv bytes per line fix.Nickolay V. Shmyrev
From: Michael H. Schimek <mschimek@gmx.at> Signed-off-by: Michael H. Schimek <mschimek@gmx.at> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-18Fix read() bugs in bttv driver.Nickolay V. Shmyrev
From: Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Michael H. Schimek <mschimek@gmx.at>
2005-11-16Fixes warning at bttv-driver.cMauro Carvalho Chehab
From: Luiz Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-10em28xx IR fixup and explicit compat_ioctl32 handlerMauro Carvalho Chehab
- Commented the code to avoid repeating events when pressing IR keys. - Included explicit compat_ioctl32 handler. CC: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-09Moves 32 bit ioctl compat handler to V4L sybsystemMauro Carvalho Chehab
From: Arnd Bergmann <arnd@arndb.de> This moves the 32 bit ioctl compatibility handlers for Video4Linux into a new file and adds explicit calls to them to each v4l device driver. Unfortunately, there does not seem to be any code handling the v4l2 ioctls, so quite often the code goes through two separate conversions, first from 32 bit v4l to 64 bit v4l, and from there to 64 bit v4l2. My patch does not change that, so there is still much room for improvement. Also, some drivers have additional ioctl numbers, for which the conversion should be handled internally to that driver. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-08 * ../linux/drivers/media/video/bttv-cards.c: (bttv_init_card2):Nickolay V. Shmyrev
* ../linux/drivers/media/video/bttv-driver.c: (bttv_irq): * ../linux/drivers/media/video/bttv-gpio.c: (bttv_any_irq): * ../linux/drivers/media/video/bttv.h: * ../linux/drivers/media/video/bttvp.h: * ../linux/drivers/media/video/ir-kbd-gpio.c: (rc5_decode), (ir_rc5_irq), (ir_rc5_timer_end), (ir_rc5_timer_keyup), (ir_probe), (ir_remove): Support for Nebula rc5-based gpio remote. Signed-off-by: Mark Weaver <mark-clist@npsl.co.uk>
2005-11-06 - #elsif removed, since it breaks gentree stuff.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-16- Whitespace Cleanups.Mauro Carvalho Chehab
- Whitespace script improved. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-16 - This patch adds the VIDIOC_LOG_STATUS to videodev2.h and addsMauro Carvalho Chehab
LOG_STATUS support to tda9887.c and bttv-driver.c. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-15 * ../linux/drivers/media/video/bttv-driver.c: (bttv_irq):Nickolay V. Shmyrev
More intellect on clearing in bits on irq lock. Signed-off-by: Nickolay V. Shmyrev <<nshmyrev@yandex.ru>>
2005-10-09From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>Mauro Carvalho Chehab
- 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>
2005-09-29- Boards renamed to BTTV_BOARD_xxxMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-09-28 * bttv-driver.c: (set_pll):Nickolay V. Shmyrev
* bttvp.h: - Rename vprintk to verbose_printk to fix name clash. Signed-off-by: Bernd Petrovitsch <bernd@firmix.at>
2005-09-13#include "compat.h"Michael Krufky
2005-09-13 * bttv-cards.c, bttv-driver.c:Michael Krufky
* msp3400.c, tda9887.c, tuner-core.c: - Step one, in preparation for 2.6.14-rcX compatability: -#ifdef MM_KERNEL +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,13) Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-07* bttv-cards.c: (bttv_init_card1), (bttv_init_card2):Michael Krufky
* bttv-driver.c: - don't enable gpioirq until after card probe. - Pinnacle PCTV-Sat fifo overrun error fix. gpioirq is enabled pretty early during the initialization (bttv_probe) and later turned off when a card with no_gpioirq=1 is detected (bttv_init_card2). But that causes gpio irqs being enabled for a while - in my case there are between some hundred and some thousand (false) irqs delivered before the gpioirq is disabled. The patch just changes the default. gpio irqs are disabled while probing and later enable when a card with no_gpioirq=0 is found. The status whether a card gets gpio irqs or not stays the same. Thanks to: Edgar Toernig <froese@gmx.de> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-30 - Some error treatment implemented at resume functions.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-17strip trailing whitespaceMichael Krufky
2005-08-16 * MakeMauro Carvalho Chehab
* rds.h: * saa6588.c: - kernel module for acquiring RDS data from a SAA6588. * bttv-driver.c: - Allow multiple open() calls to /dev/radio - Add read functionality for /dev/radio Signed-off-by: Hans J. Koch <koch@hjk-az.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-04 * bttv-driver.c:Mauro Carvalho Chehab
- New debug warn when no_overlay active. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-03_overlay type changed to int.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-03 * bttv-cards.c, bttv-driver.c:Mauro Carvalho Chehab
- no_overlay now behaves as described on docs. * doc/insmod-options: - no_overlay flag description updated. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-03 - Debug messages for no_overlay improved.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-03 * scripts/buildpatch:Mauro Carvalho Chehab
- treating MM_KERNEL as non-mm. * bttv-cards.c,bttv-driver.c: - no_overlay bttv insmod parameter now works. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-30 * bttv-driver.c, msp3400.c, tda9887.c, tuner-core.c:Michael Krufky
* Makefile, scripts/merge-trees.sh, scripts/unmerge-trees.sh: - Fix cvs compile to work for both latest -linus and -mm trees. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-30fixed cvs compile for 2.6.13Michael Krufky
2005-07-20 * bttv-driver.c:Michael Krufky
- pci_dma_supported() is called after pci_set_dma_mask() which already did check that for us. The attached patch removes the unneeded call to pci_dma_supported() Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-15 - linux/version.h removed at linux-2.6.13-rc3-mm1.Mauro Carvalho Chehab
- Removed remaining trailing spaces. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-15 * bttv-driver.c, msp3400.c, tda9887.c, tuner-core.c:Mauro Carvalho Chehab
- driver.suspend API modified at 2.6.13-rc3-mm1. - Warnings removed when compiling against 2.6.13-rc3-mm1. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-05 Rename tuner structures fields. Move MD detection hack toNickolay V. Shmyrev
saa7134-cards.c
2005-06-22 * bttv-driver.h:Nickolay V. Shmyrev
- use DMA_32BIT_MASK. Thanks to domen@coderock.org. * tuner.h: - Remove unneeded set_tuner from tuner structure. * saa7134-cards.c, saa7134-tvaudio.c: patch to switch external mux on mute on some cards. * tuner-simple: - unify tuner list
2005-06-16 * bttv-driver.c, bttvp.h:Nickolay V. Shmyrev
- New bttv module params: - uv_ratio : allow a ratio of saturation between u and v. If you have a ratio of 40 and a saturation of 100, usat will be 80 and vstat 120. Useful to correct a bad color balance. - full_luma_range : provide a better contrast in using the full range 0-253 of values instead of 16-253. - coring : to have a better black level. Thanks to Sylvain Meyer <sylvain.meyer@worldonline.fr>
2005-06-16 * cx88-video.c, saa7134-video.c, bttv-driver.c:Mauro Carvalho Chehab
- radio range is now defined on tuner-core.c. Cleaning up. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-06-10 - Syncrhronized with linux-2.6.12-rc6-mm1.Mauro Carvalho Chehab
- Should compile cleanly with linux-2.6.11 also. make snapshot improved.
2005-02-21- add some bttv debug code.Gerd Knorr
2005-02-15- some powermanagement stuff.Gerd Knorr
- misc fixes. - fixup patch generation control files.
2005-01-24- sync with 2.6.11-rc2 & latest dvb cvs.Gerd Knorr
- misc card-specific tweaks.