summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda8290.c
AgeCommit message (Collapse)Author
2007-09-14tuner: i2c_client cannot be part of the tuner structHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The bus-based I2C subsystem allocates the i2c_client struct. So if in order to be able to convert the tuner to the bus-based I2C API the embedded i2c_client struct must be removed from the tuner struct and replaced with a pointer. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tda8290.c | 22 ++++++------- linux/drivers/media/video/tda9887.c | 22 ++++++------- linux/drivers/media/video/tuner-core.c | 51 ++++++++++++++++++------------- linux/drivers/media/video/tuner-driver.h | 26 +++++++-------- 4 files changed, 65 insertions(+), 56 deletions(-)
2007-10-27tda8290: auto-detect tda8290 or tda8295Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Consolidate tda8290_attach() and tda8295_attach() into a single function, tda829x_attach(), which will detect chip combinations tda8290 or tda8295 with tda8275, tda8275a or tda18271. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tda8290.c | 263 +++++++++++++++------------------ linux/drivers/media/video/tda8290.h | 12 - linux/drivers/media/video/tuner-core.c | 6 3 files changed, 130 insertions(+), 151 deletions(-)
2007-10-24tda8290: fill i2c_gate_ctrl callbackMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tda8290.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
2007-10-22move std if setting from tda8290 to tda827xMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> 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/drivers/media/dvb/frontends/tda827x.c | 61 +++++++++++++++++++++++++--- linux/drivers/media/dvb/frontends/tda827x.h | 3 - linux/drivers/media/video/tda8290.c | 20 --------- 3 files changed, 57 insertions(+), 27 deletions(-)
2007-10-21tuner: convert analog tuner demod sub-modules to dvb_frontend interfaceMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Convert tda9887 and tda8290/5 to dvb_frontend interface 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/drivers/media/video/tda8290.c | 168 ++++++++++++++++--------------- linux/drivers/media/video/tda9887.c | 78 ++++++++------ linux/drivers/media/video/tuner-core.c | 79 +++++++------- linux/drivers/media/video/tuner-driver.h | 16 +- 4 files changed, 188 insertions(+), 153 deletions(-)
2007-10-21tuner: move analog_demod_priv into struct dvb_frontendMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> 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/drivers/media/dvb/dvb-core/dvb_frontend.h | 1 linux/drivers/media/video/tda8290.c | 40 ++++++++++++------------ linux/drivers/media/video/tda9887.c | 14 ++++---- linux/drivers/media/video/tuner-core.c | 11 ------ linux/drivers/media/video/tuner-driver.h | 1 5 files changed, 29 insertions(+), 38 deletions(-)
2007-10-21tuner: move analog_tuner_ops into dvb_frontend_opsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> 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/drivers/media/dvb/dvb-core/dvb_frontend.h | 3 linux/drivers/media/video/tda8290.c | 8 +- linux/drivers/media/video/tda9887.c | 4 - linux/drivers/media/video/tuner-core.c | 91 +++++++++++++----------- linux/drivers/media/video/tuner-driver.h | 4 - 5 files changed, 63 insertions(+), 47 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-08-25Move all tda8275/8275a tuning code from tda8290 module into tda827x moduleMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Add analog tuning support to tda827x dvb_frontend tuner module. Convert tda8290 module back to native tuner interface. The tda8290 analog demodulator will be handled the same way as tda9887. The tuner.ko module (tuner-core) will pass commands to tda8290 via the tuner_operations interface. tda8290 will communicate with tda827x via the dvb_frontend interface, while passing a pointer to a private data structure. 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/drivers/media/Kconfig | 1 linux/drivers/media/dvb/frontends/tda827x.c | 307 ++++++++++++++- linux/drivers/media/dvb/frontends/tda827x.h | 10 linux/drivers/media/video/tda8290.c | 566 +++++----------------------- linux/drivers/media/video/tda8290.h | 30 - linux/drivers/media/video/tuner-core.c | 16 6 files changed, 424 insertions(+), 506 deletions(-)
2007-08-31tda8290: add get_rf_strength and improve status reading efficiencyMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-08-27tda8290: convert from tuner sub-driver into dvb_frontend moduleMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Acked-by: Mike Isely <isely@pobox.com> Acked-by: Steven Toth <stoth@hauppauge.com> Acked-by: Patrick Boettcher <pb@linuxtv.org> Acked-by: Jarod Wilson <jwilson@redhat.com> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2007-08-21tuner: kill i2c_client interface to tuner sub-driversMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> To ease the conversion of the analog tuner sub-drivers into dvb_frontend style tuner modules, we must remove the i2c_client interface. dvb_frontend style tuner modules use i2c_transfer directly on the i2c_adapter. This change only alters the interface between tuner.ko and the tuner sub-drivers. The v4l2 / i2c_client interface to tuner.ko remains intact. This patch adds inline functions tuner_i2c_xfer_send, and tuner_i2c_xfer_recv, to replace i2c_master_send and i2c_master_recv inside the tuner sub-drivers. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Acked-by: Mike Isely <isely@pobox.com> Acked-by: Steven Toth <stoth@hauppauge.com> Acked-by: Patrick Boettcher <pb@linuxtv.org> Acked-by: Jarod Wilson <jwilson@redhat.com> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2007-08-21tuner: fix header file includes orderMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> kernel headers go above subsystem headers Signed-off-by: Michael Krufky <mkrufky@linuxtv.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-06tda8290: store tuning operations in tuner_operations structureMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Create static struct tuner_operations tda8290_tuner_ops for tda8290 tuning function callback pointers 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: define release callback for mt20xx, tda9887 and tda8290Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Define tuner release callbacks for mt20xx, tda9887 and tda8290, so that these drivers can release their own private structures 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-03-23set tda8290 to analog mode after initHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> otherwise the tuner driver will not accept i.e. the standby command. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
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 support for tda827x tuners with preamlifiersHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> This patch contains - new tuning code for the tda827xa silicon tuner. - controls the preamplifier of some boards with this tuner. - support for the Philips Tiger S hybrid DVB-T reference design. - reworked the saa7134-dvb modulue to get rid of most of the small board specific functions. It depends on the changesets: 5119:9e5c364c59bb 5120:2c31f2803f53 and 5121:8b0ffe2a46a7 Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
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-02-22Restore power on defaults of tda9887 after tda8290 probeHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> The probing code for tda8290 changes the state of the tda9887 GP ports. The patch assumes that if probing for tda8290 failed, this must be a tda9887 and restores its power on defaults. This should solve the module load order issue with some pinnacle cards. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
2006-02-03TDA8290 updateHartmut Hackmann
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> This patch - works around a bug in the I2C bridge that makes the initialization of the TDA10046 fail on recent LifeView cards - puts the AGC output to tristate in sleep mode. This is necessary for recent hybrid cards that switch the AGC via tristateing. Signed-off-by: Hartmut Hackmann<hartmut.hackmann@t-online.de>
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>
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-11Makes v4l compile under 2.4 kernelsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br> kernel-sync - Makes V4L compile with kernel 2.4 - em28xx doesn't compile with 2.4 kernels. Additional work is necessary to make it compile. Thanks-to: Stefan Leichter <Stefan.Leichter@camLine.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-16Added Secam L' std on tda9887 and common macros moved to videodev2.hMauro Carvalho Chehab
- Added SECAM L' video standard - Common std macros moved to videodev2.h Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-09Added support for SECAM L'Mauro Carvalho Chehab
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> - Added support for SECAM L' Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-02 - removed trailing whitespace.Michael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-11-01 - fixed tda8290 SECAM-LHartmut 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-18 - corrected probing code for tda8290Hartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-10-18 - Added autodetection code to tda8290, to avoid conflicts withMauro Carvalho Chehab
tda9887. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-17 * ../linux/Documentation/video4linux/CARDLIST.saa7134:Nickolay V. Shmyrev
* ../linux/drivers/media/video/ir-kbd-i2c.c: (get_key_pinnacle), (ir_attach), (ir_probe): * ../linux/drivers/media/video/saa7134/saa7134-cards.c: * ../linux/drivers/media/video/saa7134/saa7134.h: - Supports the Pinnacle PCTV 110i board, video inputs, and remote. - Tuning only works with the new tda8290 module (it's a tda8275a) Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-10-17 * ../linux/drivers/media/video/tda8290.c: (tda827x_tune),Nickolay V. Shmyrev
(tda827xa_tune), (tda8290_tune), (tda8290_init_tuner), (tda8290_init): - Strip trailing whitespaces. 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-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-10- Included CB3 structures on tda8290 that should be changed according withMauro Carvalho Chehab
video std. The code itself to implement it was not made. 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-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-08 * tda8290.c:Mauro Carvalho Chehab
- Reverted tda8290 patch to correct radio behavior. * saa7134-boards.c: - spaces used for indent replaced by tabs. 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-28 * cx88-core.c, cx88-dvb.c, cx88-input.c:Michael Krufky
* lgdt3302.c, lgdt3302_priv.h, or51132.c: * saa7134-cards.c, saa7134-core.c: * saa7134-dvb.c, saa7134-i2c.c, saa7134-oss.c: * saa7134-tvaudio.c, saa7134-video.c: * tda8290.c, tea5767.c, tuner-simple.c: - Clean up ALL whitespace using scripts/strip-trailing-whitespaces.sh Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-06-26 * tda8290.c:Nickolay V. Shmyrev
- Fix setting frequency on tda8290. Thanks to Fabien PERROT <perrot1983@yahoo.fr>
2005-06-18Anoter tunning fixNickolay V. Shmyrev
2005-06-18Fix tuningNickolay V. Shmyrev
2005-06-16Make all radio tuners use CAP_LOWNickolay V. Shmyrev
2005-06-14 - initialize tuner to sleep mode to save powerHartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>