summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
AgeCommit message (Collapse)Author
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-08-12Offset parameter permission were 0x666, instead of 0x664Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Although not dangerous, it may allow a normal user with access to a machine to untune a TV channel. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-25Remove of couple of useless linesTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> A buffer was set just before an if block, and then again in both branches of the if. Obvious coding error. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-17Set the Auxiliary Byte when tuning LG H06xF in analog modeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> With the LG H06xF tuners, an auxiliary byte must be sent after the standard four-byte i2c sequence. The code that does this is currently in the wrong place, causing random bytes to be written to the tuner over i2c in the set_type function. This patch moves this code from set_type to default_set_tv_freq. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-25Add tda9887-specific tuner configurationHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Many tda9887 settings depend on the chosen tuner. Expand the tuner parameters to include these tda9887 settings. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-20Whitespace cleanupsMauro Carvalho Chehab
From: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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-09imported patch tenna_xxx5.patchMauro Carvalho Chehab
2006-01-30show debug info for tuners trying to use unsupported video standardsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> With tuner_debug enabled, if a tuner tries to use a video standard that doesn't have a matching tuner_params defined, the IFPCoff value and tuner number will be displayed, and the default tuner_params entry will be used. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-30use default tuner_params if desired_type not availableMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If a given tuner definition contains more than one tuner_params array members, it will try to select the appropriate tuner_params based on the video standard in use. If there is no tuner_params defined for the current video standard, it will select the default, tuner_params[0] Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-30update tuner commentsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Right now, all tuners are using the first tuner_params[] array element for analog mode. We are now ready to begin merging similar tuner definitions together, such that each tuner definition will have a tuner_params struct for each available video standard. The tuner_params[] array element will be chosen based on the video standard in use. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-29tuner_dbg will show tuner param and range selectedMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - tuner_dbg will show tuner param and range selected Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-29allow multiple tuner params in each tuner definitionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - allow multiple tuner params in each tuner definition. - the correct tuner_params element will be chosen based on current video standard. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-29move video std detection to top of set_tv_freq functionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - move video std detection to top of set_tv_freq function - we must detect video std first, so that we can choose the correct tuner_params Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-23move config byte from tuner_params to tuner_range struct.Michael Krufky
- move config byte from tuner_params to tuner_range struct. - dvb tuners must be able to set different config byte for each range. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-23rename cb variable names in tuner structures for global consistencyMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
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-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>
2005-12-27reorganize tuner-simple threshold structure.Michael Krufky
- create an array containing frequency threshold and control byte. - allows for an arbitrary amount of frequency ranges to be set, like dvb-pll. - improves code readability. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-25replace <media/i2c-compat.h> with "i2c-compat.h"Michael Krufky
-#include <media/i2c-compat.h> +#include "i2c-compat.h" 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-11"Philips 1236D ATSC/NTSC dual in" - fix typo.Michael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-05Fix broken TV standard check.Hans Verkuil
Fix incorrect matching of TV standards leading to incorrect IFPCoff values. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-30Added a new debug msg to help identifying tuner ProblemsMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-29added offset parameter for adjusting tuner offset by handMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
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-16Tuner cleanups by removing Video IF from tuners struct.Mauro Carvalho Chehab
- Video IF was removed from tuners struct. - Each Video standard have its own Video IF frequency, so it is related to video standard. Of course tuner also needs saw filters for IF, but this way, similar tuners can be grouped into just one entry, if they have the same cut-off freqs and the same switch config and global config. 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-10-27 * ../linux/drivers/media/video/tuner-simple.c:Michael Krufky
(default_set_tv_freq): - ISO C90 forbids mixed declarations and code * ../v4l/compat.h: - Do not build support for nxt200x unless at least one of the following is true: a) KERNEL_VERSION >= 2.6.15 b) v4l / dvb merge-trees build environment. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-10-27 * ../linux/drivers/media/video/cx88/Kconfig:Michael Krufky
* ../linux/drivers/media/video/cx88/Makefile: * ../linux/drivers/media/video/cx88/cx88-dvb.c: (nxt200x_set_ts_param), (dvb_register): * ../v4l/Makefile: - Added support for NXT200X based cards (ATI HDTV Wonder) * ../linux/drivers/media/video/cx88/cx88-cards.c: (cx88_card_setup): - Cleaned up initialization of ATI HDTV Wonder. The card is now able to work in analog or digital mode and able to switch between them without any problems. * ../linux/drivers/media/video/tuner-simple.c: (default_set_tv_freq): - Fixed value in "Philips TUV1236D ATSC/NTSC dual in" tuner data. - When tuning the "Philips TUV1236D ATSC/NTSC dual in" tuner, make sure that we are in the correct tuning mode. Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-10-16- Whitespace Cleanups.Mauro Carvalho Chehab
- Whitespace script improved. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
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-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-10 * tuner-simple.c:Nickolay V. Shmyrev
- Lower switch from VHF_LO to VHF_HI for Philips 1216ME MK3 Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de>
2005-08-30 * tuner-simple.c: (default_set_radio_freq):Michael Krufky
- The Microtune 4049FM5 uses an IF frequency of 33.3 MHz for FM radio. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> * cx88-video.c: (cx8800_resume): - removed trailing whitespace. * Changelog: - fixed some entries missing mchehab's login. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-30Change LG TDVS H062F from NTSC to ATSC.Michael Krufky
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 * tuner-simple.c:Mauro Carvalho Chehab
- correct LG NTSC TALN mini tuner takeover as far we can empirically determine for now. Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-17 * cx88-dvb.c: (lgdt330x_pll_set):Nickolay V. Shmyrev
* cx88-video.c: (video_release): * mt20xx.c: (microtune_init): * saa7134-video.c: (video_release): * tda8290.c: (standby), (tda8290_init): * tda9887.c: (tda9887_set_tvnorm), (tda9887_configure), (tda9887_command): * tea5767.c: (set_radio_freq), (tea5767_standby), (tea5767_tuner_init): * tuner-core.c: (set_addr), (check_mode), (set_mode), (tuner_command): * tuner-simple.c: (default_tuner_init): * tuner.h: - New tuner standby API.
2005-08-04 * saa7134-card.c, saa7134.h, tuner.h, tuner-simple.c:Nickolay V. Shmyrev
- Add new Digimatrix card and LG TAPC Mini tuner for it Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de>
2005-07-28 - tuner_addr added.Mauro Carvalho Chehab
- Added support for Acorp Y878F card. - some spaces used for identation replaced by tabs. - Added support for tuner Ymec TVF66T5-B/DFF Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-27Renamed tuner #64. Cleaned Whitespace.Michael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-24 * cx88-cards.c, cx88.h, tuner-simple.c, tuner.h:Michael Krufky
- Added analog support for DViCO FusionHDTV5 Gold. 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-07 * lgdt3302.c:Michael Krufky
- Fix bug in lgdt3302_read_status to return correct FE_HAS_SIGNAL and FS_HAS_CARRIER status. * msp3400.c, saa7134-cards.c, saa7134-i2c.c: * tuner-simple.c, video-buf-dvb.c: - Remove trailing whitespace. Signed-off-by: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-06 * tuner-simple.c:Nickolay V. Shmyrev
- Use 50 kHz step when tunning radio for most tuners. Signed-Off-By: Nickolay V. Shmyrev <nshmyrev@yandex.ru>