summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/mt352.c
AgeCommit message (Collapse)Author
2006-07-28Remove remaining static function callsAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Rewrote _write() calls to use write() op. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-05-19Fix broken DVB drivers caused by a recent mergeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-19merge: http://linuxtv.org/hg/~quincy/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-16Fix Pinnacle 300iAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> I had broken the mt352 tuning when a non-directly connected PLL was used - uncommon, but this is what is used on the pinnacle card. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-05-14Change dvb_frontend_ops to be a real field instead of a pointer field inside ↵Patrick Boettcher
dvb_frontend From: Patrick Boettcher <pb@linuxtv.org> The dvb_frontend_ops is a pointer inside dvb_frontend. That's why every demod-driver is having a field of dvb_frontend_ops in its private-state-struct and using the reference for filling the pointer-field in dvb_frontend. - It saves at least two lines of code per demod-driver, - reduces object size (one less dereference per frontend_ops-access), - be coherent with dvb_tuner_ops, - makes it a little bit easier for newbies to understand how it works and - avoids stupid mistakes because you would have to copy the dvb_frontend_ops always, before you could assign the static pointer directly, which was dangerous. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-04-19Convert calls from _pllbuf() to _calc_reg()Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Johannes Stezenbach suggested this change - definite improvement. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-18Sort out support for non-attached tuners on mt352Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Make it use set_params/pllbuf as appropriate so it works with dvb_pll_attach()ed tuners. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-18Convert mt352 to refactored tuner codeAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Convert to tuner_ops calls. Remove pll function pointer from structure. Use standardised pllbuf function. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
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>
2005-11-07[PATCH] fix missing includesMichael Krufky
I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-12Here is a patch to fix two problems with the signal strength value in the ↵Patrick Boettcher
mt352.c frontend: 1. the 4 most significant bits are zeroed - shift and mask wrong way round 2. Need to align the 12 bits from the registers at the top of the 16 bit returned value - otherwise the range is not 0 to 0xffff its 0xf000 to 0xffff Signed-off-by: Barry Scott <barry.scott@onelan.co.uk>
2005-04-23patch by Adrian Bunk:Johannes Stezenbach
- make needlessly global code static - #if 0 the following unused global functions: - ttpci/av7110_hw.c: av7110_reset_arm - ttpci/av7110_hw.c: av7110_send_ci_cmd - frontends/mt352.[ch]: drop mt352_read Signed-off-by: Adrian Bunk <bunk@stusta.de>
2005-04-10copying the mt352_config-struct to mt352_state instead of storing just the ↵Patrick Boettcher
pointer to it.
2005-03-19 - remove s* from state, they are only used in read_statusKenneth Aafloy
- remove casting of void* - remove FIXME in set_parameters, should be handled by dvb-core state machine - remove some unnecessary braces - remove #if 1 in read_status, and add note from Zarlink design manual - change read_signal_strength to read total AGC_GAIN in case some adapter turns on the RF_AGC loop.
2005-03-12fix typo in commentJohannes Stezenbach
2005-03-09 - kfree(NULL) is safeKenneth Aafloy
2005-03-02whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)Johannes Stezenbach
2005-01-29patch by Gerd Knorr:Johannes Stezenbach
add support for the Pinnacle MediaCenter 300i DVB-T
2005-01-13- exported an mt352_read_reg-functionPatrick Boettcher
- implemented a single byte write_register function (needed for dibusb) same for mt352.h in revision 1.4 to 1.5
2004-11-19Decreased noise levels.Andrew de Quincy
2004-11-12 - Compile fixKenneth Aafloy
2004-11-11don't report FE_HAS_LOCK w/o (FE_HAS_CARRIER && FE_HAS_VITERBI && FE_HAS_SYNC)Johannes Stezenbach
2004-10-28Imported FE_REFACTORING to HEADAndrew de Quincy
2004-10-28- fix for module_param_array() for kernels > 2.6.9Michael Hunold
2004-09-20Apply patches by Christopher Pascoe, thanks for your work.Michael Hunold
Notes: Note that to use this with either of the DVICO FusionHDTV DVB-T boards you will need to fetch and build against a recent snapshot of the video4linux code that you can obtain from http://dl.bytesex.org/cvs-snapshots/. This will get you the board ID for the Lite board, and/or the kernel I2C support needed for the DVB-T1. Cleanups (mt352-0-cleanup.patch) include: - moving the card_type and dvb_frontend_info structure into the adapter state to permit more than one card type in a system at once converting the force_card parameter to an array to permit the same; - removing incorrect "shift" values reintroduced by the merge of the TDTC9251DH01C driver which was based on an old version of the code with incorrect values - changes discussed and tested by Antonio Mancuso; - removing the incorrect use of I2C_M_NOSTART from the driver. The only boards where this worked were the boards where use_i2c_hw was enabled in the bttv driver, and there only because the i2c_hw code ignores the I2C_M_NOSTART flag and always generates a start condition. On other boards where the clag is respected, this violates the i2c protocol and causes only errors. No-op; - cleaning up some double initialisation (specifically that of the ACQ_CTL register - no-op; - converts some routines to pass the true frequency around, rather than the frequency in MHz - need the real frequency for other boards - no-op; - ignoring FEC_NONE for the LP coderate in the case where OFDM hierarchy mode is either set to be auto-detected or is disabled. The demodulator ignores our settings anyway; - changing the detect_avermedia function to a more generic function that can be used to detect other bt878 or cx2388x cards in a similar way; - rounding the frequency programmed into the PLL so that it will be closer to the desired received frequency; - decoupling requirement for FE_REGISTER/FE_UNREGISTER to be called synchronously from within mt352_attach_adapter/mt352_detach_client, so that mt352 can be used with drivers such as cx88 which have i2c and DVB support in separate modules. The DVICO hardware support (mt352-1-dvico.patch): - introduces functionality for the DVICO FusionHDTV DVB-T1 and DVICO FusionHDTV DVB-T Lite boards in the mt352 frontend; - activates autodetection for these boards; The dvb-bt8xx patch (dvb-bt8xx.patch): - adds hardware support for the DVICO FusionHDTV DVB-T Lite - adds functionality to the bt8xx code to switch on/off DMA of the transport stream only when the DVB layer wants data, rather than generating a constant interrupt stream the entire time that the driver is loaded. The mt352 speedup patch (mt352-2-speedups.patch) helps with tuning speed on the mt352 frontend, by: - reinitialising the frontend only in the case when it has not yet been initialised or when it has been put to sleep; - ignoring requests from the frontend thread to repetitively acquire a transponder with the same parameters. Each time it does this, the tuner/demodulator lose sync and acquisition time is needlessly extended.
2004-08-24- replace dvb_unregister_frontend_new() with dvb_unregister_frontend()Michael Hunold
2004-08-18- forgot to remove all occurences of "#include "dvb_functions.h" which is ↵Michael Hunold
included just everywhere - remove dvb_i2c.[ch], it's not needed anymore - rename dvb_register_frontend_new() to dvb_register_frontend() -
2004-07-30use mt352_read_register() only after card_type is setJohannes Stezenbach
(should fix mt352 detection)
2004-07-17 - Add missing #include <linux/moduleparam.h>Kenneth Aafloy
2004-07-16 - Conversion to Kernel I2C layer.Kenneth Aafloy
- MODULE_PARM* -> module_param* - Common name for I2C device and prefix for debug messages. NOTE: This needs testing by someone who has one of these frontends.
2004-07-15Fix integer overflow bug for high frequencies, thanks to Peter Henderson.Johannes Stezenbach
2004-07-14- Fix integer underflow bug, thanks to Peter Henderson.Kenneth Aafloy
2004-07-08patch by Antonio Mancuso <antonio.mancuso@digitaltelevision.it>Johannes Stezenbach
and Amauri Celani <acelani@essegi.net> to add support for the Technisat AirStar2 with Samsung TDTC9251DH01C(M) tuner
2004-06-27FE_GET_TUNE_SETTINGS fixes (missing break, changed timings)Johannes Stezenbach
by Christopher Pascoe
2004-06-14Avermedia support by Wolfram JoostHolger Waechtler
2004-06-07fixed TPS shifts... never showed up before since TPS probing worked too good ↵Holger Waechtler
here ;)
2004-05-10some functional fixes, not tested in kernel space -- sorry, don't have 2.6 ↵Holger Waechtler
running...
2004-03-11Checked in experimental frontend patchAndrew de Quincy
Also some minimal budget-ci CI support implemented (just detection+IRQs)
2004-03-05Added a driver for Zarlink's MT352 DVB-T demodulator.Daniel Mack
Not all ioctls are fully supported yet.