提交 a92591a7 编写于 作者: M Michael Büsch 提交者: Mauro Carvalho Chehab

[media] fc0011: Return early, if the frequency is already tuned

Return early, if we already tuned to a frequency.
Signed-off-by: NMichael Buesch <m@bues.ch>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 aadb4640
...@@ -187,6 +187,9 @@ static int fc0011_set_params(struct dvb_frontend *fe) ...@@ -187,6 +187,9 @@ static int fc0011_set_params(struct dvb_frontend *fe)
u8 fa, fp, vco_sel, vco_cal; u8 fa, fp, vco_sel, vco_cal;
u8 regs[FC11_NR_REGS] = { }; u8 regs[FC11_NR_REGS] = { };
if (priv->frequency == p->frequency)
return 0;
regs[FC11_REG_7] = 0x0F; regs[FC11_REG_7] = 0x0F;
regs[FC11_REG_8] = 0x3E; regs[FC11_REG_8] = 0x3E;
regs[FC11_REG_10] = 0xB8; regs[FC11_REG_10] = 0xB8;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册