summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tveeprom.c
AgeCommit message (Collapse)Author
2006-03-25Add support for I2C_HW_B_CX2341X board adapterHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> - Add missing class check to tveeprom_attach_adapter. - Add CX2341X specific IR probe address list. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-03-19Cleanup audio input handlingHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Cleanup audio input handling in bttv and tvaudio: - inputs were specified that were never used - mute was handled as a special input which led to confusing code - confusing naming made it difficult to see if the setting was for i2c or gpio. The old audiochip.h input names moved to tvaudio.h. Currently this is used both by tvaudio and msp3400 until the msp3400 implements the new msp3400-specific inputs. Detect in bttv the tvaudio and msp3400 i2c clients and use these client pointers to set the inputs directly instead of broadcasting the command. Removed AUDC_SET_INPUT. Now replaced by VIDIOC_S_AUDIO. This will be replaced again later by the new ROUTING commands. Removed VIDIOC_G_AUDIO implementations in i2c drivers: this command is a user level command and not to be used internally. It wasn't called at all anyway. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-12Add support for Samsung tuner TCPN 2121P30AHans Verkuil
Add support for Samsung tuner TCPN 2121P30A, used in Hauppauge PVR-500 cards. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-11From: Panagiotis Issaris <takis@issaris.org>Mauro Carvalho Chehab
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-07Some cleanups at I2C modulesMauro Carvalho Chehab
- Latest patch reverted, since __stringfy seems to be needed for kernel < 2.6.15 - Applied kernel I2C cleanups from Jean Delaware. - driver names simplified to allow usage of newer printk macros at v4l2-common.h Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2006-01-02convert diagnostics over to the new v4l2-common.h macros.Hans Verkuil
- convert diagnostics over to the new v4l2-common.h macros. - deprecated tuner_debug option, the new option is debug. - renamed cx25840_debug to debug. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-12-15Fix tuner 100 definition for hauppauge eepromRicardo Cerqueira
From: Ricardo Cerqueira <v4l@cerqueira.org> Tuner 100 is the TUNER_PHILIPS_FMD1216ME_MK3, not TUNER_ABSENT. This was causing the tuner module to be skipped, and rendered boards with this value in the eeprom (like the HVR1100) unable to tune Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-12-10Updates to the tveeprom eeprom checkingMauro Carvalho Chehab
From: Steven Toth <stoth@hauppauge.com> Signed-of-by: Steven Toth <stoth@hauppauge.com> 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-04tveeprom cleanup of hardcoded tuner format values.Michael Krufky
From: Steven Toth <stoth@hauppauge.com> - cleaned up the structure to use the V4L2_STD_xxx definitions rather than a one off set of hardcoded values - which could change in the future. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-11-28Restore missing tuner definition for Hauppauge tuner type 0x103Mike Isely
- Type 0x103 ("TCL MFNM05-4") in the Hauppauge eeprom is a more recent tuner that maps to TUNER_PHILIPS_FM1236_MK3. This had been previously defined but due to some accident the definition got removed. This change restores that definition. Change committed on advice from Hans Verkuil <hverkuil@xs4all.nl>, who thinks he's the one who had accidentally removed it before. From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2005-11-26Add workaround for Hauppauge PVR150 hardware problem with certain NTSC tuner ↵Hans Verkuil
models. - add workaround for Hauppauge PVR150 hardware problem with tuner models 85, 99 and 112 (model numbers as reported by tveeprom). The audio standard autodetection does not always work correctly for these models. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-25Fixed eeprom handling for cx88 and added Nova-T PCI model 90003.Mauro Carvalho Chehab
From: Steven Toth <stoth@hauppauge.com> - Fixed code handling for eeprom on cx88 boards. - Hauppauge released a new version of the Nova-T-PCI (9002) a few months ago with a different (compatible) tuner (but lacking RF passthru). The official model# is 90003. All features are working. - Adding entry to the known model list after testing. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-18tveeprom MAC address parsing/cleanupMauro Carvalho Chehab
From: Steven Toth <stoth@hauppauge.com> - added a mac address field to the tveeprom structure. - allow callers to query the MAC address. - removed some redundant eeprom parsing code in cx88-cards.c (specific to Hauppauge DVB products) Instead, placed calls directly to the single eeprom parsing function in tveeprom.c Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-30 - Second round of i2c IDs redefinition cleanup.Mauro Carvalho Chehab
Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-16- Whitespaces Cleanups.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-10 - Some compilation fixes for 2.4 kernel.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
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-10-08 From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>Mauro Carvalho Chehab
* ../linux/drivers/media/video/tveeprom.c: - Fixed include when compiling at kernel tree * ../linux/include/linux/videodev.h: - removed compat.h from wrong place * ../linux/drivers/media/video/tvp5150.c: * ../linux/kernel/drivers/usb/media/em2820-cards.c: * ../linux/kernel/drivers/usb/media/em2820-core.c: * ../linux/kernel/drivers/usb/media/em2820-i2c.c: * ../linux/kernel/drivers/usb/media/em2820-video.c: - included compat.h at the right place * ../v4l/Make - now creates symlinks to allow compiling V4L stuff at v4l dir. * ../v4l/scripts/prepare-ChangeLog.pl: - modified to include other directories. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-07 - fix compile with gcc-2.95Michael Krufky
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-10-02- Included audio chips enumMauro Carvalho Chehab
- Added a new tuner tradution on tveeprom. - tveeprom now, returns audio chip according with enum audiochip. This allows audio chip autodetection as used on em28xx. - CodeStyle cleanups. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-09-28 * tuner-simple.c:Nickolay V. Shmyrev
* tuner.h: * tveeprom.c: - update the tveeprom tuner list with the tuner list from the Hauppauge driver - connect the TCL MPE05-2 tveeprom entry to the TUNER_PHILIPS_FM1216ME_MK3 tuner. - based on this info renamed the "LG PAL (TAPE series)" tuner to "TCL 2002MB". Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-09-13 * bt832.c: (bt832_probe):Michael Krufky
* bttv-i2c.c: (attach_inform): * cx88-i2c.c: (attach_inform), (detach_inform): * id.h: * ir-kbd-i2c.c: (ir_probe): * msp3400.c: (msp34xx_sleep), (msp_attach): * saa6588.c: * saa6752hs.c: * saa7134-i2c.c: (attach_inform): * saa7134-tvaudio.c: (tvaudio_sleep): * tda7432.c: (tda7432_probe): * tda9875.c: (tda9875_probe): * tda9887.c: (tda9887_probe): * tuner-core.c: * tveeprom.c: (tveeprom_attach_adapter): * tvmixer.c: (tvmixer_ioctl), (tvmixer_clients), (tvmixer_cleanup_module): * video-buf.c: (videobuf_dma_free): - Step two, in preparation for 2.6.14-rcX compatability: - Compile tested against vanila kernels 2.6.13 & 2.6.8 - 2.6.14 compile still broken... Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-13- I've reverted a patch by mistake. fixing itMauro Carvalho Chehab
2005-09-13- Small fixes.Mauro Carvalho Chehab
* scripts/buildpatch: - Fixed a problem when commiting <dolar>Id with CVS. * tuner-core.c: (tuner_command): - Better debug info for non-implemented iocts. * tveeprom.c: - Fixed compiling with gcc2.9x (thanks to Andrew Morton). Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-09-11 * bttv-cards.c:Michael Krufky
- duplicate initializer (near initialization for `bttv_tvcards[9].tuner_addr') duplicate initializer (near initialization for `bttv_tvcards[11].tuner_addr') * cx88-input.c, tuner.h, tvaudio.c, tveeprom.c: - Work around gcc-2.95.x macro expansion bug Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-30clean trailing whitespaceMichael Krufky
2005-08-30- tveeprom_hauppauge_analog has an extra i2c_client * argument.Mauro Carvalho Chehab
This allows for clearer message prefixes containing the i2c adapter number and address. This is conform the prefix used for the tuner messages. - debugging is improved: debug=1 will dump the full contents of the eeprom and also show each tag that is parsed. The layout of the debug output is now clean. - the eeprom can contain two tuner records, the first for the TV tuner, the second for a radio tuner (this is the case for the PVR500). Added support for this, also added the TEA5767 radio tuner to the tuner list. - the audio processor index is now mapped to a string. - the video decoder processor tag is now implemented. - all TV standards supported by the tuner are shown. - show if radio or IR is present. - add comments showing what other tags exist.
2005-08-30 - adds the adapter number + i2c address to printk msgs.Mauro Carvalho Chehab
- Some CodingStyle cleanups. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-20 * tveeprom.c: (tveeprom_command):Mauro Carvalho Chehab
- This syncs the tuners list with the list from ivtv. - Fixes the incorrect reporting of the radio presence. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-03Resolve more tuner typesNickolay V. Shmyrev
Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de>
2005-07-22 * tveeprom.c:Michael Krufky
- Recognize the MFPE05-2 Tuner. - Setting confirmed by Hauppauge Tech Support. Signed-off-by: Graham Bevan <graham.bevan@ntlworld.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-21 * tveeprom.c, tveeprom.h:Michael Krufky
- make two needlessly global structs static. - #if 0 the EXPORT_SYMBOL'ed but unused function tveeprom_dump. Signed-off-by: Adrian Bunk <bunk@stusta.de>
2005-07-13 - Linux/version.h removed. Replaced by linux/utsname.hMauro Carvalho Chehab
where KERNEL_VERSION is required. - incremented versions for CX88, BTTV and SAA7134. * compat.h: - Included linux/version.h. This change is required to be compatible with a patch applied at Kernel by Olaf Hering <olh@suse.de> this patch does reduce kernel dependency of its version number. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-06-18 * dpl3518.c, msp3400-old.c, msp3400.c, saa6752hs.c, tda9887.c:Nickolay V. Shmyrev
* tuner-core.c, tvaudio.c, tveeprom.c: - Up requirement on kernel version to remove normal_i2c_range. Actually it gives nothing, only remove unused static structure so it's used as a reminder. - Fix compilation.
2005-06-17 * Make.config, Makefile, cx88-core.c, cx88-video.c:Nickolay V. Shmyrev
* cx88.h, msp3400.c, saa6752hs.c: * tda9887.c, tuner-core.c, tvaudio.c, tveeprom.c: - Remove unneeded config options. Now I2C_CLIENT_MULTI and I2C_NORMAL_RANGE is checked on the fly.
2005-06-15I2C API has changed on 2.6.12-rc6-mm1: I2C_CLIENT_INSMOD macro now doesn'tMauro Carvalho Chehab
require nor uses normal_i2c_range. A new define (CONFIG_USE_I2C_RANGE) is provided to provide compatibility. It is meant to be replaced by a kernel version test after aplyed to mainstream. This patch corrects it. High precision tunning on Radio is correclty supported. Some radio apps already uses it. There's an auto-detection process to check tuner range. Detailed info: * Make.config, Makefile, tuner-core.c: - CONFIG_TUNER_MULTI_I2C dropped from tuner-core.c and included on Make.config - included CONFIG_USE_I2C_RANGE for kernels that requires normal_i2c_range struct (only kernels after 2.6.12-rc6-mm1 doesn't require). * bt832.c, msp3400.c, saa6752hs.c, tda7432.c, tda9875.c, tda9887.c, tuner-core.c,tvaudio.c, tveeprom.c, - I2C range detection corrected to new behavior of 2.6.12-rc6-mm1 * cx88-video.c, tea5767, tuner-core.c: - V4L2_TUNER_CAP_LOW implemented according with V4L2 API for Radio. - tea5767 debug improved. * .bp/2.6/v4l-driver-doc - typo corrected. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-03-08- tuner + tveeprom updates from Jarod Wilson.Gerd Knorr
2005-03-04- build fixes for older kernels.Gerd Knorr
2005-03-01- tuner update (for pvr) from Jarod Wilson.Gerd Knorr
2005-02-09- split tuner module into multiple smaller files.Gerd Knorr
2005-01-31- whitespace cleanups.Gerd Knorr
2005-01-17- fix tveeprom.Gerd Knorr
2005-01-13- card-specific and other fixes from various people.Gerd Knorr
- more pinnacle 300i work (still not functional :-/).
2005-01-07- tveeprom tweaks.Gerd Knorr
- keytable for the new hauppauge remotes.
2004-12-17- misc fixes.Gerd Knorr
2004-12-14- switch over to tveeprom for hauppauge card config.Gerd Knorr