fc0011: Return early, if the frequency is already tuned
Subsystems (2)
Michael Büsch
maintainerPATCH 4/4 fc0011: Return early, if the frequency is already tuned
Return early, if we already tuned to a frequency.
Signed-off-by Michael Buesch <[email protected]>
---
drivers/media/tuners/fc0011.c +3 -0
@@ -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 ;
Signature · 3 lines
Greetings, Michael. PGP: 908D8B0E