[media] tda18271: delay IR & RF calibration until init() if delay_cal is set

if the configuration option 'delay_cal' is set, delay both IR & RF
calibration until init() is called.
both module option 'cal' or configuration option 'rf_cal_on_startup'
will override this delay. it makes no sense to mix 'delay_cal' with
'rf_cal_on_startup' as these options conflict with each other.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Michael Krufky
2012-10-01 23:50:37 -03:00
committed by Mauro Carvalho Chehab
父節點 e48307a90e
當前提交 6b82e0cfc1
共有 2 個文件被更改,包括 10 次插入0 次删除

查看文件

@@ -1278,6 +1278,11 @@ struct dvb_frontend *tda18271_attach(struct dvb_frontend *fe, u8 addr,
if (tda_fail(ret))
goto fail;
/* if delay_cal is set, delay IR & RF calibration until init()
* module option 'cal' overrides this delay */
if ((cfg->delay_cal) && (!tda18271_need_cal_on_startup(cfg)))
break;
mutex_lock(&priv->lock);
tda18271_init_regs(fe);