aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-13 20:01:07 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:05:00 -0500
commit0f96251e7bfb2b2798f35e70efaa54bae65bfb9c (patch)
tree64ef003e028ceaffd47d3f0f37b1771604844348 /drivers/media
parent839c6c96d05894815b7af0dff22b710ce5a4373a (diff)
V4L/DVB (7029): tda18271: provide a choice whether to perform rf cal on init or on first tune
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/frontends/tda18271-fe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c
index 8eb9a537970a..7c80516a4487 100644
--- a/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/drivers/media/dvb/frontends/tda18271-fe.c
@@ -27,6 +27,10 @@ module_param_named(debug, tda18271_debug, int, 0644);
27MODULE_PARM_DESC(debug, "set debug level " 27MODULE_PARM_DESC(debug, "set debug level "
28 "(info=1, map=2, reg=4, adv=8, cal=16 (or-able))"); 28 "(info=1, map=2, reg=4, adv=8, cal=16 (or-able))");
29 29
30int tda18271_cal_on_startup;
31module_param_named(cal, tda18271_cal_on_startup, int, 0644);
32MODULE_PARM_DESC(cal, "perform RF tracking filter calibration on startup");
33
30static LIST_HEAD(tda18271_list); 34static LIST_HEAD(tda18271_list);
31static DEFINE_MUTEX(tda18271_list_mutex); 35static DEFINE_MUTEX(tda18271_list_mutex);
32 36
@@ -1177,6 +1181,10 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
1177 1181
1178 mutex_lock(&priv->lock); 1182 mutex_lock(&priv->lock);
1179 tda18271_init_regs(fe); 1183 tda18271_init_regs(fe);
1184
1185 if ((tda18271_cal_on_startup) && (priv->id == TDA18271HDC2))
1186 tda18271_rf_cal_init(fe);
1187
1180 mutex_unlock(&priv->lock); 1188 mutex_unlock(&priv->lock);
1181 } 1189 }
1182 1190