The patch number 9470 was added via Manu Abraham <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[EMAIL PROTECTED]
------
From: Ales Jurik <[EMAIL PROTECTED]>
Disable PLL Loop while tuning
Signed-off-by: Ales Jurik <[EMAIL PROTECTED]>
Signed-off-by: Manu Abraham <[EMAIL PROTECTED]>
---
linux/drivers/media/dvb/frontends/stb6100.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff -r 73efe37a69d7 -r 02bc4a7d7cb2 linux/drivers/media/dvb/frontends/stb6100.c
--- a/linux/drivers/media/dvb/frontends/stb6100.c Mon Oct 27 01:28:52
2008 +0400
+++ b/linux/drivers/media/dvb/frontends/stb6100.c Mon Oct 27 01:45:59
2008 +0400
@@ -326,6 +326,13 @@ static int stb6100_set_frequency(struct
fe->ops.get_frontend(fe, &p);
}
srate = p.u.qpsk.symbol_rate;
+
+ regs[STB6100_DLB] = 0xdc;
+ /* Disable LPEN */
+ regs[STB6100_LPEN] &= ~STB6100_LPEN_LPEN; /* PLL Loop disabled */
+
+ if ((rc = stb6100_write_regs(state, regs)) < 0)
+ return rc;
/* Baseband gain. */
if (srate >= 15000000)
@@ -383,9 +390,11 @@ static int stb6100_set_frequency(struct
/* Power up. */
regs[STB6100_LPEN] |= STB6100_LPEN_SYNP | STB6100_LPEN_OSCP |
STB6100_LPEN_BEN;
+ msleep(2);
if ((rc = stb6100_write_regs(state, regs)) < 0)
return rc;
+ msleep(2);
regs[STB6100_LPEN] |= STB6100_LPEN_LPEN; /* PLL loop enabled
*/
if ((rc = stb6100_write_reg(state, STB6100_LPEN, regs[STB6100_LPEN])) <
0)
return rc;
@@ -400,7 +409,8 @@ static int stb6100_set_frequency(struct
if ((rc = stb6100_write_reg(state, STB6100_VCO, regs[STB6100_VCO])) < 0)
return rc;
regs[STB6100_FCCK] &= ~STB6100_FCCK_FCCK; /* LPF BW clock
disabled */
- if ((rc = stb6100_write_reg(state, STB6100_FCCK, regs[STB6100_FCCK])) <
0)
+ stb6100_normalise_regs(regs);
+ if ((rc = stb6100_write_reg_range(state, ®s[1], 1, STB6100_NUMREGS -
3)) < 0)
return rc;
msleep(30);
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/02bc4a7d7cb2f9203676370306b06078289cffa5
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits