aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
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