summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda18271-fe.c
AgeCommit message (Collapse)Author
2008-02-14tda18271: move init functions to directly above tda18271_tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-02-14tda18271: consolidate tune functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> combine tda18271c1_tune and tda18271c2_tune into a single function Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-02-14tda18271: move rf calibration code from tda18271c1_tune into a new functionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> move rf calibration code from tda18271c1_tune into a new function, tda18271c1_rf_tracking_filter_calibration Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-02-14tda18271: remove duplicated channel configuration code from tda18271c1_tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> remove duplicated channel configuration code from tda18271c1_tune, instead call function tda18271_channel_configuration Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-15tda18271: use hybrid_tuner_request_state to manage tuner instancesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Convert tda18271 to use the new hybrid_tuner_request_state and hybrid_tuner_release_state macros to manage state sharing between hybrid tuner instances. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-19tda18271: when tuning digital, the analog demod must be tri-statedMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Call analog_ops.standby during tda18271_set_params, to put the tda8295 in tri-state when tuning digital channels. Otherwise the tda8295 will interfere with the signal coming from the tda18271 into the digital demodulator. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-14tda18271: tda18271_cal_on_startup should be declared staticMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This module option variable is only handled within the file tda18271-fe.c - Declare this variable as static. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13tda18271: provide a choice whether to perform rf cal on init or on first tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If module option "cal" is set to 1, the ~22 sec rf tracking filter calibration sequence will be invoked on startup. Otherwise, the calibration will take place during the first tune. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13tda18271: test RF_CAL_OK to see if we need additional RF calibrationMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Test RF_CAL_OK to see if we need to perform the RF tracking filter calibration after returning from standby. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13tda18271: put the device in standby mode during sleep()Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Add function, tda18271_set_standby_mode. During sleep, enter standby mode with slave tuner output enabled, loop through on and xtal oscillator on. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-06tda18271: report when the RF tracking filter calibration has completedMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-08tda18271: give calibration debug a separate debug maskMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> We don't usually want to see the calibration debug messages, but sometimes it is useful. Assign it to a separate debug mask. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-08tda18271: add support for fm radioMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-06tda18271: share state between analog and digital tuner instancesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-06tda18271: use a mutex to protect state in critical sectionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-05tda18271: store frequency and bandwidth after successful tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Store last tuned frequency & bandwidth after successful tune. Clean up tune functions -- remove pointer to tune function in state structure, instead call tune function based on priv->id. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-05tda18271: clean up calibration initialization proceduresMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Always initialize registers during attach. Perform IR Calibration during init if needed. Perform RF Calibration during init if needed for C2, only. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-02tda18271: document debug level and configuration parametersMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Document debug level module options and tda18271_config attach-time parameters. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-02tda18271: store IF frequency in a u16 instead of u32Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Store IF Frequency in a u16 instead of a u32. Multiply by 1000 before use. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-02tda18271: allow device-specific configuration of IF frequency and std bitsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Allow drivers to pass device-specific configuration parameters during attach. If these parameters are omitted, default values will be used. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-01tda18271: move common code to tda18271-common.cMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move some common code to a new file to make this easier to look at. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-01tda18271: add support for NXP TDA18271HD/C2Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Tested successfully with QAM256 digital cable. Analog television is limping, needs more work. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-01tda18271: add MODULE_VERSIONMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> version 0.1 Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-01tda18271: clean up function tda18271_set_analog_paramsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> make set_analog_params function look consistent with set_params function Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-29tda18271: fail table lookups if frequency is out of rangeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-25tda18271: break calculation functions out of tda18271_tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Break out the following new functions from tda18271_tune: tda18271_calc_bp_filter tda18271_calc_km tda18271_calc_rf_band tda18271_calc_gain_taper tda18271_calc_ir_measure tda18271_calc_rf_cal Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-25tda18271: improve printk macrosMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: consolidate table lookup functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: move state structures to tda18271-priv.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: remove extraneous debugMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> We don't need to do a dbg_info during tda18271_attach anymore, since the tda18271_get_id function will call dbg_info with the same information and more. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: create separate calc_pll functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Consolidate duplicated code by creating functions: tda18271_calc_main_pll tda18271_calc_cal_pll Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: rename tda18271_calc_* functions to tda18271_lookup_*Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: check ID register during attachMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Identify the silicon during attach, return NULL if unsupported device. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-24tda18271: divider byte 1, bit 7 is always 0Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Bit 7 of both Main Divider byte 1 and Cal Divider byte 1 is always zero. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-21merge: http://linuxtv.org/hg/~mkrufky/tda18271Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-21tda18271: fix typo in RF tracking filter calibrationMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> We want to set bits 1 & 2 on easy programming byte 4, not extended byte 4. Thanks to David Wong for pointing this out. Cc: David Wong <davidtlwong@gmail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-21include struct analog_demod_ops directly inside struct dvb_frontendMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Rather than using a pointer, include struct analog_demod_ops directly inside struct dvb_frontend. This will allow us to use dvb_attach in the future, along with removing the need to check the ops structure before having to check the pointer to the method being called. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-21kill tuner-driver.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-09tda18271: pass i2c gate configuration into tda18271_attach()Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If we pass TDA18271_GATE_DIGITAL into tda18271_attach(), it will always try to use the digital demodulator's i2c gate. If we pass TDA18271_GATE_ANALOG into tda18271_attach(), it will always try to use the analog demodulator's i2c gate. If we pass TDA18271_GATE_AUTO into tda18271_attach(), it will try to use the analog demodulator's i2c gate when tuning in analog mode, and it will try to use the digital demodulator's i2c gate when tuning in digital mode. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-09tda18271: use an enum rather than an integer to store analog / digital stateMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Use an enum rather than an integer #define to store analog / digital state. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-06tda18271: remove tuning offset for atsc/qamMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> The tuning request coming in from userspace is already center adjusted, so we should not adjust to center (+1.75mhz) within the driver. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-02tda18271: fix register dump formatMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-02tda18271: convert table lookup loops to functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-02tda18271: set image rejection validityMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-02tda18271: improve debug flexibilityMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> converted debug module option to an or-able setting. 1 = info 2 = table map values 4 = register dumps Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-02tda18271: remove duplicated codeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-12-01tda18271: only force init once during attachMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Once the image rejection calibration procedure has been successful, we should not initialize the tuner registers again. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-11-23tda18271: rename 'debug' to 'tda18271_debug'Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-11-23tda18271: move tda18271_map tables to a separate source fileMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move tda18271_map tables to a separate source file, to improve code readability and ease maintenance. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>