summaryrefslogtreecommitdiff
path: root/linux/include/media/tuner.h
AgeCommit message (Collapse)Author
2007-10-27tuner: remove TUNER_PHILIPS_TDA8295Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> TUNER_PHILIPS_TDA8290 will autodetect a TDA8290 or a TDA8295, so we don't need this separate entry anymore. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/Documentation/video4linux/CARDLIST.tuner | 3 +-- linux/drivers/media/video/tuner-core.c | 1 - linux/drivers/media/video/tuner-types.c | 5 +---- linux/drivers/media/video/tveeprom.c | 2 +- linux/include/media/tuner.h | 2 -- 5 files changed, 3 insertions(+), 10 deletions(-)
2007-10-22tda8290: add support for NXP TDA18271 tuner and TDA8295 analog demodMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Add basic support for NXP TDA8295 analog demod and TDA18271 tuner silicon. TDA8295 + TDA8275a not yet tested. TDA8290 + TDA18271 not yet supported. Digital mode of TDA18271 not yet tested & needs more work. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/Documentation/video4linux/CARDLIST.tuner | 1 linux/drivers/media/Kconfig | 3 linux/drivers/media/dvb/frontends/Kconfig | 7 linux/drivers/media/dvb/frontends/Makefile | 1 linux/drivers/media/dvb/frontends/tda18271.c | 1062 +++++++++++++++++++++++++ linux/drivers/media/dvb/frontends/tda18271.h | 40 linux/drivers/media/video/tda8290.c | 339 +++++++ linux/drivers/media/video/tda8290.h | 8 linux/drivers/media/video/tuner-core.c | 5 linux/drivers/media/video/tuner-types.c | 3 linux/drivers/media/video/tveeprom.c | 2 linux/include/media/tuner.h | 2 v4l/versions.txt | 2 13 files changed, 1467 insertions(+), 8 deletions(-)
2007-10-24Remove the obsoleted xc3028Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Remove the old xc3028.c file, replacing all occurrences of TUNER_XCEIVE_XC3028 to TUNER_XC2028. Some work is still may be required to make sure that non-tm6000 drivers will be capable of using tuner-xc2028. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/Documentation/video4linux/CARDLIST.tuner | 2 +- linux/drivers/media/video/em28xx/em28xx-cards.c | 10 +++------- linux/drivers/media/video/ivtv/ivtv-cards.c | 6 +++--- linux/drivers/media/video/ivtv/ivtv-driver.c | 2 +- linux/drivers/media/video/tuner-core.c | 5 ----- linux/drivers/media/video/tuner-types.c | 6 +++--- linux/include/media/tuner.h | 2 +- v4l/Makefile | 4 ---- 8 files changed, 12 insertions(+), 25 deletions(-)
2007-08-03tuner: Better tuner radio supportTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add radio support for the Thomson DTT7612 tuner. This tuner uses a different 1st intermediate frequency than the other radio tuners supported (a lot of NTSC radio tuners probably need this change too). Add a new tuner-simple parameter, radio_if. It selects the 1st IF used for radio reception. The radio frequency setting code in tuner-simple now uses this field, instead of a special case select() block for each tuner with radio support. The tuner parameters for tuners that used a 33.3 MHz RIF now set radio_if to 1 in tuner-types.c. The Thomson DTT7612 gets radio_if = 2, also add has_tda9887 = 1 and fm_gain_normal = 1. Add some defines for tda9887 bits that control IF setting in radio mode. Add a new tda9887 config option, TDA9887_RIF_41_3, that selects a 41.3 MHz radio IF. Fix the way tda9887 radio options work. The driver was modifying the default radio mode config templates based on the TDA9887_XXXX flags. This means that _all_ tuners would get the same settings. If you had a one tuner than used TDA9887_GAIN_NORMAL and one that didn't, both would get the setting. Now the tda9987 driver just checks if tuner mode is radio and then applies the config settings directly to the data being sent, just like how all the TV mode settings already work. The PLL setting math is made a little more accurate. And a grammar error in a printk is fixed. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-06-26tuner: remove hardware-specific info from public headerMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move internal structures and debug macros to drivers/media/video/tuner-driver.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-06-06tuner: create struct tuner_operationsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move tuner callback function pointers out of struct tuner, into struct tuner_operations. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-06-04tuner: add release callbackMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Individual tuner drivers are now allocating memory themselves for their own private data structures. This changeset adds a release callback to the tuner operations, so that newer drivers that may require more complex data structures may release this private data themselves. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-29tuner: Move device-specific private data out of tuner structMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Create private data struct for device specific private data. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-13Backport several i2c cleanups from mainstreamMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> backport commit 2096b956d24c4b5950b808fc23b218425d79ebb1 from David Brownell <david-b@pacbell.net> Maybe I've merged also other i2c cleanups here that happened on Kernel. 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-02-15updated support for tuner callbacksHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> This change supplies a more generic version of the tuner callback. The tuner struct now has a function pointer int (*tuner_callback) (void *dev, int command, int arg) additionally to a int config parameter. both can be set through the TUNER_SET_TYPE_ADDR client call. Note that the meaning of the parameters depend on the tuner type. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2007-01-23Added a config entry and a gpio function pointer to the tuner structHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> These entries mainly are to support configurations of the tda827x silicon tuner with a preamplifier. The values can be set throgh the attach inform or through the extended TUNER_SET_TYPE_ADDR client call. The function pointer will only be updated if the parameter is not NULL. Since a typecast is necessary to set the pointer, i added a typedef for this pointer (tuner_gpio_func_t) in tuner.h Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2006-12-04Usbvision radio requires GainNormal at e registerMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Adds an option to select GainNormal at tda9887 and make usbvision to use it. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-24tda9887: add configuration setting for L standard PLL gatingTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add a tuner config parameter for TDA9887, default_pll_gating_18, that changes the L standard PLL gating value from 36% to 0% (datasheet says 0%, tda9887 code says 18%). Turn this on for Microtune 4049FM5, as recomended by tuner datasheet. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-06-23Merge tda9887 module into tuner.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Most uses a tda988[5/6/7] IF demodulator as part of the device. Having this as a separate stuff makes harder to configure it, since there are some tda9887 options that are tuner-dependent and should be bound into tuner-types structures. This patch merges tda9887 module into tuner. More work is required to make tuner-types to properly use it. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-27v4l: rename TUNER_LG_TDVS_H062F to TUNER_LG_TDVS_H06XFMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-04-19Add support for Samsung TCPG 6121P30A PAL tuner.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-04-11Since we are not using CVS, $Id makes no sense anymoreMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-03-11LG TALN series: add PAL / SECAM supportMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - added tuner_lg_taln_pal_secam_ranges - renamed tuner 66 from TUNER_LG_NTSC_TALN_MINI to TUNER_LG_TALN - updated FlyTV mini Asus Digimatrix with new tuner Thanks-to: Rickard Osser <ricky@osser.se> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-02-28FE6600 is a Thomson tunerMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - The tuner used in DViCO FusionHDTV DVB-T hybrid is made by Thomson - renamed tuner and dvb_pll structs accordingly Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-02-28DViCO FusionHDTV DVB-T Hybrid and ZL10353-based FusionHDTV DVB-T Plus supportChris Pascoe
From: Chris Pascoe <c.pascoe@itee.uq.edu.au> Add support for the FE6600 tuner used on the DVB-T Hybrid board. Add support for the Zarlink ZL10353 DVB-T demodulator, which supersedes the MT352, used on the DViCO FusionHDTV DVB-T Hybrid and later model Plus boards. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
2006-02-01added support for xc3028 analogue tuner (Hauppauge HVR900, Terratec Hybrid XS)Markus Rechberger
From: Markus Rechberger <mrechberger@gmail.com> added support for xc3028 to v4l which adds support for: * Terratec Hybrid XS (analogue) * Hauppauge HVR 900 (analogue) Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
2006-01-15Separate tv & radio freqs, fix cb/freq transmit order for tuners that need this.Hans Verkuil
- Moved MSP_SET_MATRIX to v4l2-common.h - Fix typos and integer overflows in tea5767.c - Split old freq field into a tv_freq and a radio_freq. Prevents that a radio tuner is initialized with a tv frequency or vice versa. - When switching to radio mode initialize the tuner with the last used radio frequency (this was already done for the TV mode). As a result of these changes the tuner module now remembers the last set radio and TV frequencies, which is what you would expect to happen. - Move out of range frequencies to the closest valid frequency as per v4l2 API spec. - Fix incorrect initial radio frequency (multiplier is 16000, not 16) - Add boundary check for out of range frequencies. - Use new flag to check if the order of the CB and freq. depends on the last set frequency. That is needed for some tuners or you can get static as a result. The flag is added for those tuners where I know that the datasheet indicates that this is necessary. - For this new check use the last set div value, not the last frequency as radio frequencies are always much higher due to the 16000 multiplier. 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-12Redesign tuners struct for maximum flexibilityMichael Krufky
From: Michael Krufky <mkrufky@m1k.net> - tunertype struct redefined to allow one or more tuner_params structs per tuner definition, one for each video standard. - Each tuner_params struct has an element containing an arbitrary amount of tuner_ranges. (this is needed for dvb tuners - to be handled later) - A tuner_range may be referenced by multiple tuner_params structs. There are many duplicates in here. Reusing tuner_range structs, rather than defining new ones for each tuner, will cut down on memory usage, and is preferred when possible. - tunertype struct contains an element, has_tda988x. We must set this for all tunertypes that contain a tda988x chip, and then we can remove this setting from the various card structs. - Improves tuners array memory usage efficiency. - Right now, all tuners are using the first tuner_params[] array element for analog mode. In the future, we will be merging similar tuner definitions together, such that each tuner definition will have a tuner_params struct for each available video standard. At that point, the tuner_params[] array element will be chosen based on the video standard in use. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-11Fixes some bad global variablesHans Verkuil
- debug global var is already used inside kernel, so renamed debug to tuner_debug for the tuner module Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-08i2c fixes and cleanupsMauro Carvalho Chehab
- Miscelaneous i2c cleanups and fixes to work with kernel >2.6.15 - linux/sound/pci/bt87x.c updated to kernel version. kernel-sync 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>
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-28Added some comments about multiple tuner support.Mauro Carvalho Chehab
- Added some comments to make clearer how to use ioctl api to handle multiple tuners at the same board. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-20update comments to indicate which tuners are supported by TUNER_THOMSON_DTT761XMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-20correct Thomson DTT 761x frequency rangesMichael Krufky
From: Michael Krufky <mkrufky@m1k.net> - corrected Thomson DTT 7611 tuner programming, based on spec sheet - renamed to Thomson DTT 761x - applies to DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A (DTT 7610 is similar, but slightly different programming) - corrected frequency ranges for analog and digital modes Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-11added ntsc parameter to tuner and more standardized debugsMauro Carvalho Chehab
- debug message changed to be coherent with other modules - added ntsc parameter - parameters moved to the beginning at the file - tuner_status moved to a better position. 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-05tda9887 improvements: better defaults, better configurability.Hans Verkuil
- Set the tuner takeover point to 0x10 for NTSC/radio and 0x14 for PAL/SECAM. - Allow override through TDA9887_SET_CONFIG - PAL-N belongs with PAL-BG as does PAL-H. PAL-Nc belongs to PAL-M - Add SECAM-BGH - Set video freq to cVideoIF_38_90 for DK standards. - Add cTunerGainLow to radio, change deemphasis to 75 for mono. - Add ntsc module param for 'M' and 'J' (Japanese) standards. - Fix module handling for 2.4. - Now able to select all standards through pal/secam/ntsc module options Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-27Fix wrong tuner.h define for tuner 46 (it's a Panasonic, not a Microtune).Hans Verkuil
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-25tuner description now follows the same CodingStyle as the othersMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-08 * ../linux/Documentation/video4linux/CARDLIST.bttv:Nickolay V. Shmyrev
* ../linux/Documentation/video4linux/CARDLIST.tuner: * ../linux/drivers/media/video/bttv-cards.c: * ../linux/drivers/media/video/bttv.h: * ../linux/drivers/media/video/ir-kbd-i2c.c: * ../linux/drivers/media/video/tuner-simple.c: * ../linux/include/media/tuner.h: Support for Sabrent bt848 version. Signed-off-by: Bill Pechter <pechter@gmail.com> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-02 - Added dvb support for tda8275a (Philips Tiger reference design)Hartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-10-18 * ../linux/drivers/media/video/tda8290.c: (tda8290_init):Nickolay V. Shmyrev
* ../linux/include/media/tuner.h: - Unify whitespaces. - Fix build warning. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-10-17 - add support for tda8275aHartmut Hackmann
- support all possible I2C addresses - automatic version and address detection - let i2c bridge stabilize befor use Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-10-16- Whitespace Cleanups.Mauro Carvalho Chehab
- Whitespace script improved. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-15 * ../linux/drivers/media/video/cx88/cx88-cards.c:Nickolay V. Shmyrev
* ../linux/drivers/media/video/tda9887.c: (tda9887_set_config): * ../linux/include/media/tuner.h: - New config option for tda9887 to specifically set intercarrier depending on current standard and card. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-10-05 * cx88.h, cx88-cards.c: (cx88_card_setup):Michael Krufky
- Added analog support for ATI HDTV Wonder * tuner.h, tuner-simple.c: (default_set_tv_freq): - Added support for the Philips TUV1236D tuner on the ATI HDTV Wonder Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-29 * tda8290.c: (set_audio), (set_tv_freq):Nickolay V. Shmyrev
* tuner.h: - Set IF of tda8275 according to tv norm. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
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-12added support for the Philips TD1316 tunerHartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
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-30 * tuner-simple.c, tuner.h:Mauro Carvalho Chehab
- normalize whitespace and comments in tuner lists Signed-off-by: Philip Rowlands <phr@doc.ic.ac.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-20 * bttv-i2c.c:Michael Krufky
- added i2c address for lgdt330x. * tuner.h: - i2c-core.c uses hexadecimal for the i2c address, so we should stay consistent. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Michael Krufky <mkrufky@m1k.net>