提交 b9bf2eaf 编写于 作者: I Igor M. Liplianin 提交者: Mauro Carvalho Chehab

[media] ds3000: don't load firmware during demod init

Speed up tuning, as firmware is not necessary to load every attempt to tune
Signed-off-by: NIgor M. Liplianin <liplianin@me.by>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 caa687c8
...@@ -1029,14 +1029,6 @@ static int ds3000_tune(struct dvb_frontend *fe, ...@@ -1029,14 +1029,6 @@ static int ds3000_tune(struct dvb_frontend *fe,
dprintk("%s() ", __func__); dprintk("%s() ", __func__);
/* Load the firmware if required */
ret = ds3000_firmware_ondemand(fe);
if (ret != 0) {
printk(KERN_ERR "%s: Unable initialise the firmware\n",
__func__);
return ret;
}
state->dnxt.delivery = c->modulation; state->dnxt.delivery = c->modulation;
state->dnxt.frequency = c->frequency; state->dnxt.frequency = c->frequency;
state->dnxt.rolloff = 2; /* fixme */ state->dnxt.rolloff = 2; /* fixme */
...@@ -1314,6 +1306,12 @@ static int ds3000_initfe(struct dvb_frontend *fe) ...@@ -1314,6 +1306,12 @@ static int ds3000_initfe(struct dvb_frontend *fe)
ds3000_tuner_writereg(state, 0x42, 0x73); ds3000_tuner_writereg(state, 0x42, 0x73);
ds3000_tuner_writereg(state, 0x05, 0x01); ds3000_tuner_writereg(state, 0x05, 0x01);
ds3000_tuner_writereg(state, 0x62, 0xf5); ds3000_tuner_writereg(state, 0x62, 0xf5);
/* Load the firmware if required */
ret = ds3000_firmware_ondemand(fe);
if (ret != 0) {
printk(KERN_ERR "%s: Unable initialize firmware\n", __func__);
return ret;
}
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册