aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2007-10-31 18:22:02 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:20 -0500
commitba8862a83f2db95cdd8e9193e83915e5e278927a (patch)
treeeb78863fcac55afb42ce9f142b7c1448e7e2ca39
parent9efdd297bc7c50dea24532a9b52bd0245e7e5169 (diff)
V4L/DVB (9437): Disable Symbol rate auto scan feature
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/stb0899_algo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c
index 37717a4397a3..1363ae396f9e 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -91,7 +91,7 @@ static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 sr
91 u32 tmp, tmp_up, srate_up; 91 u32 tmp, tmp_up, srate_up;
92 u8 sfr_up[3], sfr[3]; 92 u8 sfr_up[3], sfr[3];
93 93
94 srate_up = srate; 94// srate_up = srate;
95 dprintk(state->verbose, FE_DEBUG, 1, "-->"); 95 dprintk(state->verbose, FE_DEBUG, 1, "-->");
96 /* 96 /*
97 * in order to have the maximum precision, the symbol rate entered into 97 * in order to have the maximum precision, the symbol rate entered into
@@ -99,20 +99,20 @@ static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 sr
99 * In this purpose, the symbol rate value is rounded (1 is added on the bit 99 * In this purpose, the symbol rate value is rounded (1 is added on the bit
100 * below the LSB ) 100 * below the LSB )
101 */ 101 */
102 srate_up += (srate_up * 3) / 100; 102// srate_up += (srate_up * 3) / 100;
103 103
104 tmp = BinaryFloatDiv(srate, master_clk, 20); 104 tmp = BinaryFloatDiv(srate, master_clk, 20);
105 tmp_up = BinaryFloatDiv(srate_up, master_clk, 20); 105// tmp_up = BinaryFloatDiv(srate_up, master_clk, 20);
106 106
107 sfr_up[0] = (tmp_up >> 12) & 0xff; 107// sfr_up[0] = (tmp_up >> 12) & 0xff;
108 sfr_up[1] = (tmp_up >> 4) & 0xff; 108// sfr_up[1] = (tmp_up >> 4) & 0xff;
109 sfr_up[2] = tmp_up & 0x0f; 109// sfr_up[2] = tmp_up & 0x0f;
110 110
111 sfr[0] = (tmp >> 12) & 0xff; 111 sfr[0] = (tmp >> 12) & 0xff;
112 sfr[1] = (tmp >> 4) & 0xff; 112 sfr[1] = (tmp >> 4) & 0xff;
113 sfr[2] = tmp & 0x0f; 113 sfr[2] = tmp & 0x0f;
114 114
115 stb0899_write_regs(state, STB0899_SFRUPH, sfr_up, 3); 115// stb0899_write_regs(state, STB0899_SFRUPH, sfr_up, 3);
116 stb0899_write_regs(state, STB0899_SFRH, sfr, 3); 116 stb0899_write_regs(state, STB0899_SFRH, sfr, 3);
117 117
118 return srate; 118 return srate;