projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aadb464
)
[media] fc0011: Return early, if the frequency is already tuned
author
Michael Büsch
<m@bues.ch>
Thu, 7 Feb 2013 15:21:06 +0000
(12:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 8 Feb 2013 19:51:36 +0000
(17:51 -0200)
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>
drivers/media/tuners/fc0011.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/tuners/fc0011.c
b/drivers/media/tuners/fc0011.c
index 3932aa81e18cdf70560890edd37168caddfe92d1..18caab11c94bdd004f118b1c17acfc8855436fb2 100644
(file)
--- 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)
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;