summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-13 20:01:07 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2008-01-13 20:01:07 -0500
commit79150c25be2d0daef58a7d32afc06b4955fabb54 (patch)
treee6b2a47c072e1e7397700447ea162b8f423b73a9 /linux/drivers/media/dvb/frontends
parent8e69a781325727ab456ca97c4d7abc8b1e243db5 (diff)
downloadmediapointer-dvb-s2-79150c25be2d0daef58a7d32afc06b4955fabb54.tar.gz
mediapointer-dvb-s2-79150c25be2d0daef58a7d32afc06b4955fabb54.tar.bz2
tda18271: provide a choice whether to perform rf cal on init or on first tune
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>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-fe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c
index 071847f18..cf4033c14 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c
@@ -28,6 +28,10 @@ module_param_named(debug, tda18271_debug, int, 0644);
MODULE_PARM_DESC(debug, "set debug level "
"(info=1, map=2, reg=4, adv=8, cal=16 (or-able))");
+int tda18271_cal_on_startup;
+module_param_named(cal, tda18271_cal_on_startup, int, 0644);
+MODULE_PARM_DESC(cal, "perform RF tracking filter calibration on startup");
+
static LIST_HEAD(tda18271_list);
static DEFINE_MUTEX(tda18271_list_mutex);
@@ -1201,6 +1205,10 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
mutex_lock(&priv->lock);
tda18271_init_regs(fe);
+
+ if ((tda18271_cal_on_startup) && (priv->id == TDA18271HDC2))
+ tda18271_rf_cal_init(fe);
+
mutex_unlock(&priv->lock);
}