diff options
author | Michael Büsch <m@bues.ch> | 2013-02-07 10:21:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-08 14:51:36 -0500 |
commit | a92591a7112042f92b609be42bc332d989776e9b (patch) | |
tree | f34933b52d83e4080807c89b6f30845885ad26a6 /drivers/media | |
parent | aadb4640109b76cc9d0e1d8ce6b7bc3258a89170 (diff) |
[media] fc0011: Return early, if the frequency is already tuned
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/tuners/fc0011.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/tuners/fc0011.c b/drivers/media/tuners/fc0011.c index 3932aa81e18c..18caab11c94b 100644 --- a/drivers/media/tuners/fc0011.c +++ b/drivers/media/tuners/fc0011.c | |||
@@ -187,6 +187,9 @@ static int fc0011_set_params(struct dvb_frontend *fe) | |||
187 | u8 fa, fp, vco_sel, vco_cal; | 187 | u8 fa, fp, vco_sel, vco_cal; |
188 | u8 regs[FC11_NR_REGS] = { }; | 188 | u8 regs[FC11_NR_REGS] = { }; |
189 | 189 | ||
190 | if (priv->frequency == p->frequency) | ||
191 | return 0; | ||
192 | |||
190 | regs[FC11_REG_7] = 0x0F; | 193 | regs[FC11_REG_7] = 0x0F; |
191 | regs[FC11_REG_8] = 0x3E; | 194 | regs[FC11_REG_8] = 0x3E; |
192 | regs[FC11_REG_10] = 0xB8; | 195 | regs[FC11_REG_10] = 0xB8; |