Skip to content

Commit

Permalink
[media] fc0011: Return early, if the frequency is already tuned
Browse files Browse the repository at this point in the history
Return early, if we already tuned to a frequency.

Signed-off-by: Michael Buesch <m@bues.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Büsch authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent aadb464 commit a92591a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/tuners/fc0011.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ static int fc0011_set_params(struct dvb_frontend *fe)
u8 fa, fp, vco_sel, vco_cal;
u8 regs[FC11_NR_REGS] = { };

if (priv->frequency == p->frequency)
return 0;

regs[FC11_REG_7] = 0x0F;
regs[FC11_REG_8] = 0x3E;
regs[FC11_REG_10] = 0xB8;
Expand Down

0 comments on commit a92591a

Please sign in to comment.