* [PATCH 4/4] fc0011: Return early, if the frequency is already tuned
@ 2013-02-07 16:21 Michael Büsch
0 siblings, 0 replies; only message in thread
From: Michael Büsch @ 2013-02-07 16:21 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
Return early, if we already tuned to a frequency.
Signed-off-by: Michael Buesch <m@bues.ch>
---
Index: linux/drivers/media/tuners/fc0011.c
===================================================================
--- linux.orig/drivers/media/tuners/fc0011.c 2013-01-01 23:25:40.000000000 +0100
+++ linux/drivers/media/tuners/fc0011.c 2013-01-01 23:27:44.985089712 +0100
@@ -187,6 +187,9 @@
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;
--
Greetings, Michael.
PGP: 908D8B0E
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-07 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-07 16:21 [PATCH 4/4] fc0011: Return early, if the frequency is already tuned Michael Büsch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.